Skip to content

Commit d5cde2e

Browse files
committed
Merge tag 'kvm-x86-pmu-6.7' of https://github.com/kvm-x86/linux into HEAD
KVM PMU change for 6.7: - Handle NMI/SMI requests after PMU/PMI requests so that a PMI=>NMI doesn't require redoing the entire run loop due to the NMI not being detected until the final kvm_vcpu_exit_request() check before entering the guest.
2 parents e122d7a + fad505b commit d5cde2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/x86/kvm/x86.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10698,16 +10698,16 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
1069810698
}
1069910699
if (kvm_check_request(KVM_REQ_STEAL_UPDATE, vcpu))
1070010700
record_steal_time(vcpu);
10701+
if (kvm_check_request(KVM_REQ_PMU, vcpu))
10702+
kvm_pmu_handle_event(vcpu);
10703+
if (kvm_check_request(KVM_REQ_PMI, vcpu))
10704+
kvm_pmu_deliver_pmi(vcpu);
1070110705
#ifdef CONFIG_KVM_SMM
1070210706
if (kvm_check_request(KVM_REQ_SMI, vcpu))
1070310707
process_smi(vcpu);
1070410708
#endif
1070510709
if (kvm_check_request(KVM_REQ_NMI, vcpu))
1070610710
process_nmi(vcpu);
10707-
if (kvm_check_request(KVM_REQ_PMU, vcpu))
10708-
kvm_pmu_handle_event(vcpu);
10709-
if (kvm_check_request(KVM_REQ_PMI, vcpu))
10710-
kvm_pmu_deliver_pmi(vcpu);
1071110711
if (kvm_check_request(KVM_REQ_IOAPIC_EOI_EXIT, vcpu)) {
1071210712
BUG_ON(vcpu->arch.pending_ioapic_eoi > 255);
1071310713
if (test_bit(vcpu->arch.pending_ioapic_eoi,

0 commit comments

Comments
 (0)