mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user