mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
ce6446501d
Upon the enablement of the queue by the guest, we perform a translation of the descriptor table, the available ring and used ring addresses prior to enabling the device itself. This only applies to the case where the device is placed behind a vIOMMU, which is the reason why the translation is needed. Indeed, the addresses allocated by the guest are IOVAs which must be translated into GPAs before we can access the queue. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>