kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
	oritw@il.ibm.com, kvm-devel <kvm@vger.kernel.org>,
	Avi Kivity <avi@redhat.com>,
	Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: List of unaccessible x86 states
Date: Tue, 20 Oct 2009 21:31:46 +0200	[thread overview]
Message-ID: <20091020193146.GF8278@redhat.com> (raw)
In-Reply-To: <CBBAC164-A79B-41D2-A277-D4E9A4F52760@suse.de>

On Tue, Oct 20, 2009 at 09:23:22PM +0200, Alexander Graf wrote:
> 
> On 20.10.2009, at 21:09, Gleb Natapov wrote:
> 
> >On Tue, Oct 20, 2009 at 08:59:48PM +0200, Alexander Graf wrote:
> >>
> >>On 20.10.2009, at 20:55, Gleb Natapov wrote:
> >>
> >>>On Tue, Oct 20, 2009 at 03:51:02PM +0200, Alexander Graf wrote:
> >>>>
> >>>>On 20.10.2009, at 15:48, Gleb Natapov wrote:
> >>>>
> >>>>>On Tue, Oct 20, 2009 at 03:41:57PM +0200, Alexander Graf wrote:
> >>>>>>
> >>>>>>On 20.10.2009, at 15:37, Jan Kiszka wrote:
> >>>>>>
> >>>>>>>Alexander Graf wrote:
> >>>>>>>>On 20.10.2009, at 15:01, Jan Kiszka wrote:
> >>>>>>>>
> >>>>>>>>>Hi all,
> >>>>>>>>>
> >>>>>>>>>as the list of yet user-unaccessible x86 states is a bit
> >>>>>>>>>volatile ATM,
> >>>>>>>>>this is an attempt to collect the precise requirements for
> >>>>>>>>>additional
> >>>>>>>>>state fields. Once everyone feels the list is complete, we can
> >>>>>>>>>decide
> >>>>>>>>>how to partition it into one ore more substates for the new
> >>>>>>>>>KVM_GET/SET_VCPU_STATE interface.
> >>>>>>>>>
> >>>>>>>>>What I read so far (or tried to patch already):
> >>>>>>>>>
> >>>>>>>>>- nmi_masked
> >>>>>>>>>- nmi_pending
> >>>>>>>>>- nmi_injected
> >>>>>>>>>- kvm_queued_exception (whole struct content)
> >>>>>>>>>- KVM_REQ_TRIPLE_FAULT (from vcpu.requests)
> >>>>>>>>>
> >>>>>>>>>Unclear points (for me) from the last discussion:
> >>>>>>>>>
> >>>>>>>>>- sipi_vector
> >>>>>>>>>- MCE (covered via kvm_queued_exception, or does it
> >>>>>>>>>require more?)
> >>>>>>>>>
> >>>>>>>>>Please extend or correct the list as required.
> >>>>>>>>
> >>>>>>>>hflags. Qemu supports GIF, kvm supports GIF, but no side
> >>>>>>>>knows how to
> >>>>>>>>sync it.
> >>>>>>>
> >>>>>>>BTW, GIF is related to svm nesting, right?
> >>>>>>
> >>>>>>Yes and no. It's an architecture addition that came with
> >>>>>>SVM, yes.
> >>>>>>
> >>>>>>The problem is that I don't want to support migrating while in a
> >>>>>Why not?
> >>>>
> >>>>Because then we'd have to transfer the whole host cpu cache and the
> >>>>merged intercept bitmaps to userspace as well. That's just too many
> >>>>internals to expose IMHO.
> >>>>
> >>>But the amount of information is constant no matter how l2
> >>>guest there
> >>>are. Correct? We can expose it as separate substate.
> >>
> >>Or we can just not migrate while in a nested guest :-). Which will
> >>make everything a lot easier.
> >>
> >Suppose we have a l2 guest that handles interrupt/nmis by itself
> >how can we
> >force it to exit?
> 
> If the nested hypervisor doesn't intercept INTR we don't support it
> anyways.
> 
Why? I looked at the code briefly and it looks like we just inject
interrupt as usual instead of do nested exit if l2 does not intercept
INTR. Have I miss interpreted the code. Even if I have why not support
it?

> >I don't think requesting certain cpu state before
> >migration is the right thing to do. What if user paused a VM and then
> >decided to migrate?
> 
> So pausing has to make it go out of nested guest context too?
Probably.

> Then we're not in the nested guest context, right? :)
> 
> >Or VM was paused automatically because of shortage
> >of disk space and management want to migrate VM to other host with
> >bigger disk?
> 
> Same as before.
What do you mean?

> 
> 
> Really, pushing the whole nesting state over is not a good idea.
> 
May be just disallow migration with nested guest running then? Cross
vendor migration is not possible anyway.

--
			Gleb.

  reply	other threads:[~2009-10-20 19:31 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-20 13:01 List of unaccessible x86 states Jan Kiszka
2009-10-20 13:10 ` Alexander Graf
2009-10-20 13:19   ` Jan Kiszka
2009-10-20 13:27     ` Gleb Natapov
2009-10-20 13:29       ` Jan Kiszka
2009-10-20 13:32         ` Gleb Natapov
2009-10-20 13:27     ` Alexander Graf
2009-10-20 13:37   ` Jan Kiszka
2009-10-20 13:41     ` Alexander Graf
2009-10-20 13:48       ` Gleb Natapov
2009-10-20 13:51         ` Alexander Graf
2009-10-20 18:55           ` Gleb Natapov
2009-10-20 18:59             ` Alexander Graf
2009-10-20 19:09               ` Gleb Natapov
2009-10-20 19:23                 ` Alexander Graf
2009-10-20 19:31                   ` Gleb Natapov [this message]
2009-10-25  9:46                   ` Avi Kivity
2009-10-25 13:53                     ` Alexander Graf
2009-10-25 14:08                       ` Avi Kivity
2009-10-25 16:45                         ` Alexander Graf
2009-10-26  8:33                           ` Avi Kivity
2009-10-26  9:11                             ` Alexander Graf
2009-10-26  9:19                               ` Avi Kivity
2009-10-20 13:35 ` Gleb Natapov
2009-10-20 18:45 ` Marcelo Tosatti
2009-10-23 13:08   ` Jan Kiszka
2009-10-23 17:00     ` Marcelo Tosatti
2009-10-23 19:26       ` Jan Kiszka
2009-10-23 19:34 ` Jan Kiszka
2009-10-24 10:35   ` Alexander Graf
2009-10-25  9:49     ` Avi Kivity
2009-10-26  9:17       ` Joerg Roedel
2009-10-26  9:21         ` Avi Kivity
2009-10-26  9:30           ` Joerg Roedel
2009-10-26  9:39             ` Avi Kivity
2009-10-26  9:56               ` Joerg Roedel
2009-10-26 10:09                 ` Avi Kivity
2009-10-26 10:45                   ` Joerg Roedel
2009-10-26 10:56                     ` Avi Kivity
2009-10-26 11:10                       ` Joerg Roedel

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=20091020193146.GF8278@redhat.com \
    --to=gleb@redhat.com \
    --cc=agraf@suse.de \
    --cc=avi@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=oritw@il.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).