diff options
| -rw-r--r-- | arch/x86/kvm/lapic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 6e6f345adfe6..d24c8742d9b0 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c | |||
| @@ -1936,7 +1936,8 @@ void kvm_lapic_reset(struct kvm_vcpu *vcpu, bool init_event) | |||
| 1936 | for (i = 0; i < KVM_APIC_LVT_NUM; i++) | 1936 | for (i = 0; i < KVM_APIC_LVT_NUM; i++) |
| 1937 | kvm_lapic_set_reg(apic, APIC_LVTT + 0x10 * i, APIC_LVT_MASKED); | 1937 | kvm_lapic_set_reg(apic, APIC_LVTT + 0x10 * i, APIC_LVT_MASKED); |
| 1938 | apic_update_lvtt(apic); | 1938 | apic_update_lvtt(apic); |
| 1939 | if (kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_LINT0_REENABLED)) | 1939 | if (kvm_vcpu_is_reset_bsp(vcpu) && |
| 1940 | kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_LINT0_REENABLED)) | ||
| 1940 | kvm_lapic_set_reg(apic, APIC_LVT0, | 1941 | kvm_lapic_set_reg(apic, APIC_LVT0, |
| 1941 | SET_APIC_DELIVERY_MODE(0, APIC_MODE_EXTINT)); | 1942 | SET_APIC_DELIVERY_MODE(0, APIC_MODE_EXTINT)); |
| 1942 | apic_manage_nmi_watchdog(apic, kvm_lapic_get_reg(apic, APIC_LVT0)); | 1943 | apic_manage_nmi_watchdog(apic, kvm_lapic_get_reg(apic, APIC_LVT0)); |
