Home
last modified time | relevance | path

Searched refs:mem_policy (Results 1 – 3 of 3) sorted by relevance

/external/crosvm/vm_memory/src/guest_memory/sys/
Dunix.rs48 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()
/external/crosvm/src/crosvm/plugin/
Dmod.rs607 let mut mem_policy = MemoryPolicy::empty(); in run_config() localVariable
609 mem_policy |= MemoryPolicy::USE_HUGEPAGES; in run_config()
611 mem.set_memory_policy(mem_policy); in run_config()
/external/crosvm/src/crosvm/sys/
Dunix.rs1290 let mut mem_policy = MemoryPolicy::empty(); in create_guest_memory() localVariable
1292 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()