mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Handle queue addresses translation
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>
This commit is contained in:
committed by
Rob Bradford
parent
5ee0291ddc
commit
ce6446501d
@@ -423,6 +423,7 @@ impl VirtioPciDevice {
|
||||
id,
|
||||
configuration,
|
||||
common_config: VirtioPciCommonConfig {
|
||||
access_platform,
|
||||
driver_status: 0,
|
||||
config_generation: 0,
|
||||
device_feature_select: 0,
|
||||
|
||||
Reference in New Issue
Block a user