Home
last modified time | relevance | path

Searched refs:memslot (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/virt/kvm/
H A Dvm.rs133 let memslot = &self.memslots[as_id as usize].memslots[i as usize]; in set_user_memory_region() localVariable
134 if memslot.id == id || memslot.id as u32 >= KVM_USER_MEM_SLOTS { in set_user_memory_region()
138 if !(base_gfn + npages <= memslot.base_gfn in set_user_memory_region()
139 || memslot.base_gfn + memslot.npages <= base_gfn) in set_user_memory_region()
H A Dhost_mem.rs91 let memslot = slots.memslots[i as usize]; in __gfn_to_memslot() localVariable
92 if gfn >= memslot.base_gfn && gfn < memslot.base_gfn + memslot.npages { in __gfn_to_memslot()
93 return Some(memslot); in __gfn_to_memslot()