From: Miaohe Lin Date: Sat, 18 Jan 2020 02:41:55 +0000 (+0800) Subject: KVM: x86: avoid clearing pending exception event twice X-Git-Tag: v5.10.7~3338^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=767b839afa5d62ba9cf859f4e90fef3d4a1780b5;p=platform%2Fkernel%2Flinux-rpi.git KVM: x86: avoid clearing pending exception event twice The exception pending event is cleared by kvm_clear_exception_queue(). We shouldn't clear it again. Signed-off-by: Miaohe Lin Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 780224e..2b26400 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -9355,7 +9355,6 @@ void kvm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) vcpu->arch.nmi_injected = false; kvm_clear_interrupt_queue(vcpu); kvm_clear_exception_queue(vcpu); - vcpu->arch.exception.pending = false; memset(vcpu->arch.db, 0, sizeof(vcpu->arch.db)); kvm_update_dr0123(vcpu);