mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
17b1e02fb6
The value 0 passed to KVM_CREATE_VM has a special meaning for KVM/arm64. It indicates that the VM is configured with a 40bit IPA space. However, not all HW support such an IPA space, and the KVM_CREATE_VM call fails on these systems. In order to maximize compatibility, we can ask KVM for the maximum supported IPA size, and use that as an input to KVM_CREATE_VM, at which point the kernel will instantiate a VM with that IPA size. This enables crosvm on exotic hardware such as the Apple-M1. TEST=tools/run_tests Change-Id: I7ea39ac6e5de6a1389c0c30cdfeb7c970c411589 Signed-off-by: Marc Zyngier <mzyngier@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3124677 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |