mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
590361aeb6
Whenever a virtio device is placed behind a vIOMMU, we have some code in pci_common_config.rs to translate the queue addresses (descriptor table, available ring and used ring) from GVA to GPA, so that they can be used correctly. But in case of vDPA, we also need to provide the queue addresses to the vhost backend. And since the vhost backend deals with consistent IOVAs, all addresses being provided should be GVAs if the device is placed being a vIOMMU. For that reason, we perform a translation of the queue addresses back from GPA to GVA if necessary, and only to be provided to the vhost backend. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |