Home
last modified time | relevance | path

Searched refs:as_id (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/virt/kvm/
H A Ddirty_ring.c56 int as_id, id; in kvm_reset_dirty_gfn() local
58 as_id = slot >> 16; in kvm_reset_dirty_gfn()
61 if (as_id >= KVM_ADDRESS_SPACE_NUM || id >= KVM_USER_MEM_SLOTS) in kvm_reset_dirty_gfn()
64 memslot = id_to_memslot(__kvm_memslots(kvm, as_id), id); in kvm_reset_dirty_gfn()
H A Dkvm_main.c1435 return b->as_id; in kvm_memslots_get_as_id()
1437 return a->as_id; in kvm_memslots_get_as_id()
1439 WARN_ON_ONCE(a->as_id != b->as_id); in kvm_memslots_get_as_id()
1440 return a->as_id; in kvm_memslots_get_as_id()
1742 dest->as_id = src->as_id; in kvm_copy_memslot()
1957 int as_id, id; in __kvm_set_memory_region() local
1964 as_id = mem->slot >> 16; in __kvm_set_memory_region()
2039 new->as_id = as_id; in __kvm_set_memory_region()
2086 int i, as_id, id; in kvm_get_dirty_log() local
2149 int i, as_id, id; in kvm_get_dirty_log_protect() local
[all …]
/openbmc/linux/arch/x86/kvm/mmu/
H A Dtdp_mmu.c258 static void handle_changed_spte(struct kvm *kvm, int as_id, gfn_t gfn,
419 static void handle_changed_spte(struct kvm *kvm, int as_id, gfn_t gfn, in handle_changed_spte() argument
447 as_id, gfn, old_spte, new_spte, level); in handle_changed_spte()
485 as_id, gfn, old_spte, new_spte, level); in handle_changed_spte()
554 handle_changed_spte(kvm, iter->as_id, iter->gfn, iter->old_spte, in tdp_mmu_set_spte_atomic()
627 iter->old_spte = tdp_mmu_set_spte(kvm, iter->as_id, iter->sptep, in tdp_mmu_iter_set_spte()
1150 for_each_tdp_mmu_root(kvm, root, range->slot->as_id) { in kvm_tdp_mmu_handle_gfn()
1199 trace_kvm_tdp_mmu_spte_changed(iter->as_id, iter->gfn, iter->level, in age_gfn_range()
1621 trace_kvm_tdp_mmu_spte_changed(iter.as_id, iter.gfn, iter.level, in clear_dirty_pt_masked()
1644 for_each_tdp_mmu_root(kvm, root, slot->as_id) in kvm_tdp_mmu_clear_dirty_pt_masked()
[all …]
H A Dmmutrace.h393 TP_PROTO(int as_id, gfn_t gfn, int level, u64 old_spte, u64 new_spte),
394 TP_ARGS(as_id, gfn, level, old_spte, new_spte),
403 __field(u8, as_id)
411 __entry->as_id = as_id;
415 __entry->as_id, __entry->gfn, __entry->level,
H A Dtdp_iter.h103 int as_id; member
H A Dtdp_iter.c52 iter->as_id = kvm_mmu_page_as_id(root); in tdp_iter_start()
/openbmc/qemu/include/sysemu/
H A Dkvm_int.h33 int as_id; member
50 int as_id; member
163 AddressSpace *as, int as_id, const char *name);
/openbmc/linux/include/linux/
H A Dkvm_host.h590 u16 as_id; member
990 static inline struct kvm_memslots *__kvm_memslots(struct kvm *kvm, int as_id) in __kvm_memslots() argument
992 as_id = array_index_nospec(as_id, KVM_ADDRESS_SPACE_NUM); in __kvm_memslots()
993 return srcu_dereference_check(kvm->memslots[as_id], &kvm->srcu, in __kvm_memslots()
1005 int as_id = kvm_arch_vcpu_memslots_id(vcpu); in kvm_vcpu_memslots() local
1007 return __kvm_memslots(vcpu->kvm, as_id); in kvm_vcpu_memslots()
/openbmc/qemu/accel/kvm/
H A Dkvm-all.c354 mem.slot = slot->slot | (kml->as_id << 16); in kvm_set_user_memory_region()
745 d.slot = slot->slot | (slot->as_id << 16); in kvm_slot_get_dirty_log()
760 static void kvm_dirty_ring_mark_page(KVMState *s, uint32_t as_id, in kvm_dirty_ring_mark_page() argument
766 if (as_id >= s->nr_as) { in kvm_dirty_ring_mark_page()
770 kml = s->as[as_id].ml; in kvm_dirty_ring_mark_page()
997 static int kvm_log_clear_one_slot(KVMSlot *mem, int as_id, uint64_t start, in kvm_log_clear_one_slot() argument
1078 d.slot = mem->slot | (as_id << 16); in kvm_log_clear_one_slot()
1156 ret = kvm_log_clear_one_slot(mem, kml->as_id, offset, count); in kvm_physical_log_clear()
1526 mem->as_id = kml->as_id; in kvm_set_phys_mem()
1898 AddressSpace *as, int as_id, const char *name) in kvm_memory_listener_register() argument
[all …]
/openbmc/linux/Documentation/virt/kvm/
H A Dapi.rst8130 __u32 slot; /* as_id | slot_id */