Re: deactivate fpu when cr0.PE ON?

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

 



Dong, Eddie wrote:
	Following code deactivate fpu when CR0.PE is on, any  explaination? Rest of code active/deactive fpu based on cr0.TS bit.
	


The idea is, if the guest is doing a context switch, then it will likely set its own lazy fpu code, so we anticipate it and deactivate the cpu.

When cr0.pe is cleared, lazy fpu usually doesn't work so we leave it enabled.

However the mechanism of deactivating the fpu on cr3 write doesn't work with npt or ept, I'd like to replace it with something better.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

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