Lines Matching refs:as_id
1439 int as_id, struct kvm_memslots *slots) in install_new_memslots() argument
1441 struct kvm_memslots *old_memslots = __kvm_memslots(kvm, as_id); in install_new_memslots()
1461 rcu_assign_pointer(kvm->memslots[as_id], slots); in install_new_memslots()
1534 struct kvm_memory_slot *new, int as_id, in kvm_set_memslot() argument
1557 slots = kvm_dup_memslots(__kvm_memslots(kvm, as_id), change); in kvm_set_memslot()
1576 slots = install_new_memslots(kvm, as_id, slots); in kvm_set_memslot()
1596 kvm_copy_memslots(slots, __kvm_memslots(kvm, as_id)); in kvm_set_memslot()
1613 old.as_id = as_id; in kvm_set_memslot()
1624 slots = install_new_memslots(kvm, as_id, slots); in kvm_set_memslot()
1639 slots = install_new_memslots(kvm, as_id, slots); in kvm_set_memslot()
1649 struct kvm_memory_slot *old, int as_id) in kvm_delete_memslot() argument
1662 new.as_id = as_id; in kvm_delete_memslot()
1664 return kvm_set_memslot(kvm, mem, &new, as_id, KVM_MR_DELETE); in kvm_delete_memslot()
1681 int as_id, id; in __kvm_set_memory_region() local
1688 as_id = mem->slot >> 16; in __kvm_set_memory_region()
1703 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_MEM_SLOTS_NUM) in __kvm_set_memory_region()
1714 tmp = id_to_memslot(__kvm_memslots(kvm, as_id), id); in __kvm_set_memory_region()
1724 return kvm_delete_memslot(kvm, mem, &old, as_id); in __kvm_set_memory_region()
1726 new.as_id = as_id; in __kvm_set_memory_region()
1758 kvm_for_each_memslot(tmp, __kvm_memslots(kvm, as_id)) { in __kvm_set_memory_region()
1779 r = kvm_set_memslot(kvm, mem, &new, as_id, change); in __kvm_set_memory_region()
1827 int i, as_id, id; in kvm_get_dirty_log() local
1838 as_id = log->slot >> 16; in kvm_get_dirty_log()
1840 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_USER_MEM_SLOTS) in kvm_get_dirty_log()
1843 slots = __kvm_memslots(kvm, as_id); in kvm_get_dirty_log()
1890 int i, as_id, id; in kvm_get_dirty_log_protect() local
1900 as_id = log->slot >> 16; in kvm_get_dirty_log_protect()
1902 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_USER_MEM_SLOTS) in kvm_get_dirty_log_protect()
1905 slots = __kvm_memslots(kvm, as_id); in kvm_get_dirty_log_protect()
2001 int as_id, id; in kvm_clear_dirty_log_protect() local
2012 as_id = log->slot >> 16; in kvm_clear_dirty_log_protect()
2014 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_USER_MEM_SLOTS) in kvm_clear_dirty_log_protect()
2020 slots = __kvm_memslots(kvm, as_id); in kvm_clear_dirty_log_protect()
3027 u32 slot = (memslot->as_id << 16) | memslot->id; in mark_page_dirty_in_slot()