From: Gleb Natapov <gleb@redhat.com>
To: Arthur Chunqi Li <yzt356@gmail.com>
Cc: kvm <kvm@vger.kernel.org>, Paolo Bonzini <pbonzini@redhat.com>,
Jan Kiszka <jan.kiszka@web.de>
Subject: Re: Registers need to recover when emulating L2 vmexit
Date: Mon, 8 Jul 2013 20:18:37 +0300 [thread overview]
Message-ID: <20130708171837.GC26728@redhat.com> (raw)
In-Reply-To: <CABpY8MJidjLTLNvCLZsMw=uVXCYgNB2ahCPUjeMZOLVeV7zzrw@mail.gmail.com>
On Mon, Jul 08, 2013 at 07:50:45PM +0800, Arthur Chunqi Li wrote:
> Hi Gleb and Paolo,
> >From current KVM codes, when L2 cause VMEXIT or L1 fails to enter L2,
> host VMX will execute nested_vmx_vmexit() and
> nested_vmx_entry_failure(). Both of them calls
> load_vmcs12_host_state() which loads vmcs12's HOST fields as vmcs01's
> GUEST fields. But the HOST and GUEST fields are not accurately
> correspondence, e.g. GUEST_CS/ES..._BASE/LIMIT/AR. What will these
> MSRs be set?
>
This is not MSRs, but VMCS field. Currently they are set to whatever
value they had in vmcs01 when L1 executed VMLAUNCH, but this is
incorrect. They should be set according to section 27.5.2
"Loading Host Segment and Descriptor-Table Registers" of SDM.
--
Gleb.
prev parent reply other threads:[~2013-07-08 17:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-08 11:50 Registers need to recover when emulating L2 vmexit Arthur Chunqi Li
2013-07-08 17:18 ` Gleb Natapov [this message]
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=20130708171837.GC26728@redhat.com \
--to=gleb@redhat.com \
--cc=jan.kiszka@web.de \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=yzt356@gmail.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.