Home
last modified time | relevance | path

Searched refs:lbr_desc (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/arch/x86/kvm/vmx/
Dpmu_intel.c237 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in intel_pmu_release_guest_lbr_event() local
239 if (lbr_desc->event) { in intel_pmu_release_guest_lbr_event()
240 perf_event_release_kernel(lbr_desc->event); in intel_pmu_release_guest_lbr_event()
241 lbr_desc->event = NULL; in intel_pmu_release_guest_lbr_event()
248 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in intel_pmu_create_guest_lbr_event() local
280 if (unlikely(lbr_desc->event)) { in intel_pmu_create_guest_lbr_event()
292 lbr_desc->event = event; in intel_pmu_create_guest_lbr_event()
306 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in intel_pmu_handle_lbr_msrs_access() local
312 if (!lbr_desc->event && intel_pmu_create_guest_lbr_event(vcpu) < 0) in intel_pmu_handle_lbr_msrs_access()
322 if (lbr_desc->event->state == PERF_EVENT_STATE_ACTIVE) { in intel_pmu_handle_lbr_msrs_access()
[all …]
Dvmx.h108 struct lbr_desc { struct
369 struct lbr_desc lbr_desc; member
653 static inline struct lbr_desc *vcpu_to_lbr_desc(struct kvm_vcpu *vcpu) in vcpu_to_lbr_desc()
655 return &to_vmx(vcpu)->lbr_desc; in vcpu_to_lbr_desc()
Dvmx.c2127 if (intel_pmu_lbr_is_enabled(vcpu) && !to_vmx(vcpu)->lbr_desc.event && in vmx_set_msr()