Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Devel
[PATCH 1 of 4] x86/mm: Eliminate _shadow_mode_refcounts
 

Index | Next | Previous | View Flat


andres at lagarcavilla

Apr 27, 2012, 2:16 PM


Views: 57
Permalink
[PATCH 1 of 4] x86/mm: Eliminate _shadow_mode_refcounts

xen/arch/x86/mm.c | 2 +-
xen/arch/x86/mm/shadow/common.c | 5 -----
xen/include/asm-x86/mm.h | 1 -
3 files changed, 1 insertions(+), 7 deletions(-)


Replace it with the proper paging_mode_refcounts. This was causing spurious
and abundant verbiage from Xen for the

!get_page(page, d) && !get_page(page, dom_cow)

sequence in get_page_from_gfn

Signed-off-by: Andres Lagar-Cavilla <andres [at] lagarcavilla>

diff -r 40938dc16dfa -r 00034349414e xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c
+++ b/xen/arch/x86/mm.c
@@ -2167,7 +2167,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 40938dc16dfa -r 00034349414e xen/arch/x86/mm/shadow/common.c
--- a/xen/arch/x86/mm/shadow/common.c
+++ b/xen/arch/x86/mm/shadow/common.c
@@ -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 40938dc16dfa -r 00034349414e xen/include/asm-x86/mm.h
--- a/xen/include/asm-x86/mm.h
+++ b/xen/include/asm-x86/mm.h
@@ -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-devel mailing list
Xen-devel [at] lists
http://lists.xen.org/xen-devel

Subject User Time
[PATCH 1 of 4] x86/mm: Eliminate _shadow_mode_refcounts andres at lagarcavilla Apr 27, 2012, 2:16 PM
    Re: [PATCH 1 of 4] x86/mm: Eliminate _shadow_mode_refcounts tim at xen May 3, 2012, 9:24 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.