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

[Xen-changelog] [xen-unstable] x86/mm: Eliminate _shadow_mode_refcounts


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Mon, 14 May 2012 16:32:10 +0000
  • Delivery-date: Mon, 14 May 2012 16:32:16 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
# Date 1336062069 -3600
# Node ID 8f556a70ae0bef47e242f9e7be0a054769fc8277
# Parent  98fe3b2a572d4ffe704124e75c7aa8d94dbb51bc
x86/mm: Eliminate _shadow_mode_refcounts

Replace its only useer with paging_mode_refcounts().

Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
Acked-by: Tim Deegan <tim@xxxxxxx>
Committed-by: Tim Deegan <tim@xxxxxxx>
---


diff -r 98fe3b2a572d -r 8f556a70ae0b xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Tue May 01 14:20:37 2012 +0100
+++ b/xen/arch/x86/mm.c Thu May 03 17:21:09 2012 +0100
@@ -2165,7 +2165,7 @@ int get_page(struct page_info *page, str
     if ( owner != NULL )
         put_page(page);
 
-    if ( !_shadow_mode_refcounts(domain) && !domain->is_dying )
+    if ( !paging_mode_refcounts(domain) && !domain->is_dying )
         gdprintk(XENLOG_INFO,
                  "Error pfn %lx: rd=%p, od=%p, caf=%08lx, taf=%"
                  PRtype_info "\n",
diff -r 98fe3b2a572d -r 8f556a70ae0b xen/arch/x86/mm/shadow/common.c
--- a/xen/arch/x86/mm/shadow/common.c   Tue May 01 14:20:37 2012 +0100
+++ b/xen/arch/x86/mm/shadow/common.c   Thu May 03 17:21:09 2012 +0100
@@ -105,11 +105,6 @@ static int __init shadow_audit_key_init(
 __initcall(shadow_audit_key_init);
 #endif /* SHADOW_AUDIT */
 
-int _shadow_mode_refcounts(struct domain *d)
-{
-    return shadow_mode_refcounts(d);
-}
-
 
 /**************************************************************************/
 /* x86 emulator support for the shadow code
diff -r 98fe3b2a572d -r 8f556a70ae0b xen/include/asm-x86/mm.h
--- a/xen/include/asm-x86/mm.h  Tue May 01 14:20:37 2012 +0100
+++ b/xen/include/asm-x86/mm.h  Thu May 03 17:21:09 2012 +0100
@@ -331,7 +331,6 @@ static inline void *__page_to_virt(const
 
 int free_page_type(struct page_info *page, unsigned long type,
                    int preemptible);
-int _shadow_mode_refcounts(struct domain *d);
 
 int is_iomem_page(unsigned long mfn);
 

_______________________________________________
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®.