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

[Xen-changelog] [xen-unstable] xen/arm: implement get/put_page_type


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Wed, 10 Oct 2012 22:11:21 +0000
  • Delivery-date: Wed, 10 Oct 2012 22:11:25 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1349791533 -3600
# Node ID b98da9b014141929a02a2ea679bf7f5c6edcf7f4
# Parent  e6806ba46527ea2f163808ec4a7e17fad29bc550
xen/arm: implement get/put_page_type

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@xxxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r e6806ba46527 -r b98da9b01414 xen/arch/arm/dummy.S
--- a/xen/arch/arm/dummy.S      Tue Oct 09 15:05:32 2012 +0100
+++ b/xen/arch/arm/dummy.S      Tue Oct 09 15:05:33 2012 +0100
@@ -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);
 
diff -r e6806ba46527 -r b98da9b01414 xen/arch/arm/mm.c
--- a/xen/arch/arm/mm.c Tue Oct 09 15:05:32 2012 +0100
+++ b/xen/arch/arm/mm.c Tue Oct 09 15:05:33 2012 +0100
@@ -574,6 +574,19 @@ int get_page(struct page_info *page, str
     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)
 {
     /*
diff -r e6806ba46527 -r b98da9b01414 xen/include/asm-arm/mm.h
--- a/xen/include/asm-arm/mm.h  Tue Oct 09 15:05:32 2012 +0100
+++ b/xen/include/asm-arm/mm.h  Tue Oct 09 15:05:33 2012 +0100
@@ -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? */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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