KVM: selftests: fix supported_flags for riscv
PATCH 1/1 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.
--- tools/testing/selftests/kvm/set_memory_region_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/kvm/set_memory_region_test.c +1 -1
@@ -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
Signature · 1 line
2.44.0
Quoted 3 lines · Andrew Jones
commit
849c1816436f("KVM: selftests: fixsupported_flagsfor 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.
Applied to kvm-x86 fixes (for 6.9). Figure it doesn't matter a whole lot if this goes through the RISC-V versus something else, and I have a pile of things to send to Paolo for 6.9-rc4.
[1/1] KVM: selftests: fix supported_flags for riscv
https://github.com/kvm-x86/linux/commit/449c0811d872
Quoted 6 lines · Sean Christopherson
Quoted 3 lines · Andrew Jones
commit
849c1816436f("KVM: selftests: fixsupported_flagsfor 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.
Quoted 6 lines
Applied to kvm-x86 fixes (for 6.9). Figure it doesn't matter a whole lot if this goes through the RISC-V versus something else, and I have a pile of things to send to Paolo for 6.9-rc4.
[1/1] KVM: selftests: fix
supported_flagsfor riscvhttps://github.com/kvm-x86/linux/commit/449c0811d872
Thanks taking this through kvm-x86 fixes.
Regards,
Anup