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

Method create_vgic

hypervisor/src/kvm/mod.rs:865–869  ·  view source on GitHub ↗

Creates a virtual GIC device.

(&self, config: &VgicConfig)

Source from the content-addressed store, hash-verified

863 /// Creates a virtual GIC device.
864 ///
865 fn create_vgic(&self, config: &VgicConfig) -> vm::Result<Arc<Mutex<dyn Vgic>>> {
866 let gic_device = KvmGicV3Its::new(self, config)
867 .map_err(|e| vm::HypervisorVmError::CreateVgic(anyhow!("Vgic error {e:?}")))?;
868 Ok(Arc::new(Mutex::new(gic_device)))
869 }
870
871 #[cfg(target_arch = "riscv64")]
872 ///

Callers 3

newMethod · 0.45
test_save_data_tablesFunction · 0.45

Calls 1

newFunction · 0.85

Tested by 2

test_save_data_tablesFunction · 0.36