Lines Matching refs:as_id

1394 static struct kvm_memslots *kvm_get_inactive_memslots(struct kvm *kvm, int as_id)  in kvm_get_inactive_memslots()  argument
1396 struct kvm_memslots *active = __kvm_memslots(kvm, as_id); in kvm_get_inactive_memslots()
1399 return &kvm->__memslots[as_id][node_idx_inactive]; in kvm_get_inactive_memslots()
1414 return b->as_id; in kvm_memslots_get_as_id()
1416 return a->as_id; in kvm_memslots_get_as_id()
1418 WARN_ON_ONCE(a->as_id != b->as_id); in kvm_memslots_get_as_id()
1419 return a->as_id; in kvm_memslots_get_as_id()
1478 int as_id = kvm_memslots_get_as_id(old, new); in kvm_replace_memslot() local
1479 struct kvm_memslots *slots = kvm_get_inactive_memslots(kvm, as_id); in kvm_replace_memslot()
1541 static void kvm_swap_active_memslots(struct kvm *kvm, int as_id) in kvm_swap_active_memslots() argument
1543 struct kvm_memslots *slots = kvm_get_inactive_memslots(kvm, as_id); in kvm_swap_active_memslots()
1546 u64 gen = __kvm_memslots(kvm, as_id)->generation; in kvm_swap_active_memslots()
1565 rcu_assign_pointer(kvm->memslots[as_id], slots); in kvm_swap_active_memslots()
1695 int as_id = kvm_memslots_get_as_id(old, new); in kvm_activate_memslot() local
1697 kvm_swap_active_memslots(kvm, as_id); in kvm_activate_memslot()
1713 dest->as_id = src->as_id; in kvm_copy_memslot()
1734 kvm_swap_active_memslots(kvm, old->as_id); in kvm_invalidate_memslot()
1928 int as_id, id; in __kvm_set_memory_region() local
1935 as_id = mem->slot >> 16; in __kvm_set_memory_region()
1950 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_MEM_SLOTS_NUM) in __kvm_set_memory_region()
1957 slots = __kvm_memslots(kvm, as_id); in __kvm_set_memory_region()
2010 new->as_id = as_id; in __kvm_set_memory_region()
2057 int i, as_id, id; in kvm_get_dirty_log() local
2068 as_id = log->slot >> 16; in kvm_get_dirty_log()
2070 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_USER_MEM_SLOTS) in kvm_get_dirty_log()
2073 slots = __kvm_memslots(kvm, as_id); in kvm_get_dirty_log()
2120 int i, as_id, id; in kvm_get_dirty_log_protect() local
2130 as_id = log->slot >> 16; in kvm_get_dirty_log_protect()
2132 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_USER_MEM_SLOTS) in kvm_get_dirty_log_protect()
2135 slots = __kvm_memslots(kvm, as_id); in kvm_get_dirty_log_protect()
2231 int as_id, id; in kvm_clear_dirty_log_protect() local
2242 as_id = log->slot >> 16; in kvm_clear_dirty_log_protect()
2244 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_USER_MEM_SLOTS) in kvm_clear_dirty_log_protect()
2250 slots = __kvm_memslots(kvm, as_id); in kvm_clear_dirty_log_protect()
3312 u32 slot = (memslot->as_id << 16) | memslot->id; in mark_page_dirty_in_slot()