MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / create_vaia

Method create_vaia

hypervisor/src/kvm/mod.rs:875–879  ·  view source on GitHub ↗

Creates a virtual AIA device.

(&self, config: &VaiaConfig)

Source from the content-addressed store, hash-verified

873 /// Creates a virtual AIA device.
874 ///
875 fn create_vaia(&self, config: &VaiaConfig) -> vm::Result<Arc<Mutex<dyn Vaia>>> {
876 let aia_device = KvmAiaImsics::new(self, config)
877 .map_err(|e| vm::HypervisorVmError::CreateVaia(anyhow!("Vaia error {e:?}")))?;
878 Ok(Arc::new(Mutex::new(aia_device)))
879 }
880
881 ///
882 /// Registers an event to be signaled whenever a certain address is written to.

Callers 1

newMethod · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected