Re: [PATCH] selftests/kvm: fix compilation on non-x86_64 platforms

From: Gavin Shan
Date: Tue Nov 21 2023 - 18:02:25 EST



On 11/22/23 02:59, Paolo Bonzini wrote:
MEM_REGION_SLOT and MEM_REGION_GPA are not really needed in
test_invalid_memory_region_flags; the VM never runs and there are no
other slots, so it is okay to use slot 0 and place it at address
zero. This fixes compilation on architectures that do not
define them.

Fixes: 5d74316466f4 ("KVM: selftests: Add a memory region subtest to validate invalid flags", 2023-11-14)
Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
tools/testing/selftests/kvm/set_memory_region_test.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)


Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>