/openbmc/linux/arch/x86/kvm/mmu/ |
H A D | tdp_mmu.c | 258 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() 459 trace_kvm_tdp_mmu_spte_changed(as_id, gfn, level, old_spte, new_spte); 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() 603 static u64 tdp_mmu_set_spte(struct kvm *kvm, int as_id, tdp_ptep_t sptep, in tdp_mmu_set_spte() argument 619 handle_changed_spte(kvm, as_id, gfn, old_spte, new_spte, level, false); in tdp_mmu_set_spte() 627 iter->old_spte = tdp_mmu_set_spte(kvm, iter->as_id, iter->sptep, in tdp_mmu_iter_set_spte() 1128 __for_each_tdp_mmu_root_yield_safe(kvm, root, range->slot->as_id, false, false) in kvm_tdp_mmu_unmap_gfn_range() [all …]
|
H A D | mmutrace.h | 393 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 D | tdp_iter.h | 103 int as_id; member
|
H A D | tdp_iter.c | 52 iter->as_id = kvm_mmu_page_as_id(root); in tdp_iter_start()
|
/openbmc/linux/virt/kvm/ |
H A D | dirty_ring.c | 56 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 D | kvm_main.c | 1415 static struct kvm_memslots *kvm_get_inactive_memslots(struct kvm *kvm, int as_id) in kvm_get_inactive_memslots() argument 1417 struct kvm_memslots *active = __kvm_memslots(kvm, as_id); in kvm_get_inactive_memslots() 1420 return &kvm->__memslots[as_id][node_idx_inactive]; in kvm_get_inactive_memslots() 1435 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() 1499 int as_id = kvm_memslots_get_as_id(old, new); in kvm_replace_memslot() local 1500 struct kvm_memslots *slots = kvm_get_inactive_memslots(kvm, as_id); in kvm_replace_memslot() 1562 static void kvm_swap_active_memslots(struct kvm *kvm, int as_id) in kvm_swap_active_memslots() argument [all …]
|
/openbmc/qemu/include/sysemu/ |
H A D | kvm_int.h | 33 int as_id; member 50 int as_id; member 172 AddressSpace *as, int as_id, const char *name);
|
/openbmc/linux/include/linux/ |
H A D | kvm_host.h | 590 u16 as_id; member 999 static inline struct kvm_memslots *__kvm_memslots(struct kvm *kvm, int as_id) in __kvm_memslots() argument 1001 as_id = array_index_nospec(as_id, KVM_ADDRESS_SPACE_NUM); in __kvm_memslots() 1002 return srcu_dereference_check(kvm->memslots[as_id], &kvm->srcu, in __kvm_memslots() 1014 int as_id = kvm_arch_vcpu_memslots_id(vcpu); in kvm_vcpu_memslots() local 1016 return __kvm_memslots(vcpu->kvm, as_id); in kvm_vcpu_memslots()
|
/openbmc/qemu/accel/kvm/ |
H A D | kvm-all.c | 356 mem.slot = slot->slot | (kml->as_id << 16); in kvm_set_user_memory_region() 757 d.slot = slot->slot | (slot->as_id << 16); in kvm_slot_get_dirty_log() 772 static void kvm_dirty_ring_mark_page(KVMState *s, uint32_t as_id, in kvm_dirty_ring_mark_page() argument 778 if (as_id >= s->nr_as) { in kvm_dirty_ring_mark_page() 782 kml = s->as[as_id].ml; in kvm_dirty_ring_mark_page() 1009 static int kvm_log_clear_one_slot(KVMSlot *mem, int as_id, uint64_t start, in kvm_log_clear_one_slot() argument 1090 d.slot = mem->slot | (as_id << 16); in kvm_log_clear_one_slot() 1168 ret = kvm_log_clear_one_slot(mem, kml->as_id, offset, count); in kvm_physical_log_clear() 1538 mem->as_id = kml->as_id; in kvm_set_phys_mem() 1906 AddressSpace *as, int as_id, const char *name) in kvm_memory_listener_register() argument [all …]
|
/openbmc/linux/Documentation/virt/kvm/ |
H A D | api.rst | 8130 __u32 slot; /* as_id | slot_id */
|