summaryrefslogtreecommitdiffstats
path: root/sys/amd64/vmm/intel/vmcs.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-02-23 01:34:40 +0000
committerjhb <jhb@FreeBSD.org>2014-02-23 01:34:40 +0000
commit92ff5e5bfb4b3cca97831c9db2df85e24b5f7c8b (patch)
tree7e585f641712c5bb91a81b6d0869e84cf1a0bf77 /sys/amd64/vmm/intel/vmcs.c
parent69d17427cae2b573203a13c2fe8cac0865c3cfdc (diff)
downloadFreeBSD-src-92ff5e5bfb4b3cca97831c9db2df85e24b5f7c8b.zip
FreeBSD-src-92ff5e5bfb4b3cca97831c9db2df85e24b5f7c8b.tar.gz
MFC 259542:
Use vmcs_read() and vmcs_write() in preference to vmread() and vmwrite() respectively. The vmcs_xxx() functions provide inline error checking of all accesses to the VMCS.
Diffstat (limited to 'sys/amd64/vmm/intel/vmcs.c')
-rw-r--r--sys/amd64/vmm/intel/vmcs.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/amd64/vmm/intel/vmcs.c b/sys/amd64/vmm/intel/vmcs.c
index 5b30acc..980eac1 100644
--- a/sys/amd64/vmm/intel/vmcs.c
+++ b/sys/amd64/vmm/intel/vmcs.c
@@ -41,8 +41,8 @@ __FBSDID("$FreeBSD$");
#include <machine/segments.h>
#include <machine/vmm.h>
#include "vmm_host.h"
-#include "vmcs.h"
#include "vmx_cpufunc.h"
+#include "vmcs.h"
#include "ept.h"
#include "vmx.h"
@@ -454,19 +454,6 @@ done:
return (error);
}
-uint64_t
-vmcs_read(uint32_t encoding)
-{
- int error;
- uint64_t val;
-
- error = vmread(encoding, &val);
- if (error != 0)
- panic("vmcs_read(%u) error %d", encoding, error);
-
- return (val);
-}
-
#ifdef DDB
extern int vmxon_enabled[];
OpenPOWER on IntegriCloud