mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
6f4f8223b8
Add a function that returns the size of guest physical addresses. This wraps KVM_CAP_ARM_VM_IPA_SIZE on aarch64 and CPUID to query host physical address size on x86_64. This replaces the phy_max_address_bits function from x86_64, and all callers are migrated to use the new Vm function instead. BUG=b:210727578 TEST=check on trogdor64 with debug prints Change-Id: I3107fe6357fcf166b7ad0e2a7c55919705da3b0c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3364971 Reviewed-by: Dmitry Torokhov <dtor@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Andrew Walbran <qwandor@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |