[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [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@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |