svn commit: r252319 - projects/bhyve_npt_pmap/sys/amd64/include
Neel Natu
neel at FreeBSD.org
Thu Jun 27 21:34:30 UTC 2013
Author: neel
Date: Thu Jun 27 21:34:29 2013
New Revision: 252319
URL: http://svnweb.freebsd.org/changeset/base/252319
Log:
PG_AVAIL1 is available for software use only in the regular x86 page tables.
PG_AVAIL2 and PG_AVAIL3 on the other hand are available for software use
in both regular and nested page tables.
Redefine PG_W as PG_AVAIL3 instead of PG_AVAIL1 so we can use the same macro
regardless of the underlying pmap_type.
Modified:
projects/bhyve_npt_pmap/sys/amd64/include/pmap.h
Modified: projects/bhyve_npt_pmap/sys/amd64/include/pmap.h
==============================================================================
--- projects/bhyve_npt_pmap/sys/amd64/include/pmap.h Thu Jun 27 21:02:26 2013 (r252318)
+++ projects/bhyve_npt_pmap/sys/amd64/include/pmap.h Thu Jun 27 21:34:29 2013 (r252319)
@@ -66,9 +66,13 @@
#define PG_PDE_PAT 0x1000 /* PAT PAT index */
#define PG_NX (1ul<<63) /* No-execute */
+/*
+ * PG_AVAIL1 is available for software use only with the regular x86 PTEs.
+ * PG_AVAIL2 and PG_AVAIL3 are available in both the regular and nested PTEs.
+ */
/* Our various interpretations of the above */
-#define PG_W PG_AVAIL1 /* "Wired" pseudoflag */
+#define PG_W PG_AVAIL3 /* "Wired" pseudoflag */
#define PG_MANAGED PG_AVAIL2
#define PG_FRAME (0x000ffffffffff000ul)
#define PG_PS_FRAME (0x000fffffffe00000ul)
More information about the svn-src-projects
mailing list