Date: Thu, 27 Jun 2013 21:34:30 +0000 (UTC) From: Neel Natu <neel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r252319 - projects/bhyve_npt_pmap/sys/amd64/include Message-ID: <201306272134.r5RLYU01087760@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306272134.r5RLYU01087760>