diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2024-04-03 14:33:01 +0200 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-04-08 13:22:08 -0700 |
commit | 449c0811d8729068646e1a270be72bf2da2e66f3 (patch) | |
tree | 30b318b11a79d3966afcd593fb25ef788cd483dc /tools/testing | |
parent | 0ef2dd1f4144bc024d3c98954fa061a102f6481b (diff) | |
download | linux-449c0811d8729068646e1a270be72bf2da2e66f3.tar.gz linux-449c0811d8729068646e1a270be72bf2da2e66f3.tar.bz2 linux-449c0811d8729068646e1a270be72bf2da2e66f3.zip |
KVM: selftests: fix supported_flags for riscv
commit 849c1816436f ("KVM: selftests: fix supported_flags for aarch64")
fixed the set-memory-region test for aarch64 by declaring the read-only
flag is supported. riscv also supports the read-only flag. Fix it too.
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20240403123300.63923-2-ajones@ventanamicro.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/kvm/set_memory_region_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c b/tools/testing/selftests/kvm/set_memory_region_test.c index 06b43ed23580..bd57d991e27d 100644 --- a/tools/testing/selftests/kvm/set_memory_region_test.c +++ b/tools/testing/selftests/kvm/set_memory_region_test.c @@ -333,7 +333,7 @@ static void test_invalid_memory_region_flags(void) struct kvm_vm *vm; int r, i; -#if defined __aarch64__ || defined __x86_64__ +#if defined __aarch64__ || defined __riscv || defined __x86_64__ supported_flags |= KVM_MEM_READONLY; #endif |