virtio-devices: Add a VirtioDevice reference to VirtioPciCommonConfig

Replace the stored AccessPlatform reference with one to the
VirtioDevice. By doing this not only does it allow the code to be
simplified but also now makes it virtio spec compliant by only
translating via the access platform if the feature is acknowledged.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-04-17 09:14:44 +01:00
parent 128ee6d105
commit adc5bb7958
3 changed files with 50 additions and 84 deletions

View File

@@ -4405,7 +4405,7 @@ impl DeviceManager {
memory,
virtio_device,
msix_num,
access_platform,
access_platform.as_ref(),
self.msi_interrupt_manager.as_ref(),
pci_device_bdf.into(),
self.activate_evt