All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@qumranet.com>
To: jan.kiszka@siemens.com
Cc: kvm@vger.kernel.org, sheng.yang@intel.com, avi@redhat.com,
	gleb@redhat.com
Subject: Re: [PATCH 04/14] KVM: x86: Reset pending/inject NMI state on CPU reset
Date: Sun, 28 Sep 2008 13:53:41 +0300	[thread overview]
Message-ID: <20080928105341.GC32558@minantech.com> (raw)
In-Reply-To: <20080926073045.237720419@mchn012c.ww002.siemens.net>

On Fri, Sep 26, 2008 at 09:30:48AM +0200, jan.kiszka@siemens.com wrote:
> CPU reset invalidates pending or already injected NMIs, therefore reset
> the related state variables.
> 
> Based on original patch by Gleb Natapov.
> 
Signed-off-by: Gleb Natapov <gleb@redhat.com>

> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  arch/x86/kvm/x86.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> Index: b/arch/x86/kvm/x86.c
> ===================================================================
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -4173,6 +4173,9 @@ void kvm_arch_vcpu_destroy(struct kvm_vc
>  
>  int kvm_arch_vcpu_reset(struct kvm_vcpu *vcpu)
>  {
> +	vcpu->arch.nmi_pending = false;
> +	vcpu->arch.nmi_injected = false;
> +
>  	return kvm_x86_ops->vcpu_reset(vcpu);
>  }
>  

--
			Gleb.

  reply	other threads:[~2008-09-28 10:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-26  7:30 [PATCH 00/14] Fix & enhance NMI support for KVM - v4 jan.kiszka
2008-09-26  7:30 ` [PATCH 01/14] KVM: VMX: include all IRQ window exits in statistics jan.kiszka
2008-09-26  7:30 ` [PATCH 02/14] KVM: VMX: Use INTR_TYPE_NMI_INTR instead of magic value jan.kiszka
2008-09-26  7:30 ` [PATCH 03/14] KVM: VMX: Support for NMI task gates jan.kiszka
2008-09-28 10:53   ` Gleb Natapov
2008-09-26  7:30 ` [PATCH 04/14] KVM: x86: Reset pending/inject NMI state on CPU reset jan.kiszka
2008-09-28 10:53   ` Gleb Natapov [this message]
2008-09-26  7:30 ` [PATCH 05/14] KVM: VMX: refactor/fix IRQ and NMI injectability determination jan.kiszka
2008-09-26  7:30 ` [PATCH 06/14] KVM: VMX: refactor IRQ and NMI window enabling jan.kiszka
2008-09-26  7:30 ` [PATCH 07/14] KVM: VMX: fix real-mode NMI support jan.kiszka
2008-09-26  7:30 ` [PATCH 08/14] KVM: x86: Enable NMI Watchdog via in-kernel PIT source jan.kiszka
2008-09-28  9:40   ` Avi Kivity
2008-09-28 10:01     ` Jan Kiszka
2008-09-26  7:30 ` [PATCH 09/14] KVM: x86: VCPU with pending NMI is runnabled jan.kiszka
2008-09-26  7:30 ` [PATCH 10/14] KVM: Kick NMI receiving VCPU jan.kiszka
2008-09-26  7:30 ` [PATCH 11/14] KVM: x86: Support for user space injected NMIs jan.kiszka
2008-09-26  7:30 ` [PATCH 12/14] KVM: VMX: Provide support " jan.kiszka
2008-09-26  7:30 ` [PATCH 13/14] KVM: VMX: work around lacking VNMI support jan.kiszka
2008-09-26  7:30 ` [PATCH 14/14] kvm-userspace: Enable NMI support for user space irqchip jan.kiszka
2008-09-28  9:45 ` [PATCH 00/14] Fix & enhance NMI support for KVM - v4 Avi Kivity
2008-09-28 10:00   ` Jan Kiszka
2008-09-28 10:05   ` Gleb Natapov
2008-09-28 10:57   ` Gleb Natapov
2008-09-30 17:00 ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080928105341.GC32558@minantech.com \
    --to=gleb@qumranet.com \
    --cc=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    --cc=sheng.yang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.