Re: [PATCH v4 12/14] KVM: selftests: Enable pre_fault_memory_test for arm64
From: Fuad Tabba
Date: Thu Sep 24 2026 - 02:10:31 EST
On Wed, 23 Sept 2026 at 16:18, Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx> wrote:
>
> From: Jack Thomson <jackabt@xxxxxxxxxx>
>
> Enable the pre_fault_memory_test to run on arm64 by making it work with
> different guest page sizes and testing multiple guest configurations.
>
> Add an assert on the exit reason, comparing against UCALL_EXIT_REASON so
> the check is portable, as arm64 exits with KVM_EXIT_MMIO while x86 uses
> KVM_EXIT_IO.
>
> Signed-off-by: Jack Thomson <jackabt@xxxxxxxxxx>
> [ljs: merge conflict resolution with commit c847704619da ("KVM: selftests:
> Fix pre_fault_memory_test to run on s390"), commit message accuracy fixup]
> Reviewed-by: Oliver Upton <oupton@xxxxxxxxxx>
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
Reviewed-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>
Cheers,
/fuad