]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/arm: add colored flag to page struct
authorLuca Miccio <206497@studenti.unimore.it>
Wed, 21 Aug 2019 14:18:45 +0000 (16:18 +0200)
committerLuca Miccio <206497@studenti.unimore.it>
Mon, 6 Jan 2020 13:46:32 +0000 (14:46 +0100)
A new allocator enforcing a cache-coloring configuration is going to be
introduced.  We thus need to distinguish the memory pages assigned to,
and managed by, such colored allocator from the ordinary buddy
allocator's ones.  Add a color flag to the page structure.

Signed-off-by: Luca Miccio <206497@studenti.unimore.it>
Signed-off-by: Marco Solieri <marco.solieri@unimore.it>
xen/include/asm-arm/mm.h

index 6b4eef2dd23925592f714316619ae02ca6d01e40..92bd5c90b51662f81ca7cef634b92cf115b15ed5 100644 (file)
@@ -88,6 +88,10 @@ struct page_info
          */
         u32 tlbflush_timestamp;
     };
+
+    /* Is page managed by the cache-colored allocator? */
+    bool colored;
+
     u64 pad;
 };