diff mbox series

KVM: selftests: fix supported_flags for riscv

Message ID 20240403123300.63923-2-ajones@ventanamicro.com (mailing list archive)
State New, archived
Headers show
Series KVM: selftests: fix supported_flags for riscv | expand

Commit Message

Andrew Jones April 3, 2024, 12:33 p.m. UTC
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>
---
 tools/testing/selftests/kvm/set_memory_region_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sean Christopherson April 9, 2024, 1:52 a.m. UTC | #1
On Wed, 03 Apr 2024 14:33:01 +0200, Andrew Jones wrote:
> 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
Anup Patel April 9, 2024, 3:34 a.m. UTC | #2
On Tue, Apr 9, 2024 at 7:23 AM Sean Christopherson <seanjc@google.com> wrote:
>
> On Wed, 03 Apr 2024 14:33:01 +0200, Andrew Jones wrote:
> > 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

Thanks taking this through kvm-x86 fixes.

Regards,
Anup
diff mbox series

Patch

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