mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-04 18:27:36 +00:00
KVM: selftests: arm64: Add support for VM_MODE_P36V48_{4K,64K}
Some of the arm64 systems out there have an IPA space that is positively tiny. Nonetheless, they make great KVM hosts. Add support for 36bit IPA support with 4kB pages, which makes some of the fruity machines happy. Whilst we're at it, add support for 64kB pages as well, though these boxes have no support for it. Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20211227124809.1335409-6-maz@kernel.org
This commit is contained in:
@@ -37,6 +37,10 @@ void guest_modes_append_default(void)
|
||||
if (ps4k)
|
||||
vm_mode_default = VM_MODE_P40V48_4K;
|
||||
}
|
||||
if (limit >= 36) {
|
||||
guest_mode_append(VM_MODE_P36V48_4K, ps4k, ps4k);
|
||||
guest_mode_append(VM_MODE_P36V48_64K, ps64k, ps64k);
|
||||
}
|
||||
|
||||
/*
|
||||
* Pick the first supported IPA size if the default
|
||||
|
||||
Reference in New Issue
Block a user