xen/arm: implement get/put_page_type
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 9 Oct 2012 14:05:33 +0000 (15:05 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 9 Oct 2012 14:05:33 +0000 (15:05 +0100)
Add a basic get_page_type and put_page_type implementation: we don't
care about typecounts so just return success.

Also remove PGT_shared_page, that is unused.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/dummy.S
xen/arch/arm/mm.c
xen/include/asm-arm/mm.h

index aaf1ff1471936c265277b0ee9cc71b1f4fe80d34..022338aeeebd7fff446cdf7462eac4ee80f92da2 100644 (file)
@@ -22,10 +22,6 @@ DUMMY(arch_get_info_guest);
 DUMMY(arch_vcpu_reset);
 NOP(update_vcpu_system_time);
 
-/* Page Reference & Type Maintenance */
-DUMMY(get_page_type);
-DUMMY(put_page_type);
-
 /* Grant Tables */
 DUMMY(steal_page);
 
index 69bd21e919becd8147a2b2251f6361d393d55bc2..25e74a6dfd067bc91ebc5f2f7f42ac82001ea6fa 100644 (file)
@@ -574,6 +574,19 @@ int get_page(struct page_info *page, struct domain *domain)
     return 0;
 }
 
+/* Common code requires get_page_type and put_page_type.
+ * We don't care about typecounts so we just do the minimum to make it
+ * happy. */
+int get_page_type(struct page_info *page, unsigned long type)
+{
+    return 1;
+}
+
+void put_page_type(struct page_info *page)
+{
+    return;
+}
+
 void gnttab_clear_flag(unsigned long nr, uint16_t *addr)
 {
     /*
index 53801b019051b1ebeb8fd990520c489d571c4e1a..b37bd355130ef33e0a6b52b29f49ae61cb259824 100644 (file)
@@ -71,7 +71,6 @@ struct page_info
 
 #define PGT_none          PG_mask(0, 4)  /* no special uses of this page   */
 #define PGT_writable_page PG_mask(7, 4)  /* has writable mappings?         */
-#define PGT_shared_page   PG_mask(8, 4)  /* CoW sharable page              */
 #define PGT_type_mask     PG_mask(15, 4) /* Bits 28-31 or 60-63.           */
 
  /* Owning guest has pinned this page to its current type? */