Home
last modified time | relevance | path

Searched refs:kvm (Results 1 – 25 of 259) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dkvm_book3s_uvmem.h9 int kvmppc_uvmem_slot_init(struct kvm *kvm, const struct kvm_memory_slot *slot);
10 void kvmppc_uvmem_slot_free(struct kvm *kvm,
12 unsigned long kvmppc_h_svm_page_in(struct kvm *kvm,
16 unsigned long kvmppc_h_svm_page_out(struct kvm *kvm,
20 unsigned long kvmppc_h_svm_init_start(struct kvm *kvm);
21 unsigned long kvmppc_h_svm_init_done(struct kvm *kvm);
22 int kvmppc_send_page_to_uv(struct kvm *kvm, unsigned long gfn);
23 unsigned long kvmppc_h_svm_init_abort(struct kvm *kvm);
25 struct kvm *kvm, bool skip_page_out);
26 int kvmppc_uvmem_memslot_create(struct kvm *kvm,
[all …]
Dkvm_ppc.h160 extern void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info);
161 extern long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order);
163 extern void kvmppc_rmap_reset(struct kvm *kvm);
164 extern long kvmppc_prepare_vrma(struct kvm *kvm,
169 extern long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd,
171 extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm,
173 extern int kvmppc_switch_mmu_to_hpt(struct kvm *kvm);
174 extern int kvmppc_switch_mmu_to_radix(struct kvm *kvm);
175 extern void kvmppc_setup_partition_table(struct kvm *kvm);
177 extern long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
[all …]
/kernel/linux/linux-5.10/include/linux/
Dkvm_host.h192 int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr,
194 int kvm_io_bus_unregister_dev(struct kvm *kvm, enum kvm_bus bus_idx,
196 struct kvm_io_device *kvm_io_bus_get_dev(struct kvm *kvm, enum kvm_bus bus_idx,
264 struct kvm *kvm; member
386 struct kvm *kvm, int irq_source_id, int level,
447 struct kvm { struct
538 bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req);
539 static inline void kvm_vm_bugged(struct kvm *kvm) in kvm_vm_bugged() argument
541 kvm->vm_bugged = true; in kvm_vm_bugged()
542 kvm_make_all_cpus_request(kvm, KVM_REQ_VM_BUGGED); in kvm_vm_bugged()
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
Dtdp_mmu.h8 void kvm_mmu_init_tdp_mmu(struct kvm *kvm);
9 void kvm_mmu_uninit_tdp_mmu(struct kvm *kvm);
11 bool is_tdp_mmu_root(struct kvm *kvm, hpa_t root);
13 void kvm_tdp_mmu_free_root(struct kvm *kvm, struct kvm_mmu_page *root);
15 bool __kvm_tdp_mmu_zap_gfn_range(struct kvm *kvm, gfn_t start, gfn_t end,
17 static inline bool kvm_tdp_mmu_zap_gfn_range(struct kvm *kvm, gfn_t start, in kvm_tdp_mmu_zap_gfn_range() argument
20 return __kvm_tdp_mmu_zap_gfn_range(kvm, start, end, true); in kvm_tdp_mmu_zap_gfn_range()
22 static inline bool kvm_tdp_mmu_zap_sp(struct kvm *kvm, struct kvm_mmu_page *sp) in kvm_tdp_mmu_zap_sp() argument
30 return __kvm_tdp_mmu_zap_gfn_range(kvm, sp->gfn, end, false); in kvm_tdp_mmu_zap_sp()
32 void kvm_tdp_mmu_zap_all(struct kvm *kvm);
[all …]
Dtdp_mmu.c25 void kvm_mmu_init_tdp_mmu(struct kvm *kvm) in kvm_mmu_init_tdp_mmu() argument
31 kvm->arch.tdp_mmu_enabled = true; in kvm_mmu_init_tdp_mmu()
33 INIT_LIST_HEAD(&kvm->arch.tdp_mmu_roots); in kvm_mmu_init_tdp_mmu()
34 INIT_LIST_HEAD(&kvm->arch.tdp_mmu_pages); in kvm_mmu_init_tdp_mmu()
37 void kvm_mmu_uninit_tdp_mmu(struct kvm *kvm) in kvm_mmu_uninit_tdp_mmu() argument
39 if (!kvm->arch.tdp_mmu_enabled) in kvm_mmu_uninit_tdp_mmu()
42 WARN_ON(!list_empty(&kvm->arch.tdp_mmu_roots)); in kvm_mmu_uninit_tdp_mmu()
45 static void tdp_mmu_put_root(struct kvm *kvm, struct kvm_mmu_page *root) in tdp_mmu_put_root() argument
47 if (kvm_mmu_put_root(kvm, root)) in tdp_mmu_put_root()
48 kvm_tdp_mmu_free_root(kvm, root); in tdp_mmu_put_root()
[all …]
/kernel/linux/linux-5.10/virt/kvm/
Deventfd.c36 kvm_arch_irqfd_allowed(struct kvm *kvm, struct kvm_irqfd *args) in kvm_arch_irqfd_allowed() argument
46 struct kvm *kvm = irqfd->kvm; in irqfd_inject() local
49 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 1, in irqfd_inject()
51 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 0, in irqfd_inject()
54 kvm_set_irq(kvm, KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID, in irqfd_inject()
67 struct kvm *kvm; in irqfd_resampler_ack() local
73 kvm = resampler->kvm; in irqfd_resampler_ack()
75 kvm_set_irq(kvm, KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID, in irqfd_resampler_ack()
78 idx = srcu_read_lock(&kvm->irq_srcu); in irqfd_resampler_ack()
83 srcu_read_unlock(&kvm->irq_srcu, idx); in irqfd_resampler_ack()
[all …]
Dkvm_main.c153 static void kvm_uevent_notify_change(unsigned int type, struct kvm *kvm);
157 __weak void kvm_arch_mmu_notifier_invalidate_range(struct kvm *kvm, in kvm_arch_mmu_notifier_invalidate_range() argument
162 __weak void kvm_arch_guest_memory_reclaimed(struct kvm *kvm) in kvm_arch_guest_memory_reclaimed() argument
263 bool kvm_make_vcpus_request_mask(struct kvm *kvm, unsigned int req, in kvm_make_vcpus_request_mask() argument
273 kvm_for_each_vcpu(i, vcpu, kvm) { in kvm_make_vcpus_request_mask()
295 bool kvm_make_all_cpus_request_except(struct kvm *kvm, unsigned int req, in kvm_make_all_cpus_request_except() argument
303 called = kvm_make_vcpus_request_mask(kvm, req, except, NULL, cpus); in kvm_make_all_cpus_request_except()
309 bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req) in kvm_make_all_cpus_request() argument
311 return kvm_make_all_cpus_request_except(kvm, req, NULL); in kvm_make_all_cpus_request()
315 void kvm_flush_remote_tlbs(struct kvm *kvm) in kvm_flush_remote_tlbs() argument
[all …]
Dirqchip.c22 int kvm_irq_map_gsi(struct kvm *kvm, in kvm_irq_map_gsi() argument
29 irq_rt = srcu_dereference_check(kvm->irq_routing, &kvm->irq_srcu, in kvm_irq_map_gsi()
30 lockdep_is_held(&kvm->irq_lock)); in kvm_irq_map_gsi()
41 int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) in kvm_irq_map_chip_pin() argument
45 irq_rt = srcu_dereference(kvm->irq_routing, &kvm->irq_srcu); in kvm_irq_map_chip_pin()
49 int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi) in kvm_send_userspace_msi() argument
53 if (!irqchip_in_kernel(kvm) || (msi->flags & ~KVM_MSI_VALID_DEVID)) in kvm_send_userspace_msi()
62 return kvm_set_msi(&route, kvm, KVM_USERSPACE_IRQ_SOURCE_ID, 1, false); in kvm_send_userspace_msi()
71 int kvm_set_irq(struct kvm *kvm, int irq_source_id, u32 irq, int level, in kvm_set_irq() argument
83 idx = srcu_read_lock(&kvm->irq_srcu); in kvm_set_irq()
[all …]
Dcoalesced_mmio.c54 ring = dev->kvm->coalesced_mmio_ring; in coalesced_mmio_has_room()
69 struct kvm_coalesced_mmio_ring *ring = dev->kvm->coalesced_mmio_ring; in coalesced_mmio_write()
75 spin_lock(&dev->kvm->ring_lock); in coalesced_mmio_write()
80 spin_unlock(&dev->kvm->ring_lock); in coalesced_mmio_write()
92 spin_unlock(&dev->kvm->ring_lock); in coalesced_mmio_write()
110 int kvm_coalesced_mmio_init(struct kvm *kvm) in kvm_coalesced_mmio_init() argument
118 kvm->coalesced_mmio_ring = page_address(page); in kvm_coalesced_mmio_init()
125 spin_lock_init(&kvm->ring_lock); in kvm_coalesced_mmio_init()
126 INIT_LIST_HEAD(&kvm->coalesced_zones); in kvm_coalesced_mmio_init()
131 void kvm_coalesced_mmio_free(struct kvm *kvm) in kvm_coalesced_mmio_free() argument
[all …]
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/
Dvgic-init.c52 void kvm_vgic_early_init(struct kvm *kvm) in kvm_vgic_early_init() argument
54 struct vgic_dist *dist = &kvm->arch.vgic; in kvm_vgic_early_init()
71 int kvm_vgic_create(struct kvm *kvm, u32 type) in kvm_vgic_create() argument
76 if (irqchip_in_kernel(kvm)) in kvm_vgic_create()
90 if (!lock_all_vcpus(kvm)) in kvm_vgic_create()
93 kvm_for_each_vcpu(i, vcpu, kvm) { in kvm_vgic_create()
100 kvm->arch.max_vcpus = VGIC_V2_MAX_CPUS; in kvm_vgic_create()
102 kvm->arch.max_vcpus = VGIC_V3_MAX_CPUS; in kvm_vgic_create()
104 if (atomic_read(&kvm->online_vcpus) > kvm->arch.max_vcpus) { in kvm_vgic_create()
109 kvm->arch.vgic.in_kernel = true; in kvm_vgic_create()
[all …]
Dvgic.h162 struct vgic_irq *vgic_get_irq(struct kvm *kvm, struct kvm_vcpu *vcpu,
164 void __vgic_put_lpi_locked(struct kvm *kvm, struct vgic_irq *irq);
165 void vgic_put_irq(struct kvm *kvm, struct vgic_irq *irq);
169 bool vgic_queue_irq_unlock(struct kvm *kvm, struct vgic_irq *irq,
171 void vgic_kick_vcpus(struct kvm *kvm);
173 int vgic_check_ioaddr(struct kvm *kvm, phys_addr_t *ioaddr,
190 int vgic_v2_map_resources(struct kvm *kvm);
191 int vgic_register_dist_iodev(struct kvm *kvm, gpa_t dist_base_address,
219 int vgic_v3_map_resources(struct kvm *kvm);
220 int vgic_v3_lpi_sync_pending_status(struct kvm *kvm, struct vgic_irq *irq);
[all …]
Dvgic-debug.c55 static void iter_init(struct kvm *kvm, struct vgic_state_iter *iter, in iter_init() argument
58 int nr_cpus = atomic_read(&kvm->online_vcpus); in iter_init()
63 iter->nr_spis = kvm->arch.vgic.nr_spis; in iter_init()
64 if (kvm->arch.vgic.vgic_model == KVM_DEV_TYPE_ARM_VGIC_V3) { in iter_init()
65 iter->nr_lpis = vgic_copy_lpi_list(kvm, NULL, &iter->lpi_array); in iter_init()
85 struct kvm *kvm = (struct kvm *)s->private; in vgic_debug_start() local
88 mutex_lock(&kvm->lock); in vgic_debug_start()
89 iter = kvm->arch.vgic.iter; in vgic_debug_start()
101 iter_init(kvm, iter, *pos); in vgic_debug_start()
102 kvm->arch.vgic.iter = iter; in vgic_debug_start()
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/
Dirq_comm.c31 struct kvm *kvm, int irq_source_id, int level, in kvm_set_pic_irq() argument
34 struct kvm_pic *pic = kvm->arch.vpic; in kvm_set_pic_irq()
39 struct kvm *kvm, int irq_source_id, int level, in kvm_set_ioapic_irq() argument
42 struct kvm_ioapic *ioapic = kvm->arch.vioapic; in kvm_set_ioapic_irq()
47 int kvm_irq_delivery_to_apic(struct kvm *kvm, struct kvm_lapic *src, in kvm_irq_delivery_to_apic() argument
55 if (kvm_irq_delivery_to_apic_fast(kvm, src, irq, &r, dest_map)) in kvm_irq_delivery_to_apic()
66 kvm_for_each_vcpu(i, vcpu, kvm) { in kvm_irq_delivery_to_apic()
95 lowest = kvm_get_vcpu(kvm, idx); in kvm_irq_delivery_to_apic()
104 void kvm_set_msi_irq(struct kvm *kvm, struct kvm_kernel_irq_routing_entry *e, in kvm_set_msi_irq() argument
107 trace_kvm_msi_set_irq(e->msi.address_lo | (kvm->arch.x2apic_format ? in kvm_set_msi_irq()
[all …]
Dirq.h25 struct kvm;
53 struct kvm *kvm; member
63 int kvm_pic_init(struct kvm *kvm);
64 void kvm_pic_destroy(struct kvm *kvm);
65 int kvm_pic_read_irq(struct kvm *kvm);
68 static inline int irqchip_split(struct kvm *kvm) in irqchip_split() argument
70 int mode = kvm->arch.irqchip_mode; in irqchip_split()
77 static inline int irqchip_kernel(struct kvm *kvm) in irqchip_kernel() argument
79 int mode = kvm->arch.irqchip_mode; in irqchip_kernel()
86 static inline int pic_in_kernel(struct kvm *kvm) in pic_in_kernel() argument
[all …]
/kernel/linux/linux-5.10/arch/s390/kvm/
Dkvm-s390.c245 static int sca_switch_to_extended(struct kvm *kvm);
278 struct kvm *kvm; in kvm_clock_sync() local
283 list_for_each_entry(kvm, &vm_list, vm_list) { in kvm_clock_sync()
284 kvm_for_each_vcpu(i, vcpu, kvm) { in kvm_clock_sync()
287 kvm->arch.epoch = vcpu->arch.sie_block->epoch; in kvm_clock_sync()
288 kvm->arch.epdx = vcpu->arch.sie_block->epdx; in kvm_clock_sync()
515 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) in kvm_vm_ioctl_check_extension() argument
553 if (hpage && !kvm_is_ucontrol(kvm)) in kvm_vm_ioctl_check_extension()
592 void kvm_arch_sync_dirty_log(struct kvm *kvm, struct kvm_memory_slot *memslot) in kvm_arch_sync_dirty_log() argument
597 struct gmap *gmap = kvm->arch.gmap; in kvm_arch_sync_dirty_log()
[all …]
Dpv.c26 KVM_UV_EVENT(vcpu->kvm, 3, "PROTVIRT DESTROY VCPU %d: rc %x rrc %x", in kvm_s390_pv_destroy_cpu()
68 uvcb.guest_handle = kvm_s390_pv_get_handle(vcpu->kvm); in kvm_s390_pv_create_cpu()
84 KVM_UV_EVENT(vcpu->kvm, 3, in kvm_s390_pv_create_cpu()
99 vcpu->arch.sie_block->pv_handle_config = kvm_s390_pv_get_handle(vcpu->kvm); in kvm_s390_pv_create_cpu()
106 static void kvm_s390_pv_dealloc_vm(struct kvm *kvm) in kvm_s390_pv_dealloc_vm() argument
108 vfree(kvm->arch.pv.stor_var); in kvm_s390_pv_dealloc_vm()
109 free_pages(kvm->arch.pv.stor_base, in kvm_s390_pv_dealloc_vm()
111 memset(&kvm->arch.pv, 0, sizeof(kvm->arch.pv)); in kvm_s390_pv_dealloc_vm()
114 static int kvm_s390_pv_alloc_vm(struct kvm *kvm) in kvm_s390_pv_alloc_vm() argument
121 kvm->arch.pv.stor_var = NULL; in kvm_s390_pv_alloc_vm()
[all …]
Dkvm-s390.h54 debug_sprintf_event(d_vcpu->kvm->arch.dbf, d_loglevel, \
82 return test_bit(kvm_vcpu_get_idx(vcpu), vcpu->kvm->arch.idle_mask); in is_vcpu_idle()
85 static inline int kvm_is_ucontrol(struct kvm *kvm) in kvm_is_ucontrol() argument
88 if (kvm->arch.gmap) in kvm_is_ucontrol()
182 static inline int test_kvm_facility(struct kvm *kvm, unsigned long nr) in test_kvm_facility() argument
184 return __test_facility(nr, kvm->arch.model.fac_mask) && in test_kvm_facility()
185 __test_facility(nr, kvm->arch.model.fac_list); in test_kvm_facility()
199 static inline int test_kvm_cpu_feat(struct kvm *kvm, unsigned long nr) in test_kvm_cpu_feat() argument
202 return test_bit_inv(nr, kvm->arch.cpu_feat); in test_kvm_cpu_feat()
206 static inline int kvm_s390_user_cpu_state_ctrl(struct kvm *kvm) in kvm_s390_user_cpu_state_ctrl() argument
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c231 struct kvm *kvm; member
246 int kvmppc_uvmem_slot_init(struct kvm *kvm, const struct kvm_memory_slot *slot) in kvmppc_uvmem_slot_init() argument
261 mutex_lock(&kvm->arch.uvmem_lock); in kvmppc_uvmem_slot_init()
262 list_add(&p->list, &kvm->arch.uvmem_pfns); in kvmppc_uvmem_slot_init()
263 mutex_unlock(&kvm->arch.uvmem_lock); in kvmppc_uvmem_slot_init()
271 void kvmppc_uvmem_slot_free(struct kvm *kvm, const struct kvm_memory_slot *slot) in kvmppc_uvmem_slot_free() argument
275 mutex_lock(&kvm->arch.uvmem_lock); in kvmppc_uvmem_slot_free()
276 list_for_each_entry_safe(p, next, &kvm->arch.uvmem_pfns, list) { in kvmppc_uvmem_slot_free()
284 mutex_unlock(&kvm->arch.uvmem_lock); in kvmppc_uvmem_slot_free()
287 static void kvmppc_mark_gfn(unsigned long gfn, struct kvm *kvm, in kvmppc_mark_gfn() argument
[all …]
DMakefile6 ccflags-y := -Ivirt/kvm -Iarch/powerpc/kvm
7 KVM := ../../../virt/kvm
19 kvm-e500-objs := \
29 kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs)
31 kvm-e500mc-objs := \
41 kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs)
43 kvm-book3s_64-builtin-objs-$(CONFIG_SPAPR_TCE_IOMMU) := \
46 kvm-pr-y := \
59 kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) += \
63 kvm-book3s_64-builtin-objs-$(CONFIG_KVM_BOOK3S_64_HANDLER) += \
[all …]
Dbook3s_64_mmu_radix.c90 int lpid = vcpu->kvm->arch.lpid; in kvmhv_copy_tofrom_guest_radix()
134 struct kvm *kvm = vcpu->kvm; in kvmppc_mmu_walk_radix_tree() local
166 vcpu->srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_mmu_walk_radix_tree()
167 ret = kvm_read_guest(kvm, addr, &rpte, sizeof(rpte)); in kvmppc_mmu_walk_radix_tree()
168 srcu_read_unlock(&kvm->srcu, vcpu->srcu_idx); in kvmppc_mmu_walk_radix_tree()
229 struct kvm *kvm = vcpu->kvm; in kvmppc_mmu_radix_translate_table() local
244 vcpu->srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_mmu_radix_translate_table()
245 ret = kvm_read_guest(kvm, ptbl, &entry, sizeof(entry)); in kvmppc_mmu_radix_translate_table()
246 srcu_read_unlock(&kvm->srcu, vcpu->srcu_idx); in kvmppc_mmu_radix_translate_table()
276 vcpu->kvm->arch.process_table, pid, &pte); in kvmppc_mmu_radix_xlate()
[all …]
Dbook3s_64_mmu_hv.c45 static long kvmppc_virtmode_do_h_enter(struct kvm *kvm, unsigned long flags,
51 struct kvm *kvm; member
116 void kvmppc_set_hpt(struct kvm *kvm, struct kvm_hpt_info *info) in kvmppc_set_hpt() argument
118 atomic64_set(&kvm->arch.mmio_update, 0); in kvmppc_set_hpt()
119 kvm->arch.hpt = *info; in kvmppc_set_hpt()
120 kvm->arch.sdr1 = __pa(info->virt) | (info->order - 18); in kvmppc_set_hpt()
123 info->virt, (long)info->order, kvm->arch.lpid); in kvmppc_set_hpt()
126 long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order) in kvmppc_alloc_reset_hpt() argument
131 mutex_lock(&kvm->arch.mmu_setup_lock); in kvmppc_alloc_reset_hpt()
132 if (kvm->arch.mmu_ready) { in kvmppc_alloc_reset_hpt()
[all …]
Dbook3s_hv_nested.c232 if (vcpu->kvm->arch.l1_ptcr == 0) in kvmhv_enter_nested_guest()
241 vcpu->srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvmhv_enter_nested_guest()
246 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->srcu_idx); in kvmhv_enter_nested_guest()
278 l2 = kvmhv_get_nested(vcpu->kvm, l2_hv.lpid, true); in kvmhv_enter_nested_guest()
348 vcpu->srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvmhv_enter_nested_guest()
353 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->srcu_idx); in kvmhv_enter_nested_guest()
454 void kvmhv_vm_nested_init(struct kvm *kvm) in kvmhv_vm_nested_init() argument
456 kvm->arch.max_nested_lpid = -1; in kvmhv_vm_nested_init()
466 struct kvm *kvm = vcpu->kvm; in kvmhv_set_partition_table() local
471 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmhv_set_partition_table()
[all …]
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-kvm.c103 static const char *get_exit_reason(struct perf_kvm_stat *kvm, in get_exit_reason() argument
114 (unsigned long long)exit_code, kvm->exit_reasons_isa); in get_exit_reason()
118 void exit_event_decode_key(struct perf_kvm_stat *kvm, in exit_event_decode_key() argument
122 const char *exit_reason = get_exit_reason(kvm, key->exit_reasons, in exit_event_decode_key()
128 static bool register_kvm_events_ops(struct perf_kvm_stat *kvm) in register_kvm_events_ops() argument
133 if (!strcmp(events_ops->name, kvm->report_event)) { in register_kvm_events_ops()
134 kvm->events_ops = events_ops->ops; in register_kvm_events_ops()
149 static void init_kvm_event_record(struct perf_kvm_stat *kvm) in init_kvm_event_record() argument
154 INIT_LIST_HEAD(&kvm->kvm_events_cache[i]); in init_kvm_event_record()
226 static struct kvm_event *find_create_kvm_event(struct perf_kvm_stat *kvm, in find_create_kvm_event() argument
[all …]
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dmmu.c42 static int stage2_apply_range(struct kvm *kvm, phys_addr_t addr, in stage2_apply_range() argument
51 struct kvm_pgtable *pgt = kvm->arch.mmu.pgt; in stage2_apply_range()
55 next = stage2_pgd_addr_end(kvm, addr, end); in stage2_apply_range()
61 cond_resched_lock(&kvm->mmu_lock); in stage2_apply_range()
67 #define stage2_apply_range_resched(kvm, addr, end, fn) \ argument
68 stage2_apply_range(kvm, addr, end, fn, true)
81 void kvm_flush_remote_tlbs(struct kvm *kvm) in kvm_flush_remote_tlbs() argument
83 kvm_call_hyp(__kvm_tlb_flush_vmid, &kvm->arch.mmu); in kvm_flush_remote_tlbs()
130 struct kvm *kvm = mmu->kvm; in __unmap_stage2_range() local
133 assert_spin_locked(&kvm->mmu_lock); in __unmap_stage2_range()
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/svm/
Dsev.c108 static int sev_get_asid(struct kvm *kvm) in sev_get_asid() argument
110 struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; in sev_get_asid()
150 static void sev_unbind_asid(struct kvm *kvm, unsigned int handle) in sev_unbind_asid() argument
174 static int sev_guest_init(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_guest_init() argument
176 struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; in sev_guest_init()
179 if (kvm->created_vcpus) in sev_guest_init()
205 static int sev_bind_asid(struct kvm *kvm, unsigned int handle, int *error) in sev_bind_asid() argument
208 int asid = sev_get_asid(kvm); in sev_bind_asid()
239 static int sev_issue_cmd(struct kvm *kvm, int id, void *data, int *error) in sev_issue_cmd() argument
241 struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; in sev_issue_cmd()
[all …]

1234567891011