]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vmm vmx: Add a global bool to indicate if the host has the TSC_AUX MSR.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 18 Nov 2022 17:58:56 +0000 (09:58 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 18 Nov 2022 18:25:35 +0000 (10:25 -0800)
commit73abae4493782e44a3382b15f5563c3f400bf51f
treec3488a5dff5f6ebd1b1c3edef7c90c61ea774063
parent39ec056e6dbd89e26ee21d2928dbd37335de0ebc
vmm vmx: Add a global bool to indicate if the host has the TSC_AUX MSR.

A future commit will remove direct access to vCPU structures from
struct vmx, so add a dedicated boolean for this rather than checking
the capabilities for vCPU 0.

Reviewed by: corvink, markj
Differential Revision: https://reviews.freebsd.org/D37269
sys/amd64/vmm/intel/vmx.c
sys/amd64/vmm/intel/vmx.h
sys/amd64/vmm/intel/vmx_msr.c