diff options
author | neel <neel@FreeBSD.org> | 2013-10-22 00:58:51 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2013-10-22 00:58:51 +0000 |
commit | b31f0060b59a4d7ad2b7ddb3261a49fbdce0dad1 (patch) | |
tree | 9dfed47515f37a1e3685838506fddfadda2af8dd /sys/amd64/vmm/intel/vmx_controls.h | |
parent | 44f5357aec14c32040c49f1703b1d4c2cac5d080 (diff) | |
download | FreeBSD-src-b31f0060b59a4d7ad2b7ddb3261a49fbdce0dad1.zip FreeBSD-src-b31f0060b59a4d7ad2b7ddb3261a49fbdce0dad1.tar.gz |
MFC r256645.
Add a new capability, VM_CAP_ENABLE_INVPCID, that can be enabled to expose
'invpcid' instruction to the guest. Currently bhyve will try to enable this
capability unconditionally if it is available.
Consolidate code in bhyve to set the capabilities so it is no longer
duplicated in BSP and AP bringup.
Add a sysctl 'vm.pmap.invpcid_works' to display whether the 'invpcid'
instruction is available.
Approved by: re (hrs)
Diffstat (limited to 'sys/amd64/vmm/intel/vmx_controls.h')
-rw-r--r-- | sys/amd64/vmm/intel/vmx_controls.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/vmm/intel/vmx_controls.h b/sys/amd64/vmm/intel/vmx_controls.h index 31f29f8..b37e6d1 100644 --- a/sys/amd64/vmm/intel/vmx_controls.h +++ b/sys/amd64/vmm/intel/vmx_controls.h @@ -68,6 +68,7 @@ #define PROCBASED2_WBINVD_EXITING (1 << 6) #define PROCBASED2_UNRESTRICTED_GUEST (1 << 7) #define PROCBASED2_PAUSE_LOOP_EXITING (1 << 10) +#define PROCBASED2_ENABLE_INVPCID (1 << 12) /* VM Exit Controls */ #define VM_EXIT_SAVE_DEBUG_CONTROLS (1 << 2) |