Re: [PATCH UNTESTED] KVM: VMX: Save/restore rflags.vm correctly in real mode

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

 



On Thu, Apr 08, 2010 at 06:19:35PM +0300, Avi Kivity wrote:
> Currently we set eflags.vm unconditionally when entering real mode emulation
> through virtual-8086 mode, and clear it unconditionally when we enter protected
> mode.  The means that the following sequence
> 
>   KVM_SET_REGS  (rflags.vm=1)
>   KVM_SET_SREGS (cr0.pe=1)
> 
> Ends up with rflags.vm clear due to KVM_SET_SREGS triggering enter_pmode().
> 
> Fix by shadowing rflags.vm (and rflags.iopl) correctly while in real mode:
> reads and writes to those bits access a shadow register instead of the actual
> register.
> 
> Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>

Tested and applied, thanks.

--
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