]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Support guest writes to the TSC by enabling the "use TSC offsetting"
authortychon <tychon@FreeBSD.org>
Tue, 9 Jun 2015 00:14:47 +0000 (00:14 +0000)
committertychon <tychon@FreeBSD.org>
Tue, 9 Jun 2015 00:14:47 +0000 (00:14 +0000)
commit3259f3f35f305b53c284808724fe23d22697f8cb
treed4779e32e860798d2ddf42e82c0d3f98007246e2
parent81fc71b09027deb3faed44719f7c83b71aee7062
Support guest writes to the TSC by enabling the "use TSC offsetting"
execution control and writing the difference between the host TSC and
the guest TSC into the TSC offset in the VMCS upon encountering a
write.

Reviewed by: neel
sys/amd64/vmm/intel/vmx.c
sys/amd64/vmm/intel/vmx.h
sys/amd64/vmm/intel/vmx_msr.c