diff options
author | neel <neel@FreeBSD.org> | 2013-10-16 18:20:27 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2013-10-16 18:20:27 +0000 |
commit | 75369cb181bbad01f9b7956c57cb5dc2b168c6a2 (patch) | |
tree | 485e8ff412606d07ec06cf7fe2ff393c3985ba76 /lib/libvmmapi | |
parent | 7a806a64eabb6a6bc145d48b2705d1ba8e71c76e (diff) | |
download | FreeBSD-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.c | 1 |
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 } }; |