Trait crosvm::crosvm::sys::unix::jail_warden::JailWarden
source · pub trait JailWarden {
fn make_proxy_device(
&self,
resource_carrier: ResourceCarrier
) -> Result<(Arc<Mutex<dyn BusDevice>>, Pid)>;
}
Expand description
JailWarden takes ResourceCarrier, jail it, and returns a proxy to the created device.
Required Methods§
sourcefn make_proxy_device(
&self,
resource_carrier: ResourceCarrier
) -> Result<(Arc<Mutex<dyn BusDevice>>, Pid)>
fn make_proxy_device(
&self,
resource_carrier: ResourceCarrier
) -> Result<(Arc<Mutex<dyn BusDevice>>, Pid)>
Make a PCI device, jail it, and return the proxy to the jailed device as a BusDevice.