kvmtool: arm64: Configure VM with the minimal required IPA space

There is some value in keeping the IPA space small, as it reduces
the size of the stage-2 page tables.

Let's compute the required space at VM creation time, and inform
the kernel of our requirements.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Oliver Upton <oupton@google.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20210822152526.1291918-4-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
1 file changed