Re: Registers need to recover when emulating L2 vmexit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux