* Registers need to recover when emulating L2 vmexit
@ 2013-07-08 11:50 Arthur Chunqi Li
2013-07-08 17:18 ` Gleb Natapov
0 siblings, 1 reply; 2+ messages in thread
From: Arthur Chunqi Li @ 2013-07-08 11:50 UTC (permalink / raw)
To: kvm; +Cc: Gleb Natapov, Paolo Bonzini, Jan Kiszka
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?
Thanks,
Arthur
--
Arthur Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Registers need to recover when emulating L2 vmexit
2013-07-08 11:50 Registers need to recover when emulating L2 vmexit Arthur Chunqi Li
@ 2013-07-08 17:18 ` Gleb Natapov
0 siblings, 0 replies; 2+ messages in thread
From: Gleb Natapov @ 2013-07-08 17:18 UTC (permalink / raw)
To: Arthur Chunqi Li; +Cc: kvm, Paolo Bonzini, Jan Kiszka
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-08 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-08 11:50 Registers need to recover when emulating L2 vmexit Arthur Chunqi Li
2013-07-08 17:18 ` Gleb Natapov
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.