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

Method new

vmm/src/memory_manager.rs:182–191  ·  view source on GitHub ↗
(shared: bool, hugepages: bool, backing_page_size: u64, mergeable: bool)

Source from the content-addressed store, hash-verified

180
181impl MemoryZone {
182 fn new(shared: bool, hugepages: bool, backing_page_size: u64, mergeable: bool) -> Self {
183 Self {
184 regions: Vec::new(),
185 virtio_mem_zone: None,
186 shared,
187 hugepages,
188 backing_page_size,
189 mergeable,
190 }
191 }
192
193 pub fn regions(&self) -> &Vec<Arc<GuestRegionMmap>> {
194 &self.regions

Callers

nothing calls this directly

Calls 9

newFunction · 0.85
mmio_address_space_sizeFunction · 0.85
iterMethod · 0.80
arch_memory_regionsFunction · 0.50
cloneMethod · 0.45
mapMethod · 0.45
get_mutMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected