x86/mm: lift PAGE_CACHE_ATTRS to page.h
authorWei Liu <wei.liu2@citrix.com>
Fri, 7 Jul 2017 14:26:28 +0000 (15:26 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 18 Aug 2017 12:59:06 +0000 (13:59 +0100)
Currently all the users are within x86/mm.c. But that will change once
we split PV specific mm code to another file. Lift that to page.h
along side _PAGE_* in preparation for later patches.

No functional change. Add some spaces around "|" while moving.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c
xen/include/asm-x86/page.h

index 7e37bbed556c4da2d21d047106c4a74180bd6153..2a71212fb4eb80b5cc72b042dfbcfb21af483b06 100644 (file)
@@ -157,8 +157,6 @@ bool __read_mostly machine_to_phys_mapping_valid;
 
 struct rangeset *__read_mostly mmio_ro_ranges;
 
-#define PAGE_CACHE_ATTRS (_PAGE_PAT|_PAGE_PCD|_PAGE_PWT)
-
 static uint32_t base_disallow_mask;
 /* Global bit is allowed to be set on L1 PTEs. Intended for user mappings. */
 #define L1_DISALLOW_MASK ((base_disallow_mask | _PAGE_GNTTAB) & ~_PAGE_GLOBAL)
index 3e12f140492d6759a804bd79041c9efa2b2909e0..242903f0ec51dc2396452790fd37c6af6dec453a 100644 (file)
@@ -304,6 +304,8 @@ void efi_update_l4_pgtable(unsigned int l4idx, l4_pgentry_t);
 #define _PAGE_AVAIL_HIGH (_AC(0x7ff, U) << 12)
 #define _PAGE_NX       (cpu_has_nx ? _PAGE_NX_BIT : 0)
 
+#define PAGE_CACHE_ATTRS (_PAGE_PAT | _PAGE_PCD | _PAGE_PWT)
+
 /*
  * Debug option: Ensure that granted mappings are not implicitly unmapped.
  * WARNING: This will need to be disabled to run OSes that use the spare PTE