From: "Jan Beulich" Subject: [PATCH 2/5] x86: run-time callers of map_pages_to_xen() must check for errors Date: Wed, 09 Mar 2011 10:55:20 +0000 Message-ID: <4D776AA80200007800035760@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part86AAB188.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part86AAB188.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Again, (out-of-memory) errors must not cause hypervisor crashes, and hence ought to be propagated. This also adjusts the cache attribute changing loop in get_page_from_l1e() to not go through an unnecessary iteration. While this could be considered mere cleanup, it is actually a requirement for the subsequent now necessary error recovery path. Also make a few functions static, easing the check for potential callers needing adjustment. Signed-off-by: Jan Beulich --- 2011-03-09.orig/xen/arch/x86/mm.c +++ 2011-03-09/xen/arch/x86/mm.c @@ -767,8 +767,9 @@ int is_iomem_page(unsigned long mfn) return (page_get_owner(page) =3D=3D dom_io); } =20 -static void update_xen_mappings(unsigned long mfn, unsigned long = cacheattr) +static int update_xen_mappings(unsigned long mfn, unsigned long cacheattr)= { + int err =3D 0; #ifdef __x86_64__ bool_t alias =3D mfn >=3D PFN_DOWN(xen_phys_start) && mfn < PFN_UP(xen_phys_start + (unsigned long)_end - XEN_VIRT_STAR= T); @@ -776,12 +777,14 @@ static void update_xen_mappings(unsigned XEN_VIRT_START + ((mfn - PFN_DOWN(xen_phys_start)) << PAGE_SHIFT);= =20 if ( unlikely(alias) && cacheattr ) - map_pages_to_xen(xen_va, mfn, 1, 0); - map_pages_to_xen((unsigned long)mfn_to_virt(mfn), mfn, 1, + err =3D map_pages_to_xen(xen_va, mfn, 1, 0); + if ( !err ) + err =3D map_pages_to_xen((unsigned long)mfn_to_virt(mfn), mfn, 1, PAGE_HYPERVISOR | cacheattr_to_pte_flags(cacheattr));= - if ( unlikely(alias) && !cacheattr ) - map_pages_to_xen(xen_va, mfn, 1, PAGE_HYPERVISOR); + if ( unlikely(alias) && !cacheattr && !err ) + err =3D map_pages_to_xen(xen_va, mfn, 1, PAGE_HYPERVISOR); #endif + return err; } =20 int @@ -793,6 +796,7 @@ get_page_from_l1e( uint32_t l1f =3D l1e_get_flags(l1e); struct vcpu *curr =3D current; struct domain *real_pg_owner; + bool_t write; =20 if ( !(l1f & _PAGE_PRESENT) ) return 1; @@ -849,9 +853,9 @@ get_page_from_l1e( * contribute to writeable mapping refcounts. (This allows the * qemu-dm helper process in dom0 to map the domain's memory without * messing up the count of "real" writable mappings.) */ - if ( (l1f & _PAGE_RW) && - ((l1e_owner =3D=3D pg_owner) || !paging_mode_external(pg_owner)) = && - !get_page_type(page, PGT_writable_page) ) + write =3D (l1f & _PAGE_RW) && + ((l1e_owner =3D=3D pg_owner) || !paging_mode_external(pg_owner= )); + if ( write && !get_page_type(page, PGT_writable_page) ) goto could_not_pin; =20 if ( pte_flags_to_cacheattr(l1f) !=3D @@ -862,22 +866,36 @@ get_page_from_l1e( =20 if ( is_xen_heap_page(page) ) { - if ( (l1f & _PAGE_RW) && - ((l1e_owner =3D=3D pg_owner) || !paging_mode_external(pg_= owner)) ) + if ( write ) put_page_type(page); put_page(page); MEM_LOG("Attempt to change cache attributes of Xen heap = page"); return 0; } =20 - while ( ((y & PGC_cacheattr_mask) >> PGC_cacheattr_base) !=3D = cacheattr ) - { + do { x =3D y; nx =3D (x & ~PGC_cacheattr_mask) | (cacheattr << PGC_cacheattr= _base); - y =3D cmpxchg(&page->count_info, x, nx); - } + } while ( (y =3D cmpxchg(&page->count_info, x, nx)) !=3D x ); + + if ( unlikely(update_xen_mappings(mfn, cacheattr) !=3D 0) ) + { + cacheattr =3D y & PGC_cacheattr_mask; + do { + x =3D y; + nx =3D (x & ~PGC_cacheattr_mask) | cacheattr; + } while ( (y =3D cmpxchg(&page->count_info, x, nx)) !=3D x ); + + if ( write ) + put_page_type(page); + put_page(page); =20 - update_xen_mappings(mfn, cacheattr); + MEM_LOG("Error updating mappings for mfn %lx (pfn %lx," + " from L1 entry %" PRIpte ") for %d", + mfn, get_gpfn_from_mfn(mfn), + l1e_get_intpte(l1e), l1e_owner->domain_id); + return 0; + } } =20 return 1; @@ -2005,6 +2023,21 @@ static int mod_l4_entry(l4_pgentry_t *pl =20 #endif =20 +static int cleanup_page_cacheattr(struct page_info *page) +{ + uint32_t cacheattr =3D + (page->count_info & PGC_cacheattr_mask) >> PGC_cacheattr_base; + + if ( likely(cacheattr =3D=3D 0) ) + return 0; + + page->count_info &=3D ~PGC_cacheattr_mask; + + BUG_ON(is_xen_heap_page(page)); + + return update_xen_mappings(page_to_mfn(page), 0); +} + void put_page(struct page_info *page) { unsigned long nx, x, y =3D page->count_info; @@ -2018,8 +2051,10 @@ void put_page(struct page_info *page) =20 if ( unlikely((nx & PGC_count_mask) =3D=3D 0) ) { - cleanup_page_cacheattr(page); - free_domheap_page(page); + if ( cleanup_page_cacheattr(page) =3D=3D 0 ) + free_domheap_page(page); + else + MEM_LOG("Leaking pfn %lx", page_to_mfn(page)); } } =20 @@ -2678,21 +2713,6 @@ static void put_superpage(unsigned long=20 =20 #endif =20 -void cleanup_page_cacheattr(struct page_info *page) -{ - uint32_t cacheattr =3D - (page->count_info & PGC_cacheattr_mask) >> PGC_cacheattr_base; - - if ( likely(cacheattr =3D=3D 0) ) - return; - - page->count_info &=3D ~PGC_cacheattr_mask; - - BUG_ON(is_xen_heap_page(page)); - - update_xen_mappings(page_to_mfn(page), 0); -} - =20 int new_guest_cr3(unsigned long mfn) { --- 2011-03-09.orig/xen/arch/x86/x86_64/mm.c +++ 2011-03-09/xen/arch/x86/x86_64/mm.c @@ -439,6 +439,7 @@ static int setup_compat_m2p_table(struct l3_pgentry_t *l3_ro_mpt =3D NULL; l2_pgentry_t *l2_ro_mpt =3D NULL; struct page_info *l1_pg; + int err =3D 0; =20 smap =3D info->spfn & (~((1UL << (L2_PAGETABLE_SHIFT - 2)) -1)); =20 @@ -489,24 +490,25 @@ static int setup_compat_m2p_table(struct memflags =3D MEMF_node(phys_to_nid(i << PAGE_SHIFT)); =20 l1_pg =3D mfn_to_page(alloc_hotadd_mfn(info)); - map_pages_to_xen(rwva, - page_to_mfn(l1_pg), - 1UL << PAGETABLE_ORDER, - PAGE_HYPERVISOR); + err =3D map_pages_to_xen(rwva, page_to_mfn(l1_pg), + 1UL << PAGETABLE_ORDER, + PAGE_HYPERVISOR); + if ( err ) + break; memset((void *)rwva, 0x55, 1UL << L2_PAGETABLE_SHIFT); /* NB. Cannot be GLOBAL as the ptes get copied into per-VM space. = */ l2e_write(&l2_ro_mpt[l2_table_offset(va)], l2e_from_page(l1_pg, = _PAGE_PSE|_PAGE_PRESENT)); } #undef CNT #undef MFN - return 0; + return err; } =20 /* * Allocate and map the machine-to-phys table. * The L3 for RO/RWRW MPT and the L2 for compatible MPT should be setup = already */ -int setup_m2p_table(struct mem_hotadd_info *info) +static int setup_m2p_table(struct mem_hotadd_info *info) { unsigned long i, va, smap, emap; unsigned int n, memflags; @@ -560,11 +562,13 @@ int setup_m2p_table(struct mem_hotadd_in else { l1_pg =3D mfn_to_page(alloc_hotadd_mfn(info)); - map_pages_to_xen( + ret =3D map_pages_to_xen( RDWR_MPT_VIRT_START + i * sizeof(unsigned long), page_to_mfn(l1_pg), 1UL << PAGETABLE_ORDER, PAGE_HYPERVISOR); + if ( ret ) + goto error; memset((void *)(RDWR_MPT_VIRT_START + i * sizeof(unsigned = long)), 0x55, 1UL << L2_PAGETABLE_SHIFT); =20 @@ -908,13 +912,13 @@ void cleanup_frame_table(struct mem_hota flush_tlb_all(); } =20 -/* Should we be paraniod failure in map_pages_to_xen? */ static int setup_frametable_chunk(void *start, void *end, struct mem_hotadd_info *info) { unsigned long s =3D (unsigned long)start; unsigned long e =3D (unsigned long)end; unsigned long mfn; + int err; =20 ASSERT(!(s & ((1 << L2_PAGETABLE_SHIFT) - 1))); ASSERT(!(e & ((1 << L2_PAGETABLE_SHIFT) - 1))); @@ -922,14 +926,17 @@ static int setup_frametable_chunk(void * for ( ; s < e; s +=3D (1UL << L2_PAGETABLE_SHIFT)) { mfn =3D alloc_hotadd_mfn(info); - map_pages_to_xen(s, mfn, 1UL << PAGETABLE_ORDER, PAGE_HYPERVISOR);= + err =3D map_pages_to_xen(s, mfn, 1UL << PAGETABLE_ORDER, + PAGE_HYPERVISOR); + if ( err ) + return err; } memset(start, -1, s - (unsigned long)start); =20 return 0; } =20 -int extend_frame_table(struct mem_hotadd_info *info) +static int extend_frame_table(struct mem_hotadd_info *info) { unsigned long cidx, nidx, eidx, spfn, epfn; =20 @@ -950,12 +957,16 @@ int extend_frame_table(struct mem_hotadd =20 while ( cidx < eidx ) { + int err; + nidx =3D find_next_bit(pdx_group_valid, eidx, cidx); if ( nidx >=3D eidx ) nidx =3D eidx; - setup_frametable_chunk(pdx_to_page(cidx * PDX_GROUP_COUNT ), + err =3D setup_frametable_chunk(pdx_to_page(cidx * PDX_GROUP_COUNT = ), pdx_to_page(nidx * PDX_GROUP_COUNT), info); + if ( err ) + return err; =20 cidx =3D find_next_zero_bit(pdx_group_valid, eidx, nidx); } --- 2011-03-09.orig/xen/include/asm-x86/mm.h +++ 2011-03-09/xen/include/asm-x86/mm.h @@ -325,8 +325,6 @@ int free_page_type(struct page_info *pag int preemptible); int _shadow_mode_refcounts(struct domain *d); =20 -void cleanup_page_cacheattr(struct page_info *page); - int is_iomem_page(unsigned long mfn); =20 void clear_superpage_mark(struct page_info *page); --=__Part86AAB188.0__= Content-Type: text/plain; name="x86-map_pages_to_xen-check.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-map_pages_to_xen-check.patch" Again, (out-of-memory) errors must not cause hypervisor crashes, and=0Ahenc= e ought to be propagated.=0A=0AThis also adjusts the cache attribute = changing loop in=0Aget_page_from_l1e() to not go through an unnecessary = iteration. While=0Athis could be considered mere cleanup, it is actually a = requirement=0Afor the subsequent now necessary error recovery path.=0A=0AAl= so make a few functions static, easing the check for potential=0Acallers = needing adjustment.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- 2011-03-09.orig/xen/arch/x86/mm.c=0A+++ 2011-03-09/xen/arch/x86/m= m.c=0A@@ -767,8 +767,9 @@ int is_iomem_page(unsigned long mfn)=0A = return (page_get_owner(page) =3D=3D dom_io);=0A }=0A =0A-static void = update_xen_mappings(unsigned long mfn, unsigned long cacheattr)=0A+static = int update_xen_mappings(unsigned long mfn, unsigned long cacheattr)=0A = {=0A+ int err =3D 0;=0A #ifdef __x86_64__=0A bool_t alias =3D mfn = >=3D PFN_DOWN(xen_phys_start) &&=0A mfn < PFN_UP(xen_phys_start + = (unsigned long)_end - XEN_VIRT_START);=0A@@ -776,12 +777,14 @@ static void = update_xen_mappings(unsigned=0A XEN_VIRT_START + ((mfn - PFN_DOWN(x= en_phys_start)) << PAGE_SHIFT);=0A =0A if ( unlikely(alias) && = cacheattr )=0A- map_pages_to_xen(xen_va, mfn, 1, 0);=0A- = map_pages_to_xen((unsigned long)mfn_to_virt(mfn), mfn, 1,=0A+ err = =3D map_pages_to_xen(xen_va, mfn, 1, 0);=0A+ if ( !err )=0A+ err = =3D map_pages_to_xen((unsigned long)mfn_to_virt(mfn), mfn, 1,=0A = PAGE_HYPERVISOR | cacheattr_to_pte_flags(cacheattr));=0A- if = ( unlikely(alias) && !cacheattr )=0A- map_pages_to_xen(xen_va, mfn, = 1, PAGE_HYPERVISOR);=0A+ if ( unlikely(alias) && !cacheattr && !err = )=0A+ err =3D map_pages_to_xen(xen_va, mfn, 1, PAGE_HYPERVISOR);=0A = #endif=0A+ return err;=0A }=0A =0A int=0A@@ -793,6 +796,7 @@ get_page_fr= om_l1e(=0A uint32_t l1f =3D l1e_get_flags(l1e);=0A struct vcpu = *curr =3D current;=0A struct domain *real_pg_owner;=0A+ bool_t = write;=0A =0A if ( !(l1f & _PAGE_PRESENT) )=0A return 1;=0A@@ = -849,9 +853,9 @@ get_page_from_l1e(=0A * contribute to writeable = mapping refcounts. (This allows the=0A * qemu-dm helper process in = dom0 to map the domain's memory without=0A * messing up the count of = "real" writable mappings.) */=0A- if ( (l1f & _PAGE_RW) &&=0A- = ((l1e_owner =3D=3D pg_owner) || !paging_mode_external(pg_owner)) &&=0A- = !get_page_type(page, PGT_writable_page) )=0A+ write =3D (l1f & = _PAGE_RW) &&=0A+ ((l1e_owner =3D=3D pg_owner) || !paging_mode_ex= ternal(pg_owner));=0A+ if ( write && !get_page_type(page, PGT_writable_p= age) )=0A goto could_not_pin;=0A =0A if ( pte_flags_to_cacheatt= r(l1f) !=3D=0A@@ -862,22 +866,36 @@ get_page_from_l1e(=0A =0A if ( = is_xen_heap_page(page) )=0A {=0A- if ( (l1f & _PAGE_RW) = &&=0A- ((l1e_owner =3D=3D pg_owner) || !paging_mode_externa= l(pg_owner)) )=0A+ if ( write )=0A put_page_type= (page);=0A put_page(page);=0A MEM_LOG("Attempt to = change cache attributes of Xen heap page");=0A return 0;=0A = }=0A =0A- while ( ((y & PGC_cacheattr_mask) >> PGC_cacheattr_ba= se) !=3D cacheattr )=0A- {=0A+ do {=0A x =3D = y;=0A nx =3D (x & ~PGC_cacheattr_mask) | (cacheattr << = PGC_cacheattr_base);=0A- y =3D cmpxchg(&page->count_info, x, = nx);=0A- }=0A+ } while ( (y =3D cmpxchg(&page->count_info, = x, nx)) !=3D x );=0A+=0A+ if ( unlikely(update_xen_mappings(mfn, = cacheattr) !=3D 0) )=0A+ {=0A+ cacheattr =3D y & = PGC_cacheattr_mask;=0A+ do {=0A+ x =3D y;=0A+ = nx =3D (x & ~PGC_cacheattr_mask) | cacheattr;=0A+ = } while ( (y =3D cmpxchg(&page->count_info, x, nx)) !=3D x );=0A+=0A+ = if ( write )=0A+ put_page_type(page);=0A+ = put_page(page);=0A =0A- update_xen_mappings(mfn, cacheattr);=0A+ = MEM_LOG("Error updating mappings for mfn %lx (pfn %lx,"=0A+ = " from L1 entry %" PRIpte ") for %d",=0A+ = mfn, get_gpfn_from_mfn(mfn),=0A+ l1e_get_intpte(l1e), = l1e_owner->domain_id);=0A+ return 0;=0A+ }=0A }=0A = =0A return 1;=0A@@ -2005,6 +2023,21 @@ static int mod_l4_entry(l4_pgent= ry_t *pl=0A =0A #endif=0A =0A+static int cleanup_page_cacheattr(struct = page_info *page)=0A+{=0A+ uint32_t cacheattr =3D=0A+ (page->count= _info & PGC_cacheattr_mask) >> PGC_cacheattr_base;=0A+=0A+ if ( = likely(cacheattr =3D=3D 0) )=0A+ return 0;=0A+=0A+ page->count_in= fo &=3D ~PGC_cacheattr_mask;=0A+=0A+ BUG_ON(is_xen_heap_page(page));=0A+= =0A+ return update_xen_mappings(page_to_mfn(page), 0);=0A+}=0A+=0A void = put_page(struct page_info *page)=0A {=0A unsigned long nx, x, y =3D = page->count_info;=0A@@ -2018,8 +2051,10 @@ void put_page(struct page_info = *page)=0A =0A if ( unlikely((nx & PGC_count_mask) =3D=3D 0) )=0A = {=0A- cleanup_page_cacheattr(page);=0A- free_domheap_page(pag= e);=0A+ if ( cleanup_page_cacheattr(page) =3D=3D 0 )=0A+ = free_domheap_page(page);=0A+ else=0A+ MEM_LOG("Leaking = pfn %lx", page_to_mfn(page));=0A }=0A }=0A =0A@@ -2678,21 +2713,6 @@ = static void put_superpage(unsigned long =0A =0A #endif=0A =0A-void = cleanup_page_cacheattr(struct page_info *page)=0A-{=0A- uint32_t = cacheattr =3D=0A- (page->count_info & PGC_cacheattr_mask) >> = PGC_cacheattr_base;=0A-=0A- if ( likely(cacheattr =3D=3D 0) )=0A- = return;=0A-=0A- page->count_info &=3D ~PGC_cacheattr_mask;=0A-=0A- = BUG_ON(is_xen_heap_page(page));=0A-=0A- update_xen_mappings(page_to_mfn(= page), 0);=0A-}=0A-=0A =0A int new_guest_cr3(unsigned long mfn)=0A {=0A--- = 2011-03-09.orig/xen/arch/x86/x86_64/mm.c=0A+++ 2011-03-09/xen/arch/x86/x86_= 64/mm.c=0A@@ -439,6 +439,7 @@ static int setup_compat_m2p_table(struct=0A = l3_pgentry_t *l3_ro_mpt =3D NULL;=0A l2_pgentry_t *l2_ro_mpt =3D = NULL;=0A struct page_info *l1_pg;=0A+ int err =3D 0;=0A =0A = smap =3D info->spfn & (~((1UL << (L2_PAGETABLE_SHIFT - 2)) -1));=0A =0A@@ = -489,24 +490,25 @@ static int setup_compat_m2p_table(struct=0A = memflags =3D MEMF_node(phys_to_nid(i << PAGE_SHIFT));=0A =0A l1_pg = =3D mfn_to_page(alloc_hotadd_mfn(info));=0A- map_pages_to_xen(rwva,= =0A- page_to_mfn(l1_pg),=0A- 1UL << = PAGETABLE_ORDER,=0A- PAGE_HYPERVISOR);=0A+ err = =3D map_pages_to_xen(rwva, page_to_mfn(l1_pg),=0A+ = 1UL << PAGETABLE_ORDER,=0A+ PAGE_HYPERV= ISOR);=0A+ if ( err )=0A+ break;=0A memset((void = *)rwva, 0x55, 1UL << L2_PAGETABLE_SHIFT);=0A /* NB. Cannot be = GLOBAL as the ptes get copied into per-VM space. */=0A l2e_write(&l= 2_ro_mpt[l2_table_offset(va)], l2e_from_page(l1_pg, _PAGE_PSE|_PAGE_PRESENT= ));=0A }=0A #undef CNT=0A #undef MFN=0A- return 0;=0A+ return = err;=0A }=0A =0A /*=0A * Allocate and map the machine-to-phys table.=0A = * The L3 for RO/RWRW MPT and the L2 for compatible MPT should be setup = already=0A */=0A-int setup_m2p_table(struct mem_hotadd_info *info)=0A+stat= ic int setup_m2p_table(struct mem_hotadd_info *info)=0A {=0A unsigned = long i, va, smap, emap;=0A unsigned int n, memflags;=0A@@ -560,11 = +562,13 @@ int setup_m2p_table(struct mem_hotadd_in=0A else=0A = {=0A l1_pg =3D mfn_to_page(alloc_hotadd_mfn(info));=0A- = map_pages_to_xen(=0A+ ret =3D map_pages_to_xen(=0A = RDWR_MPT_VIRT_START + i * sizeof(unsigned long),=0A = page_to_mfn(l1_pg),=0A 1UL << = PAGETABLE_ORDER,=0A PAGE_HYPERVISOR);=0A+ = if ( ret )=0A+ goto error;=0A memset((void = *)(RDWR_MPT_VIRT_START + i * sizeof(unsigned long)),=0A = 0x55, 1UL << L2_PAGETABLE_SHIFT);=0A =0A@@ -908,13 +912,13 @@ void = cleanup_frame_table(struct mem_hota=0A flush_tlb_all();=0A }=0A =0A-/* = Should we be paraniod failure in map_pages_to_xen? */=0A static int = setup_frametable_chunk(void *start, void *end,=0A = struct mem_hotadd_info *info)=0A {=0A unsigned long s =3D = (unsigned long)start;=0A unsigned long e =3D (unsigned long)end;=0A = unsigned long mfn;=0A+ int err;=0A =0A ASSERT(!(s & ((1 << = L2_PAGETABLE_SHIFT) - 1)));=0A ASSERT(!(e & ((1 << L2_PAGETABLE_SHIFT) = - 1)));=0A@@ -922,14 +926,17 @@ static int setup_frametable_chunk(void = *=0A for ( ; s < e; s +=3D (1UL << L2_PAGETABLE_SHIFT))=0A {=0A = mfn =3D alloc_hotadd_mfn(info);=0A- map_pages_to_xen(s, mfn, = 1UL << PAGETABLE_ORDER, PAGE_HYPERVISOR);=0A+ err =3D map_pages_to_x= en(s, mfn, 1UL << PAGETABLE_ORDER,=0A+ = PAGE_HYPERVISOR);=0A+ if ( err )=0A+ return err;=0A = }=0A memset(start, -1, s - (unsigned long)start);=0A =0A return = 0;=0A }=0A =0A-int extend_frame_table(struct mem_hotadd_info *info)=0A+stat= ic int extend_frame_table(struct mem_hotadd_info *info)=0A {=0A = unsigned long cidx, nidx, eidx, spfn, epfn;=0A =0A@@ -950,12 +957,16 @@ = int extend_frame_table(struct mem_hotadd=0A =0A while ( cidx < eidx = )=0A {=0A+ int err;=0A+=0A nidx =3D find_next_bit(pdx_gr= oup_valid, eidx, cidx);=0A if ( nidx >=3D eidx )=0A = nidx =3D eidx;=0A- setup_frametable_chunk(pdx_to_page(cidx * = PDX_GROUP_COUNT ),=0A+ err =3D setup_frametable_chunk(pdx_to_page(ci= dx * PDX_GROUP_COUNT ),=0A pdx_to_page= (nidx * PDX_GROUP_COUNT),=0A = info);=0A+ if ( err )=0A+ return err;=0A =0A = cidx =3D find_next_zero_bit(pdx_group_valid, eidx, nidx);=0A }=0A--- = 2011-03-09.orig/xen/include/asm-x86/mm.h=0A+++ 2011-03-09/xen/include/asm-x= 86/mm.h=0A@@ -325,8 +325,6 @@ int free_page_type(struct page_info *pag=0A = int preemptible);=0A int _shadow_mode_refcounts(struct = domain *d);=0A =0A-void cleanup_page_cacheattr(struct page_info *page);=0A-= =0A int is_iomem_page(unsigned long mfn);=0A =0A void clear_superpage_mark(= struct page_info *page);=0A --=__Part86AAB188.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part86AAB188.0__=--