[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/9] xen/arm: introduce PGC_reserved


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <julien@xxxxxxx>, <jbeulich@xxxxxxxx>
  • From: Penny Zheng <penny.zheng@xxxxxxx>
  • Date: Mon, 7 Jun 2021 02:43:11 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cC5QXJLTfZEmB3XeRfskTwUSAKX1zEyV98uM4QkI6go=; b=O64j7kBeSfEmzG2oEZ6KmJhg+eR6kk3B48KNipA9NpmIv0zzht+RjZ6KQ5T/hNG0bMhQpZCvQzFW5qXRymW4CPEmb5dJcowNkRMUPDvp+wnjLwviGc3pxqQ6P8G80s6fRchjyVhsCvLSXeUfcCDnJXbnewuq+zlac2kJeH3AhuGU17vjMgIHxMRmkUo8nK07vGIpg/Fx+hdgxMzQwb14BlHXH/zo2XwoVweYXXHSRR3BJ8fifOafYSqgu/8eXbazsHY3OZkL9cAAzWY9GsSxaoJystrESPGBwAFsX4TGPMp837r9hqorffdECbsNjeACwkN+lUSMmtA0nljn9sX/Rw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oMCWgHXTxOc0cNVXAY8QQxYXCBbsefASSAuvKuKKA3W1fuxJlc3YHRtBgTdtLtIV7aYLjd6QSqLjotRnXFzi8y9kj3TV/uw2n1uXOiuF9k/oYW57rB2s62cCdi05BzoW5AeGSCpio/rG/cc9uokRPYz2+Q2pe5W+jvcEC8U93Tbh/33T1VHmQ/Mw16neHrERzu80YMPml+H8gVIhF2cczIifD0S+w5/OK6jW6A9cdhtbL3KE9hqruovxrMPEsznr7PMVjMwahSEpaedOFGPqEM1J9f1gwx6HBB9HsMuQPE+mU3gHAFo59NvOmS24oFBnJZdDe75H24iBbVsN95wkjQ==
  • Cc: <Bertrand.Marquis@xxxxxxx>, <Penny.Zheng@xxxxxxx>, <Wei.Chen@xxxxxxx>
  • Delivery-date: Mon, 07 Jun 2021 02:44:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true

In order to differentiate pages of static memory, from those allocated from
heap, this patch introduces a new page flag PGC_reserved to tell.

Signed-off-by: Penny Zheng <penny.zheng@xxxxxxx>
---
changes v2:
- remove unused reserved field in struct page_info
- remove unused helper page_get_reserved_owner and page_set_reserved_owner
---
 xen/include/asm-arm/mm.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/xen/include/asm-arm/mm.h b/xen/include/asm-arm/mm.h
index 0b7de3102e..7034fae1b6 100644
--- a/xen/include/asm-arm/mm.h
+++ b/xen/include/asm-arm/mm.h
@@ -108,6 +108,9 @@ struct page_info
   /* Page is Xen heap? */
 #define _PGC_xen_heap     PG_shift(2)
 #define PGC_xen_heap      PG_mask(1, 2)
+  /* Page is reserved */
+#define _PGC_reserved     PG_shift(3)
+#define PGC_reserved      PG_mask(1, 3)
 /* ... */
 /* Page is broken? */
 #define _PGC_broken       PG_shift(7)
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.