[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <647efdf8-66aa-4ea3-8625-bf657839f6f0@redhat.com>
Date: Wed, 22 Nov 2023 09:02:13 +1000
From: Gavin Shan <gshan@...hat.com>
To: Paolo Bonzini <pbonzini@...hat.com>, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: broonie@...nel.org
Subject: Re: [PATCH] selftests/kvm: fix compilation on non-x86_64 platforms
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@...hat.com>
> ---
> tools/testing/selftests/kvm/set_memory_region_test.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
Reviewed-by: Gavin Shan <gshan@...hat.com>
Powered by blists - more mailing lists