From: "Jan Beulich" Subject: [PATCH] ia64: build fixes (again) Date: Tue, 22 Nov 2011 15:56:42 +0000 Message-ID: <4ECBD44A020000780006261B@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part012E892A.2__=" 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" Cc: Jean Guyader , Andres Lagar-Cavilla 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. --=__Part012E892A.2__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This undoes a single change from c/s 24136:3622d7fae14d (common/grant_table.c) and several from c/s 24100:be8daf78856a (common/memory.c). It also completes the former with two previously missing ia64 specific code adjustments. Authors Cc-ed. Signed-off-by: Jan Beulich --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -173,7 +173,7 @@ static int __get_paged_frame(unsigned lo rc =3D GNTST_bad_page; } #else - *frame =3D readonly ? get_gfn_untyped(rd, gfn) : gfn_to_mfn_private(rd= , gfn); + *frame =3D readonly ? gmfn_to_mfn(rd, gfn) : gfn_to_mfn_private(rd, = gfn); #endif =20 return rc; --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -165,7 +165,7 @@ int guest_remove_page(struct domain *d,=20 mfn =3D mfn_x(get_gfn(d, gmfn, &p2mt));=20 if ( unlikely(p2m_is_paging(p2mt)) ) { - guest_physmap_remove_page(d, gmfn, mfn, PAGE_ORDER_4K); + guest_physmap_remove_page(d, gmfn, mfn, 0); p2m_mem_paging_drop_page(d, gmfn); put_gfn(d, gmfn); return 1; @@ -188,7 +188,7 @@ int guest_remove_page(struct domain *d,=20 if(p2m_is_shared(p2mt)) { put_page_and_type(page); - guest_physmap_remove_page(d, gmfn, mfn, PAGE_ORDER_4K); + guest_physmap_remove_page(d, gmfn, mfn, 0); put_gfn(d, gmfn); return 1; } @@ -207,7 +207,7 @@ int guest_remove_page(struct domain *d,=20 if ( test_and_clear_bit(_PGC_allocated, &page->count_info) ) put_page(page); =20 - guest_physmap_remove_page(d, gmfn, mfn, PAGE_ORDER_4K); + guest_physmap_remove_page(d, gmfn, mfn, 0); =20 put_page(page); put_gfn(d, gmfn); @@ -427,7 +427,7 @@ static long memory_exchange(XEN_GUEST_HA gfn =3D mfn_to_gmfn(d, mfn); /* Pages were unshared above */ BUG_ON(SHARED_M2P(gfn)); - guest_physmap_remove_page(d, gfn, mfn, PAGE_ORDER_4K); + guest_physmap_remove_page(d, gfn, mfn, 0); put_page(page); } =20 --- a/xen/common/tmem_xen.c +++ b/xen/common/tmem_xen.c @@ -95,7 +95,7 @@ static inline void *cli_get_page(tmem_cl return NULL; } =20 -static inline void cli_put_page(void *cli_va, pfp_t *cli_pfp, +static inline void cli_put_page(tmem_cli_mfn_t cmfn, void *cli_va, pfp_t = *cli_pfp, unsigned long cli_mfn, bool_t mark_dirty) { ASSERT(0); --- a/xen/include/asm-ia64/mm.h +++ b/xen/include/asm-ia64/mm.h @@ -532,6 +532,7 @@ extern u64 translate_domain_pte(u64 ptev u64* itir, struct p2m_entry* entry); #define machine_to_phys_mapping mpt_table =20 +#define INVALID_GFN (~0UL) #define INVALID_M2P_ENTRY (~0UL) #define VALID_M2P(_e) (!((_e) & (1UL<<63))) #define SHARED_M2P(_e) 0 --=__Part012E892A.2__= Content-Type: text/plain; name="ia64-build.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ia64-build.patch" ia64: build fixes (again)=0A=0AThis undoes a single change from c/s = 24136:3622d7fae14d=0A(common/grant_table.c) and several from c/s 24100:be8d= af78856a=0A(common/memory.c). It also completes the former with two = previously=0Amissing ia64 specific code adjustments. Authors Cc-ed.=0A=0ASi= gned-off-by: Jan Beulich =0A=0A--- a/xen/common/grant_ta= ble.c=0A+++ b/xen/common/grant_table.c=0A@@ -173,7 +173,7 @@ static int = __get_paged_frame(unsigned lo=0A rc =3D GNTST_bad_page;=0A }=0A = #else=0A- *frame =3D readonly ? get_gfn_untyped(rd, gfn) : gfn_to_mfn_pr= ivate(rd, gfn);=0A+ *frame =3D readonly ? gmfn_to_mfn(rd, gfn) : = gfn_to_mfn_private(rd, gfn);=0A #endif=0A =0A return rc;=0A--- = a/xen/common/memory.c=0A+++ b/xen/common/memory.c=0A@@ -165,7 +165,7 @@ = int guest_remove_page(struct domain *d, =0A mfn =3D mfn_x(get_gfn(d, = gmfn, &p2mt)); =0A if ( unlikely(p2m_is_paging(p2mt)) )=0A {=0A- = guest_physmap_remove_page(d, gmfn, mfn, PAGE_ORDER_4K);=0A+ = guest_physmap_remove_page(d, gmfn, mfn, 0);=0A p2m_mem_paging_drop_= page(d, gmfn);=0A put_gfn(d, gmfn);=0A return 1;=0A@@ = -188,7 +188,7 @@ int guest_remove_page(struct domain *d, =0A if(p2m_is_= shared(p2mt))=0A {=0A put_page_and_type(page);=0A- = guest_physmap_remove_page(d, gmfn, mfn, PAGE_ORDER_4K);=0A+ = guest_physmap_remove_page(d, gmfn, mfn, 0);=0A put_gfn(d, = gmfn);=0A return 1;=0A }=0A@@ -207,7 +207,7 @@ int guest_remove= _page(struct domain *d, =0A if ( test_and_clear_bit(_PGC_allocated, = &page->count_info) )=0A put_page(page);=0A =0A- guest_physmap_re= move_page(d, gmfn, mfn, PAGE_ORDER_4K);=0A+ guest_physmap_remove_page(d,= gmfn, mfn, 0);=0A =0A put_page(page);=0A put_gfn(d, gmfn);=0A@@ = -427,7 +427,7 @@ static long memory_exchange(XEN_GUEST_HA=0A = gfn =3D mfn_to_gmfn(d, mfn);=0A /* Pages were unshared above = */=0A BUG_ON(SHARED_M2P(gfn));=0A- guest_physmap_rem= ove_page(d, gfn, mfn, PAGE_ORDER_4K);=0A+ guest_physmap_remove_p= age(d, gfn, mfn, 0);=0A put_page(page);=0A }=0A =0A--- = a/xen/common/tmem_xen.c=0A+++ b/xen/common/tmem_xen.c=0A@@ -95,7 +95,7 @@ = static inline void *cli_get_page(tmem_cl=0A return NULL;=0A }=0A = =0A-static inline void cli_put_page(void *cli_va, pfp_t *cli_pfp,=0A+static= inline void cli_put_page(tmem_cli_mfn_t cmfn, void *cli_va, pfp_t = *cli_pfp,=0A unsigned long cli_mfn, bool_t = mark_dirty)=0A {=0A ASSERT(0);=0A--- a/xen/include/asm-ia64/mm.h=0A+++ = b/xen/include/asm-ia64/mm.h=0A@@ -532,6 +532,7 @@ extern u64 translate_doma= in_pte(u64 ptev=0A u64* itir, struct = p2m_entry* entry);=0A #define machine_to_phys_mapping mpt_table=0A = =0A+#define INVALID_GFN (~0UL)=0A #define INVALID_M2P_ENTRY = (~0UL)=0A #define VALID_M2P(_e) (!((_e) & (1UL<<63)))=0A = #define SHARED_M2P(_e) 0=0A --=__Part012E892A.2__= 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 --=__Part012E892A.2__=--