Home
last modified time | relevance | path

Searched refs:kvm_x86_ops (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.15/arch/x86/kvm/
Dpmu.c217 config = kvm_x86_ops.pmu_ops->find_arch_event(pmc_to_pmu(pmc), in reprogram_gp_counter()
271 kvm_x86_ops.pmu_ops->find_fixed_event(idx), in reprogram_fixed_counter()
280 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter()
302 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event()
324 return kvm_x86_ops.pmu_ops->is_valid_rdpmc_ecx(vcpu, idx); in kvm_pmu_is_valid_rdpmc_ecx()
374 pmc = kvm_x86_ops.pmu_ops->rdpmc_ecx_to_pmc(vcpu, idx, &mask); in kvm_pmu_rdpmc()
390 if (kvm_x86_ops.pmu_ops->deliver_pmi) in kvm_pmu_deliver_pmi()
391 kvm_x86_ops.pmu_ops->deliver_pmi(vcpu); in kvm_pmu_deliver_pmi()
398 return kvm_x86_ops.pmu_ops->msr_idx_to_pmc(vcpu, msr) || in kvm_pmu_is_valid_msr()
399 kvm_x86_ops.pmu_ops->is_valid_msr(vcpu, msr); in kvm_pmu_is_valid_msr()
[all …]
Dkvm_onhyperv.h18 if (kvm_x86_ops.tlb_remote_flush == hv_remote_flush_tlb) { in hv_track_root_tdp()
Dx86.c123 struct kvm_x86_ops kvm_x86_ops __read_mostly;
124 EXPORT_SYMBOL_GPL(kvm_x86_ops);
128 *(((struct kvm_x86_ops *)0)->func));
4098 r = kvm_x86_ops.nested_ops->get_state ? in kvm_vm_ioctl_check_extension()
4099 kvm_x86_ops.nested_ops->get_state(NULL, NULL, 0) : 0; in kvm_vm_ioctl_check_extension()
4102 r = kvm_x86_ops.enable_direct_tlbflush != NULL; in kvm_vm_ioctl_check_extension()
4105 r = kvm_x86_ops.nested_ops->enable_evmcs != NULL; in kvm_vm_ioctl_check_extension()
4917 if (!kvm_x86_ops.nested_ops->enable_evmcs) in kvm_vcpu_ioctl_enable_cap()
4919 r = kvm_x86_ops.nested_ops->enable_evmcs(vcpu, &vmcs_version); in kvm_vcpu_ioctl_enable_cap()
4928 if (!kvm_x86_ops.enable_direct_tlbflush) in kvm_vcpu_ioctl_enable_cap()
[all …]
Dpmu.h95 return kvm_x86_ops.pmu_ops->pmc_is_enabled(pmc); in pmc_is_enabled()
Dxen.c592 kvm_x86_ops.patch_hypercall(vcpu, instructions + 5); in kvm_xen_write_hypercall_page()
726 vcpu->run->xen.u.hcall.cpl = kvm_x86_ops.get_cpl(vcpu); in kvm_xen_hypercall()
Dhyperv.c2413 if (kvm_x86_ops.nested_ops->get_evmcs_version) in kvm_get_hv_cpuid()
2414 evmcs_ver = kvm_x86_ops.nested_ops->get_evmcs_version(vcpu); in kvm_get_hv_cpuid()
Dlapic.c121 return kvm_x86_ops.set_hv_timer in kvm_can_use_hv_timer()
2939 kvm_x86_ops.vcpu_deliver_sipi_vector(vcpu, sipi_vector); in kvm_apic_accept_events()
/Linux-v5.15/arch/x86/include/asm/
Dkvm_host.h1299 struct kvm_x86_ops { struct
1511 struct kvm_x86_ops *runtime_ops;
1525 extern struct kvm_x86_ops kvm_x86_ops;
1528 DECLARE_STATIC_CALL(kvm_x86_##func, *(((struct kvm_x86_ops *)0)->func));
1535 static_call_update(kvm_x86_##func, kvm_x86_ops.func); in kvm_ops_static_call_update()
1543 return __vmalloc(kvm_x86_ops.vm_size, GFP_KERNEL_ACCOUNT | __GFP_ZERO); in kvm_arch_alloc_vm()
1550 if (kvm_x86_ops.tlb_remote_flush && in kvm_arch_flush_remote_tlb()
/Linux-v5.15/arch/x86/kvm/svm/
Dsvm_onhyperv.h15 static struct kvm_x86_ops svm_x86_ops;
Dsvm.c4522 static struct kvm_x86_ops svm_x86_ops __initdata = {
/Linux-v5.15/arch/x86/kvm/mmu/
Dmmu_internal.h118 kvm_x86_ops.cpu_dirty_log_size; in kvm_vcpu_ad_need_write_protect()
Dmmu.c269 return kvm_x86_ops.tlb_remote_flush_with_range; in kvm_available_flush_tlb_with_range()
277 if (range && kvm_x86_ops.tlb_remote_flush_with_range) in kvm_flush_remote_tlbs_with_range()
1407 if (kvm_x86_ops.cpu_dirty_log_size) in kvm_arch_mmu_enable_log_dirty_pt_masked()
1415 return kvm_x86_ops.cpu_dirty_log_size; in kvm_cpu_dirty_log_size()
Dpaging_tmpl.h263 if (kvm_x86_ops.nested_ops->write_log_dirty(vcpu, addr)) in FNAME()
/Linux-v5.15/arch/x86/kvm/vmx/
Dvmx.c5075 if (kvm_x86_ops.get_cpl(vcpu) > 0) in handle_dr()
7474 if (kvm_x86_ops.set_hv_timer) in vmx_post_block()
7568 static struct kvm_x86_ops vmx_x86_ops __initdata = {
Dnested.c4798 if (kvm_x86_ops.pmu_ops->is_valid_msr(vcpu, MSR_CORE_PERF_GLOBAL_CTRL)) { in nested_vmx_pmu_entry_exit_ctls_update()