All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Avi Kivity <avi@redhat.com>, Jan Kiszka <jan.kiszka@siemens.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [PATCH v2 4/4] KVM: x86: Add VCPU substate for NMI states
Date: Tue, 20 Oct 2009 14:44:21 +0200	[thread overview]
Message-ID: <20091020124421.GK29477@redhat.com> (raw)
In-Reply-To: <20091020111302.GA5123@amt.cnet>

On Tue, Oct 20, 2009 at 09:13:02AM -0200, Marcelo Tosatti wrote:
> On Tue, Oct 20, 2009 at 06:14:04PM +0900, Avi Kivity wrote:
> > On 10/20/2009 06:08 PM, Gleb Natapov wrote:
> >> On Tue, Oct 20, 2009 at 06:06:36PM +0900, Avi Kivity wrote:
> >>    
> >>> On 10/20/2009 05:56 PM, Jan Kiszka wrote:
> >>>      
> >>>> So save/restore kvm_vcpu_arch::exception? As another substate or as part
> >>>> of a generalized NMI substate?
> >>>>        
> >>> Yes.  It's not part of an nmi substate, but both can be part of an
> >>> exception substate (but need to look at the docs vewy cawefuwy to
> >>> make sure we don't screw up again).
> >>>
> >>>      
> >> What do you mean? How they can be both part of exception substate?
> >>
> >>    
> >
> > Sorry, nomenclature failure.  We need NMI state, Interrupt state  
> > (already provided), and pending exception state (which can be a fault or  
> > a trap).  There's also some extra state associated with pending debug  
> > exceptions (maybe we can copy it into dr6).
> 
> KVM_REQ_TRIPLE_FAULT can also be lost, but i don't think anybody cares?
> 
If pending exception will be migrated KVM_REQ_TRIPLE_FAULT will be restored
after guest will try to re-execute instruction that caused it. One more
reason to migrate pending exceptions. And why not migrate
KVM_REQ_TRIPLE_FAULT while we are at it.

> >
> > We can either put all of these into one substate, or into separate  
> > substates.  I'm not sure which is best.

--
			Gleb.

  reply	other threads:[~2009-10-20 12:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 17:05 [PATCH v2 0/4] Extensible VCPU state IOCTL Jan Kiszka
2009-10-15 17:05 ` [PATCH v2 1/4] KVM: Reorder IOCTLs in main kvm.h Jan Kiszka
2009-10-15 17:05 ` [PATCH v2 4/4] KVM: x86: Add VCPU substate for NMI states Jan Kiszka
2009-10-19 20:32   ` Marcelo Tosatti
2009-10-19 20:39     ` Gleb Natapov
2009-10-19 23:34       ` Avi Kivity
2009-10-20  8:56         ` Jan Kiszka
2009-10-20  9:06           ` Avi Kivity
2009-10-20  9:08             ` Gleb Natapov
2009-10-20  9:14               ` Avi Kivity
2009-10-20 11:13                 ` Marcelo Tosatti
2009-10-20 12:44                   ` Gleb Natapov [this message]
2009-10-20  8:52     ` Jan Kiszka
2009-10-15 17:05 ` [PATCH v2 3/4] KVM: x86: Add support for KVM_GET/SET_VCPU_STATE Jan Kiszka
2009-10-15 17:05 ` [PATCH v2 2/4] KVM: Add unified KVM_GET/SET_VCPU_STATE IOCTL Jan Kiszka

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=20091020124421.GK29477@redhat.com \
    --to=gleb@redhat.com \
    --cc=avi@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.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.