virtio-devices: Implement VirtioDevice::access_platform()

This forwards through to the VirtioCommon implementation and can be used
to simplify the virtio PCI access code.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-04-17 09:11:47 +01:00
parent 636da215e3
commit 128ee6d105
7 changed files with 28 additions and 0 deletions

View File

@@ -501,6 +501,10 @@ where
fn set_access_platform(&mut self, access_platform: Arc<dyn AccessPlatform>) {
self.common.set_access_platform(access_platform);
}
fn access_platform(&self) -> Option<Arc<dyn AccessPlatform>> {
self.common.access_platform()
}
}
impl<B> Pausable for Vsock<B>