Searched refs:mem_policy (Results 1 – 3 of 3) sorted by relevance
48 pub fn set_memory_policy(&self, mem_policy: MemoryPolicy) { in set_memory_policy()49 if mem_policy.is_empty() { in set_memory_policy()54 if mem_policy.contains(MemoryPolicy::USE_HUGEPAGES) { in set_memory_policy()62 if mem_policy.contains(MemoryPolicy::LOCK_GUEST_MEMORY) { in set_memory_policy()
607 let mut mem_policy = MemoryPolicy::empty(); in run_config() localVariable609 mem_policy |= MemoryPolicy::USE_HUGEPAGES; in run_config()611 mem.set_memory_policy(mem_policy); in run_config()
1290 let mut mem_policy = MemoryPolicy::empty(); in create_guest_memory() localVariable1292 mem_policy |= MemoryPolicy::USE_HUGEPAGES; in create_guest_memory()1296 mem_policy |= MemoryPolicy::LOCK_GUEST_MEMORY; in create_guest_memory()1298 guest_mem.set_memory_policy(mem_policy); in create_guest_memory()