From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH 7/11] kvm: kick NMI receiving VCPU Date: Mon, 22 Sep 2008 09:58:54 +0200 Message-ID: <48D7503E.3060904@siemens.com> References: <48D74CE6.5060008@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: "Yang, Sheng" , Avi Kivity , Gleb Natapov To: kvm-devel Return-path: Received: from lizzard.sbs.de ([194.138.37.39]:18885 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751857AbYIVIDR (ORCPT ); Mon, 22 Sep 2008 04:03:17 -0400 In-Reply-To: <48D74CE6.5060008@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: Kick the NMI-receiving VCPU in case the triggering caller runs in a different context. Signed-off-by: Jan Kiszka --- arch/x86/kvm/lapic.c | 1 + virt/kvm/ioapic.c | 1 + 2 files changed, 2 insertions(+) Index: b/arch/x86/kvm/lapic.c =================================================================== --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -354,6 +354,7 @@ static int __apic_accept_irq(struct kvm_ case APIC_DM_NMI: kvm_inject_nmi(vcpu); + kvm_vcpu_kick(vcpu); break; case APIC_DM_INIT: Index: b/virt/kvm/ioapic.c =================================================================== --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -150,6 +150,7 @@ static int ioapic_inj_irq(struct kvm_ioa static void ioapic_inj_nmi(struct kvm_vcpu *vcpu) { kvm_inject_nmi(vcpu); + kvm_vcpu_kick(vcpu); } static u32 ioapic_get_delivery_bitmask(struct kvm_ioapic *ioapic, u8 dest,