svn commit: r253251 - projects/bhyve_npt_pmap/sys/amd64/vmm/intel

Neel Natu neel at FreeBSD.org
Fri Jul 12 05:58:55 UTC 2013


Author: neel
Date: Fri Jul 12 05:58:54 2013
New Revision: 253251
URL: http://svnweb.freebsd.org/changeset/base/253251

Log:
  Get rid of unused cruft in ept.c.

Modified:
  projects/bhyve_npt_pmap/sys/amd64/vmm/intel/ept.c

Modified: projects/bhyve_npt_pmap/sys/amd64/vmm/intel/ept.c
==============================================================================
--- projects/bhyve_npt_pmap/sys/amd64/vmm/intel/ept.c	Fri Jul 12 05:45:09 2013	(r253250)
+++ projects/bhyve_npt_pmap/sys/amd64/vmm/intel/ept.c	Fri Jul 12 05:58:54 2013	(r253251)
@@ -29,26 +29,19 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
+#include <sys/param.h>
 #include <sys/types.h>
-#include <sys/errno.h>
 #include <sys/systm.h>
-#include <sys/malloc.h>
 #include <sys/smp.h>
 
 #include <vm/vm.h>
 #include <vm/pmap.h>
-#include <vm/vm_map.h>
 #include <vm/vm_extern.h>
 
-#include <machine/param.h>
-#include <machine/cpufunc.h>
-#include <machine/pmap.h>
-#include <machine/vmparam.h>
-
 #include <machine/vmm.h>
+
 #include "vmx_cpufunc.h"
 #include "vmx_msr.h"
-#include "vmx.h"
 #include "ept.h"
 
 #define	EPT_PWL4(cap)			((cap) & (1UL << 6))
@@ -66,17 +59,6 @@ __FBSDID("$FreeBSD$");
 #define	INVEPT_ALL_TYPES_SUPPORTED(cap)		\
 	(((cap) & INVEPT_ALL_TYPES_MASK) == INVEPT_ALL_TYPES_MASK)
 
-#define	EPT_PG_RD			(1 << 0)
-#define	EPT_PG_WR			(1 << 1)
-#define	EPT_PG_EX			(1 << 2)
-#define	EPT_PG_MEMORY_TYPE(x)		((x) << 3)
-#define	EPT_PG_IGNORE_PAT		(1 << 6)
-#define	EPT_PG_SUPERPAGE		(1 << 7)
-
-#define	EPT_ADDR_MASK			((uint64_t)-1 << 12)
-
-MALLOC_DECLARE(M_VMX);
-
 static uint64_t page_sizes_mask;
 
 int


More information about the svn-src-projects mailing list