diff options
author | Patrick Mooney <pmooney@pfmooney.com> | 2020-06-24 20:53:43 +0000 |
---|---|---|
committer | Patrick Mooney <pmooney@oxide.computer> | 2020-07-28 19:43:29 +0000 |
commit | c3ae3afa3e57b39e29577c4b791adbe511bb7e3f (patch) | |
tree | 5081966f18f31b25c2cad151247ccfcd9e872c85 /usr/src/lib | |
parent | 22e68029451fec16a660c22ed1304b05ed67f43d (diff) | |
download | illumos-joyent-c3ae3afa3e57b39e29577c4b791adbe511bb7e3f.tar.gz |
12916 bhyve should be able to limit vmx capabilities
12917 bhyve should always use Unrestricted Guest
Reviewed by: Mike Zeller <mike.zeller@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib')
-rw-r--r-- | usr/src/lib/libvmmapi/common/vmmapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/lib/libvmmapi/common/vmmapi.c b/usr/src/lib/libvmmapi/common/vmmapi.c index 9589d09ae1..7d3446a845 100644 --- a/usr/src/lib/libvmmapi/common/vmmapi.c +++ b/usr/src/lib/libvmmapi/common/vmmapi.c @@ -39,6 +39,7 @@ * * Copyright 2015 Pluribus Networks Inc. * Copyright 2019 Joyent, Inc. + * Copyright 2020 Oxide Computer Company */ #include <sys/cdefs.h> @@ -1004,7 +1005,9 @@ static const char *capstrmap[] = { [VM_CAP_HALT_EXIT] = "hlt_exit", [VM_CAP_MTRAP_EXIT] = "mtrap_exit", [VM_CAP_PAUSE_EXIT] = "pause_exit", +#ifdef __FreeBSD__ [VM_CAP_UNRESTRICTED_GUEST] = "unrestricted_guest", +#endif [VM_CAP_ENABLE_INVPCID] = "enable_invpcid", [VM_CAP_BPT_EXIT] = "bpt_exit", }; |