]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r256645.
authorneel <neel@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 22 Oct 2013 00:58:51 +0000 (00:58 +0000)
committerneel <neel@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 22 Oct 2013 00:58:51 +0000 (00:58 +0000)
commitce861dd0934c065ede6f6ca5214895650efa1ba3
tree9dfed47515f37a1e3685838506fddfadda2af8dd
parent30fbedc077d1e836a201881761ad29b0aaff9a77
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)

git-svn-id: svn://svn.freebsd.org/base/stable/10@256869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libvmmapi/vmmapi.c
sys/amd64/amd64/pmap.c
sys/amd64/include/vmm.h
sys/amd64/vmm/intel/vmx.c
sys/amd64/vmm/intel/vmx.h
sys/amd64/vmm/intel/vmx_controls.h
sys/amd64/vmm/x86.c
usr.sbin/bhyve/bhyverun.c
usr.sbin/bhyve/bhyverun.h
usr.sbin/bhyve/spinup_ap.c
usr.sbin/bhyvectl/bhyvectl.c