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

Method backed_by_shared_memory

vmm/src/config.rs:2847–2862  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2845 }
2846
2847 pub fn backed_by_shared_memory(&self) -> bool {
2848 if self.memory.shared || self.memory.hugepages {
2849 return true;
2850 }
2851
2852 if self.memory.size == 0 {
2853 for zone in self.memory.zones.as_ref().unwrap() {
2854 if !zone.shared && !zone.hugepages {
2855 return false;
2856 }
2857 }
2858 true
2859 } else {
2860 false
2861 }
2862 }
2863
2864 // Also enables virtio-iommu if the config needs it
2865 // Returns the list of unique identifiers provided through the

Callers 2

validateMethod · 0.80
vm_send_migrationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected