Skip to content

Commit 449c081

Browse files
jones-drewsean-jc
authored andcommitted
KVM: selftests: fix supported_flags for riscv
commit 849c181 ("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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 0ef2dd1 commit 449c081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/kvm/set_memory_region_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ static void test_invalid_memory_region_flags(void)
333333
struct kvm_vm *vm;
334334
int r, i;
335335

336-
#if defined __aarch64__ || defined __x86_64__
336+
#if defined __aarch64__ || defined __riscv || defined __x86_64__
337337
supported_flags |= KVM_MEM_READONLY;
338338
#endif
339339

0 commit comments

Comments
 (0)