mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 01:16:50 +00:00
f0c46addbb
Add support for running protected VMs on x86 in the proper way, i.e. similarly to arm64, ask the pKVM hypervisor to load the pVM firmware (pvmfw) into the VM memory at a dedicated address and to set the VM entry point to the pvmfw address. The KVM uAPI used for that (for setting pvmfw address in guest memory and for querying pvmfw size) is almost exactly the same as on arm64. But as explained in [1], this is a temporary uAPI anyway, so for now don't try to generalize the crosvm code using this uAPI between both architectures. [1] https://android-review.git.corp.google.com/c/kernel/common/+/3372231 [2] https://android-review.git.corp.google.com/c/kernel/common/+/3372235 BUG=b:350694931 TEST=a VM run with "crosvm run --protected-vm" runs successfully, assuming that the bootloader provides pvmfw image to the host kernel, or using a pKVM hack described in "Test:" in [2] instead. Change-Id: I64242bcd0a4c053b8c27c2f83d5c876a885d0442 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6043709 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dmytro Maluka <dmaluka@chromium.org> Reviewed-by: Pierre-Clément Tosi <ptosi@google.com> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |