On Mon, Dec 27, 2021 at 12:48:06PM +0000, Marc Zyngier wrote: > Just as arm64 implemenations don't necessary support all IPA > ranges, they don't all support the same page sizes either. Fun. > > Create a dummy VM to snapshot the page sizes supported by the > host, and filter the supported modes. > > Signed-off-by: Marc Zyngier <maz@xxxxxxxxxx> > --- > .../selftests/kvm/include/aarch64/processor.h | 3 ++ > .../selftests/kvm/lib/aarch64/processor.c | 36 +++++++++++++++++++ > tools/testing/selftests/kvm/lib/guest_modes.c | 17 +++++---- > 3 files changed, 50 insertions(+), 6 deletions(-) > Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>