summaryrefslogtreecommitdiffstats
path: root/lib/libvmmapi
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2013-10-16 18:20:27 +0000
committerneel <neel@FreeBSD.org>2013-10-16 18:20:27 +0000
commit75369cb181bbad01f9b7956c57cb5dc2b168c6a2 (patch)
tree485e8ff412606d07ec06cf7fe2ff393c3985ba76 /lib/libvmmapi
parent7a806a64eabb6a6bc145d48b2705d1ba8e71c76e (diff)
downloadFreeBSD-src-75369cb181bbad01f9b7956c57cb5dc2b168c6a2.zip
FreeBSD-src-75369cb181bbad01f9b7956c57cb5dc2b168c6a2.tar.gz
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. Reviewed by: grehan MFC after: 3 days
Diffstat (limited to 'lib/libvmmapi')
-rw-r--r--lib/libvmmapi/vmmapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c
index 810b39e..bb69358 100644
--- a/lib/libvmmapi/vmmapi.c
+++ b/lib/libvmmapi/vmmapi.c
@@ -415,6 +415,7 @@ static struct {
{ "mtrap_exit", VM_CAP_MTRAP_EXIT },
{ "pause_exit", VM_CAP_PAUSE_EXIT },
{ "unrestricted_guest", VM_CAP_UNRESTRICTED_GUEST },
+ { "enable_invpcid", VM_CAP_ENABLE_INVPCID },
{ 0 }
};
OpenPOWER on IntegriCloud