Re: [PATCH] KVM: VMX: Avoid writing HOST_CR0 every entry

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

 



On Mon, May 03, 2010 at 05:18:54PM +0300, Avi Kivity wrote:
> cr0.ts may change between entries, so we copy cr0 to HOST_CR0 before each
> entry.  That is slow, so instead, set HOST_CR0 to have TS set unconditionally
> (which is a safe value), and issue a clts() just before exiting vcpu context
> if the task indeed owns the fpu.
> 
> Saves ~50 cycles/exit.
> 
> Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>

Looks good to me.

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