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

Method prepare_l2_cloudinit

test_infra/src/lib.rs:1475–1483  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1473 }
1474
1475 pub fn prepare_l2_cloudinit(&self) -> (TempDir, String) {
1476 let l2_dir = TempDir::new_with_prefix("/tmp/ch-l2").unwrap();
1477 let l2_network = GuestNetworkConfig {
1478 tcp_listener_port: self.network.l2_tcp_listener_port,
1479 ..self.network.clone()
1480 };
1481 let path = self.disk_config.prepare_cloudinit(&l2_dir, &l2_network);
1482 (l2_dir, path)
1483 }
1484
1485 pub fn check_numa_node_cpus(&self, node_id: usize, cpus: &[usize]) -> Result<(), Error> {
1486 for cpu in cpus.iter() {

Callers 1

test_vfioFunction · 0.80

Calls 2

prepare_cloudinitMethod · 0.80
cloneMethod · 0.45

Tested by 1

test_vfioFunction · 0.64