summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyvectl
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 /usr.sbin/bhyvectl
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 'usr.sbin/bhyvectl')
-rw-r--r--usr.sbin/bhyvectl/bhyvectl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c
index d6b32b8..0e92204 100644
--- a/usr.sbin/bhyvectl/bhyvectl.c
+++ b/usr.sbin/bhyvectl/bhyvectl.c
@@ -1495,6 +1495,7 @@ main(int argc, char *argv[])
vm_capability_type2name(captype),
val ? "set" : "not set", vcpu);
} else if (errno == ENOENT) {
+ error = 0;
printf("Capability \"%s\" is not available\n",
vm_capability_type2name(captype));
} else {
OpenPOWER on IntegriCloud