commit | e4a9e826707aaec90f4551c7e398c7bc46a51c4a | [log] [tgz] |
---|---|---|
author | Haiwei Li <haiwei.li@intel.corp-partner.google.com> | Thu Mar 24 14:18:32 2022 +0800 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 25 02:44:05 2022 +0000 |
tree | a07689edbcd54477d710d57399d11f3f654cbcd7 | |
parent | a7a04e6095d3d6a3e6dba36e1adddd20f86270f4 [diff] |
devices: virtio: iommu: narrow the pci range of viot Now we can use option `--pcie-root-port` to create a virtual pcie root port with some attributes same as host. So a vfio device may be connected to it statically. And only hot-pluggable devices and vfio devices with option `iommu=viommu` are needed to be attached to virtio-iommu. So we just append the sub pci range of a leaf node root port to viot. BUG=b:185084350 TEST=Boot a guest with option '--virtio-iommu' and '--pcie-root-port', check the PCI range node in guest viot. Change-Id: Iff59b5210fb85511370ede19bf1ca2095b4d603b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3541469 Reviewed-by: David Stevens <stevensd@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org>
crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the Chrome OS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.
crosvm is currently used to run Linux/Android guests on Chrome OS devices.