Skip to contentSkip to conversation

KVM: selftests: fix supported_flags for riscv

PATCH Applied Andrew Jones 3 participants 3 messages Apr 3, 2024 – Apr 9, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 06b43ed23580..bd57d991e27d 100644
@@ -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
reviewer Applied
#1 lore raw
Quoted 3 lines · Andrew Jones

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.

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

--
https://github.com/kvm-x86/linux/tree/next

#2 lore raw
Quoted 6 lines · Sean Christopherson
Quoted 3 lines · Andrew Jones

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.

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_flags for riscv

      https://github.com/kvm-x86/linux/commit/449c0811d872

Thanks taking this through kvm-x86 fixes.

Regards,
Anup