From: Vincent Hanquez Subject: [PATCH 1/7] create a domain_info_context structure to store guest_width and p2m_size for macros. Date: Tue, 1 Dec 2009 06:59:08 +0000 Message-ID: <1259650754-15971-2-git-send-email-vincent.hanquez@eu.citrix.com> References: <1259650754-15971-1-git-send-email-vincent.hanquez@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.6.5.2" Return-path: In-Reply-To: <1259650754-15971-1-git-send-email-vincent.hanquez@eu.citrix.com> 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 Cc: Vincent Hanquez List-Id: xen-devel@lists.xenproject.org --------------1.6.5.2 Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: quoted-printable macro now refers to guest_width and p2m_size through a dinfo pointer. Signed-off-by: Vincent Hanquez --- tools/libxc/xc_core.c | 13 +++--- tools/libxc/xc_core_x86.c | 30 ++++++++------ tools/libxc/xc_core_x86.h | 2 +- tools/libxc/xc_domain_restore.c | 82 +++++++++++++++++++--------------= ------ tools/libxc/xc_domain_save.c | 74 ++++++++++++++++-----------------= - tools/libxc/xc_offline_page.c | 10 ++-- tools/libxc/xc_resume.c | 21 ++++++---- tools/libxc/xg_private.h | 18 +++++--- tools/libxc/xg_save_restore.h | 12 +++--- 9 files changed, 134 insertions(+), 128 deletions(-) --------------1.6.5.2 Content-Type: text/x-patch; name="0001-create-a-domain_info_context-structure-to-store-gues.patch" Content-Disposition: attachment; filename="0001-create-a-domain_info_context-structure-to-store-gues.patch" Content-Transfer-Encoding: quoted-printable diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 9778ea0..d5e686b 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -427,7 +427,8 @@ xc_domain_dumpcore_via_callback(int xc_handle, { xc_dominfo_t info; shared_info_any_t *live_shinfo =3D NULL; - unsigned int guest_width;=20 + struct domain_info_context _dinfo =3D {}; + struct domain_info_context *dinfo =3D &_dinfo; =20 int nr_vcpus =3D 0; char *dump_mem, *dump_mem_start =3D NULL; @@ -462,7 +463,7 @@ xc_domain_dumpcore_via_callback(int xc_handle, struct xc_core_section_headers *sheaders =3D NULL; Elf64_Shdr *shdr; =20 - if ( get_guest_width(xc_handle, domid, &guest_width) !=3D 0 ) + if ( get_guest_width(xc_handle, domid, &dinfo->guest_width) !=3D 0 ) { PERROR("Could not get address size for domain"); return sts; @@ -547,7 +548,7 @@ xc_domain_dumpcore_via_callback(int xc_handle, goto out; } =20 - sts =3D xc_core_arch_map_p2m(xc_handle, guest_width, &info, live= _shinfo, + sts =3D xc_core_arch_map_p2m(xc_handle, dinfo->guest_width, &inf= o, live_shinfo, &p2m, &p2m_size); if ( sts !=3D 0 ) goto out; @@ -745,7 +746,7 @@ xc_domain_dumpcore_via_callback(int xc_handle, goto out; =20 /* elf note section: xen version */ - sts =3D elfnote_dump_xen_version(args, dump_rtn, xc_handle, guest_wi= dth); + sts =3D elfnote_dump_xen_version(args, dump_rtn, xc_handle, dinfo->g= uest_width); if ( sts !=3D 0 ) goto out; =20 @@ -805,9 +806,9 @@ xc_domain_dumpcore_via_callback(int xc_handle, =20 if ( !auto_translated_physmap ) { - if ( guest_width >=3D sizeof(unsigned long) ) + if ( dinfo->guest_width >=3D sizeof(unsigned long) ) { - if ( guest_width =3D=3D sizeof(unsigned long) ) + if ( dinfo->guest_width =3D=3D sizeof(unsigned long)= ) gmfn =3D p2m[i]; else gmfn =3D ((uint64_t *)p2m)[i]; diff --git a/tools/libxc/xc_core_x86.c b/tools/libxc/xc_core_x86.c index fc2a7a1..520cb68 100644 --- a/tools/libxc/xc_core_x86.c +++ b/tools/libxc/xc_core_x86.c @@ -22,7 +22,7 @@ #include "xc_core.h" #include "xc_e820.h" =20 -#define GET_FIELD(_p, _f) ((guest_width=3D=3D8) ? ((_p)->x64._f) : ((_p)= ->x32._f)) +#define GET_FIELD(_p, _f) ((dinfo->guest_width=3D=3D8) ? ((_p)->x64._f) = : ((_p)->x32._f)) =20 #ifndef MAX #define MAX(_a, _b) ((_a) >=3D (_b) ? (_a) : (_b)) @@ -76,7 +76,7 @@ xc_core_arch_memory_map_get(int xc_handle, struct xc_co= re_arch_context *unused, } =20 static int -xc_core_arch_map_p2m_rw(int xc_handle, unsigned int guest_width, xc_domi= nfo_t *info, +xc_core_arch_map_p2m_rw(int xc_handle, struct domain_info_context *dinfo= , xc_dominfo_t *info, shared_info_any_t *live_shinfo, xen_pfn_t **live= _p2m, unsigned long *pfnp, int rw) { @@ -88,14 +88,14 @@ xc_core_arch_map_p2m_rw(int xc_handle, unsigned int g= uest_width, xc_dominfo_t *i xen_pfn_t *p2m_frame_list =3D NULL; =20 uint32_t dom =3D info->domid; - unsigned long p2m_size =3D nr_gpfns(xc_handle, info->domid); int ret =3D -1; int err; int i; =20 - if ( p2m_size < info->nr_pages ) + dinfo->p2m_size =3D nr_gpfns(xc_handle, info->domid); + if ( dinfo->p2m_size < info->nr_pages ) { - ERROR("p2m_size < nr_pages -1 (%lx < %lx", p2m_size, info->nr_pa= ges - 1); + ERROR("p2m_size < nr_pages -1 (%lx < %lx", dinfo->p2m_size, info= ->nr_pages - 1); goto out; } =20 @@ -118,13 +118,13 @@ xc_core_arch_map_p2m_rw(int xc_handle, unsigned int= guest_width, xc_dominfo_t *i memcpy(p2m_frame_list_list, live_p2m_frame_list_list, PAGE_SIZE); =20 /* Canonicalize guest's unsigned long vs ours */ - if ( guest_width > sizeof(unsigned long) ) + if ( dinfo->guest_width > sizeof(unsigned long) ) for ( i =3D 0; i < PAGE_SIZE/sizeof(unsigned long); i++ ) - if ( i < PAGE_SIZE/guest_width ) + if ( i < PAGE_SIZE/dinfo->guest_width ) p2m_frame_list_list[i] =3D ((uint64_t *)p2m_frame_list_l= ist)[i]; else p2m_frame_list_list[i] =3D 0; - else if ( guest_width < sizeof(unsigned long) ) + else if ( dinfo->guest_width < sizeof(unsigned long) ) for ( i =3D PAGE_SIZE/sizeof(unsigned long) - 1; i >=3D 0; i-- ) p2m_frame_list_list[i] =3D ((uint32_t *)p2m_frame_list_list)= [i]; =20 @@ -149,10 +149,10 @@ xc_core_arch_map_p2m_rw(int xc_handle, unsigned int= guest_width, xc_dominfo_t *i memcpy(p2m_frame_list, live_p2m_frame_list, P2M_GUEST_FL_SIZE); =20 /* Canonicalize guest's unsigned long vs ours */ - if ( guest_width > sizeof(unsigned long) ) + if ( dinfo->guest_width > sizeof(unsigned long) ) for ( i =3D 0; i < P2M_FL_ENTRIES; i++ ) p2m_frame_list[i] =3D ((uint64_t *)p2m_frame_list)[i]; - else if ( guest_width < sizeof(unsigned long) ) + else if ( dinfo->guest_width < sizeof(unsigned long) ) for ( i =3D P2M_FL_ENTRIES - 1; i >=3D 0; i-- ) p2m_frame_list[i] =3D ((uint32_t *)p2m_frame_list)[i]; =20 @@ -167,7 +167,7 @@ xc_core_arch_map_p2m_rw(int xc_handle, unsigned int g= uest_width, xc_dominfo_t *i goto out; } =20 - *pfnp =3D p2m_size; + *pfnp =3D dinfo->p2m_size; =20 ret =3D 0; =20 @@ -195,7 +195,9 @@ xc_core_arch_map_p2m(int xc_handle, unsigned int gues= t_width, xc_dominfo_t *info shared_info_any_t *live_shinfo, xen_pfn_t **live= _p2m, unsigned long *pfnp) { - return xc_core_arch_map_p2m_rw(xc_handle, guest_width, info, + struct domain_info_context _dinfo =3D { .guest_width =3D guest_width= }; + struct domain_info_context *dinfo =3D &_dinfo; + return xc_core_arch_map_p2m_rw(xc_handle, dinfo, info, live_shinfo, live_p2m, pfnp, 0); } =20 @@ -204,7 +206,9 @@ xc_core_arch_map_p2m_writable(int xc_handle, unsigned= int guest_width, xc_dominf shared_info_any_t *live_shinfo, xen_pfn_t = **live_p2m, unsigned long *pfnp) { - return xc_core_arch_map_p2m_rw(xc_handle, guest_width, info, + struct domain_info_context _dinfo =3D { .guest_width =3D guest_width= }; + struct domain_info_context *dinfo =3D &_dinfo; + return xc_core_arch_map_p2m_rw(xc_handle, dinfo, info, live_shinfo, live_p2m, pfnp, 1); } /* diff --git a/tools/libxc/xc_core_x86.h b/tools/libxc/xc_core_x86.h index 739d90e..00955e2 100644 --- a/tools/libxc/xc_core_x86.h +++ b/tools/libxc/xc_core_x86.h @@ -22,7 +22,7 @@ #define XC_CORE_X86_H =20 #define ELF_ARCH_DATA ELFDATA2LSB -#define ELF_ARCH_MACHINE (guest_width =3D=3D 8 ? EM_X86_64 : EM_38= 6) +#define ELF_ARCH_MACHINE (dinfo->guest_width =3D=3D 8 ? EM_X86_64 = : EM_386) =20 struct xc_core_arch_context { /* nothing */ diff --git a/tools/libxc/xc_domain_restore.c b/tools/libxc/xc_domain_rest= ore.c index cf6a63c..d446b99 100644 --- a/tools/libxc/xc_domain_restore.c +++ b/tools/libxc/xc_domain_restore.c @@ -41,8 +41,6 @@ static unsigned long hvirt_start; /* #levels of page tables used by the current guest */ static unsigned int pt_levels; =20 -/* number of pfns this guest has (i.e. number of entries in the P2M) */ -static unsigned long p2m_size; =20 /* number of 'in use' pfns in the guest (i.e. #P2M entries with a valid = mfn) */ static unsigned long nr_pfns; @@ -53,12 +51,12 @@ static xen_pfn_t *live_p2m =3D NULL; /* A table mapping each PFN to its new MFN. */ static xen_pfn_t *p2m =3D NULL; =20 -/* Address size of the guest, in bytes */ -unsigned int guest_width; - /* If have enough continuous memory for super page allocation */ static unsigned no_superpage_mem =3D 0; =20 +static struct domain_info_context _dinfo; +static struct domain_info_context *dinfo =3D &_dinfo; + /* ** ** @@ -427,7 +425,7 @@ alloc_page: pfn =3D region_pfn_type[i] & ~XEN_DOMCTL_PFINFO_LTAB_MASK; pagetype =3D region_pfn_type[i] & XEN_DOMCTL_PFINFO_LTAB_MASK; =20 - if ( pfn > p2m_size ) + if ( pfn > dinfo->p2m_size ) { ERROR("pfn out of range"); return 1; @@ -595,13 +593,13 @@ static xen_pfn_t *load_p2m_frame_list( /* Pick a guest word-size and PT depth from the ctxt siz= e */ if ( chunk_bytes =3D=3D sizeof (ctxt.x32) ) { - guest_width =3D 4; + dinfo->guest_width =3D 4; if ( pt_levels > 2 )=20 pt_levels =3D 3;=20 } else if ( chunk_bytes =3D=3D sizeof (ctxt.x64) ) { - guest_width =3D 8; + dinfo->guest_width =3D 8; pt_levels =3D 4; } else=20 @@ -902,7 +900,7 @@ static int buffer_tail_pv(struct tailbuf_pv *buf, int= fd, buf->vcpucount++; } // DPRINTF("VCPU count: %d\n", buf->vcpucount); - vcpulen =3D ((guest_width =3D=3D 8) ? sizeof(vcpu_guest_context_x86_= 64_t) + vcpulen =3D ((dinfo->guest_width =3D=3D 8) ? sizeof(vcpu_guest_conte= xt_x86_64_t) : sizeof(vcpu_guest_context_x86_32_t)) * buf->vcpucount; if ( ext_vcpucontext ) vcpulen +=3D 128 * buf->vcpucount; @@ -1214,7 +1212,7 @@ static int apply_batch(int xc_handle, uint32_t dom,= xen_pfn_t* region_mfn, =20 ++curpage; =20 - if ( pfn > p2m_size ) + if ( pfn > dinfo->p2m_size ) { ERROR("pfn out of range"); return -1; @@ -1264,7 +1262,7 @@ static int apply_batch(int xc_handle, uint32_t dom,= xen_pfn_t* region_mfn, else if ( pagetype !=3D XEN_DOMCTL_PFINFO_NOTAB ) { ERROR("Bogus page type %lx page table is out of range: " - "i=3D%d p2m_size=3D%lu", pagetype, i, p2m_size); + "i=3D%d p2m_size=3D%lu", pagetype, i, dinfo->p2m_size)= ; return -1; } =20 @@ -1365,15 +1363,15 @@ int xc_domain_restore(int xc_handle, int io_fd, u= int32_t dom, if ( hvm ) superpages =3D 1; =20 - if ( read_exact(io_fd, &p2m_size, sizeof(unsigned long)) ) + if ( read_exact(io_fd, &dinfo->p2m_size, sizeof(unsigned long)) ) { ERROR("read: p2m_size"); goto out; } - DPRINTF("xc_domain_restore start: p2m_size =3D %lx\n", p2m_size); + DPRINTF("xc_domain_restore start: p2m_size =3D %lx\n", dinfo->p2m_si= ze); =20 if ( !get_platform_info(xc_handle, dom, - &max_mfn, &hvirt_start, &pt_levels, &guest_w= idth) ) + &max_mfn, &hvirt_start, &pt_levels, &dinfo->= guest_width) ) { ERROR("Unable to get platform info."); return 1; @@ -1382,8 +1380,8 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, /* The *current* word size of the guest isn't very interesting; for = now * assume the guest will be the same as we are. We'll fix that late= r * if we discover otherwise. */ - guest_width =3D sizeof(unsigned long); - pt_levels =3D (guest_width =3D=3D 8) ? 4 : (pt_levels =3D=3D 2) ? 2 = : 3;=20 + dinfo->guest_width =3D sizeof(unsigned long); + pt_levels =3D (dinfo->guest_width =3D=3D 8) ? 4 : (pt_levels =3D=3D = 2) ? 2 : 3;=20 =20 if ( !hvm )=20 { @@ -1397,7 +1395,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, memset(&domctl, 0, sizeof(domctl)); domctl.domain =3D dom; domctl.cmd =3D XEN_DOMCTL_set_address_size; - domctl.u.address_size.size =3D guest_width * 8; + domctl.u.address_size.size =3D dinfo->guest_width * 8; frc =3D do_domctl(xc_handle, &domctl); if ( frc !=3D 0 ) { @@ -1407,8 +1405,8 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, } =20 /* We want zeroed memory so use calloc rather than malloc. */ - p2m =3D calloc(p2m_size, sizeof(xen_pfn_t)); - pfn_type =3D calloc(p2m_size, sizeof(unsigned long)); + p2m =3D calloc(dinfo->p2m_size, sizeof(xen_pfn_t)); + pfn_type =3D calloc(dinfo->p2m_size, sizeof(unsigned long)); =20 region_mfn =3D xg_memalign(PAGE_SIZE, ROUNDUP( MAX_BATCH_SIZE * sizeof(xen_pfn_t), PAGE_S= HIFT)); @@ -1441,7 +1439,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, shared_info_frame =3D domctl.u.getdomaininfo.shared_info_frame; =20 /* Mark all PFNs as invalid; we allocate on demand */ - for ( pfn =3D 0; pfn < p2m_size; pfn++ ) + for ( pfn =3D 0; pfn < dinfo->p2m_size; pfn++ ) p2m[pfn] =3D INVALID_P2M_ENTRY; =20 mmu =3D xc_alloc_mmu_updates(xc_handle, dom); @@ -1465,7 +1463,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, { int j, curbatch; =20 - this_pc =3D (n * 100) / p2m_size; + this_pc =3D (n * 100) / dinfo->p2m_size; if ( (this_pc - prev_pc) >=3D 5 ) { PPRINTF("\b\b\b\b%3d%%", this_pc); @@ -1594,7 +1592,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, int j, k; =20 /* First pass: find all L3TABs current in > 4G mfns and get new = mfns */ - for ( i =3D 0; i < p2m_size; i++ ) + for ( i =3D 0; i < dinfo->p2m_size; i++ ) { if ( ((pfn_type[i] & XEN_DOMCTL_PFINFO_LTABTYPE_MASK) =3D=3D XEN_DOMCTL_PFINFO_L3TAB) && @@ -1644,7 +1642,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, /* Second pass: find all L1TABs and uncanonicalize them */ j =3D 0; =20 - for ( i =3D 0; i < p2m_size; i++ ) + for ( i =3D 0; i < dinfo->p2m_size; i++ ) { if ( ((pfn_type[i] & XEN_DOMCTL_PFINFO_LTABTYPE_MASK) =3D=3D XEN_DOMCTL_PFINFO_L1TAB) ) @@ -1653,7 +1651,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, j++; } =20 - if ( (i =3D=3D (p2m_size-1)) || (j =3D=3D MAX_BATCH_SIZE) ) + if ( (i =3D=3D (dinfo->p2m_size-1)) || (j =3D=3D MAX_BATCH_S= IZE) ) { region_base =3D xc_map_foreign_batch( xc_handle, dom, PROT_READ | PROT_WRITE, region_mfn, = j); @@ -1691,7 +1689,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, * will barf when doing the type-checking. */ nr_pins =3D 0; - for ( i =3D 0; i < p2m_size; i++ ) + for ( i =3D 0; i < dinfo->p2m_size; i++ ) { if ( (pfn_type[i] & XEN_DOMCTL_PFINFO_LPINTAB) =3D=3D 0 ) continue; @@ -1792,9 +1790,9 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, if ( !(vcpumap & (1ULL << i)) ) continue; =20 - memcpy(&ctxt, vcpup, ((guest_width =3D=3D 8) ? sizeof(ctxt.x64) + memcpy(&ctxt, vcpup, ((dinfo->guest_width =3D=3D 8) ? sizeof(ctx= t.x64) : sizeof(ctxt.x32))); - vcpup +=3D (guest_width =3D=3D 8) ? sizeof(ctxt.x64) : sizeof(ct= xt.x32); + vcpup +=3D (dinfo->guest_width =3D=3D 8) ? sizeof(ctxt.x64) : si= zeof(ctxt.x32); =20 DPRINTF("read VCPU %d\n", i); =20 @@ -1808,7 +1806,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, * resume record. */ pfn =3D GET_FIELD(&ctxt, user_regs.edx); - if ( (pfn >=3D p2m_size) || + if ( (pfn >=3D dinfo->p2m_size) || (pfn_type[pfn] !=3D XEN_DOMCTL_PFINFO_NOTAB) ) { ERROR("Suspend record frame number is bad"); @@ -1818,7 +1816,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, SET_FIELD(&ctxt, user_regs.edx, mfn); start_info =3D xc_map_foreign_range( xc_handle, dom, PAGE_SIZE, PROT_READ | PROT_WRITE, mfn); - SET_FIELD(start_info, nr_pages, p2m_size); + SET_FIELD(start_info, nr_pages, dinfo->p2m_size); SET_FIELD(start_info, shared_info, shared_info_frame<=3D p2m_size) || + if ( (pfn >=3D dinfo->p2m_size) || (pfn_type[pfn] !=3D XEN_DOMCTL_PFINFO_NOTAB) ) { ERROR("GDT frame number %i (0x%lx) is bad",=20 @@ -1851,10 +1849,10 @@ int xc_domain_restore(int xc_handle, int io_fd, u= int32_t dom, /* Uncanonicalise the page table base pointer. */ pfn =3D UNFOLD_CR3(GET_FIELD(&ctxt, ctrlreg[3])); =20 - if ( pfn >=3D p2m_size ) + if ( pfn >=3D dinfo->p2m_size ) { ERROR("PT base is bad: pfn=3D%lu p2m_size=3D%lu type=3D%08lx= ", - pfn, p2m_size, pfn_type[pfn]); + pfn, dinfo->p2m_size, pfn_type[pfn]); goto out; } =20 @@ -1862,7 +1860,7 @@ int xc_domain_restore(int xc_handle, int io_fd, uin= t32_t dom, ((unsigned long)pt_levels<p2m_size); goto out; } if ( (pfn_type[pfn] & XEN_DOMCTL_PFINFO_LTABTYPE_MASK) !=3D ((unsigned long)pt_levels<p2m_size, pfn_type[pfn], (unsigned long)pt_levels<=3D p2m_size) || (pfn_type[pfn] !=3D XEN_DOMCTL_PFINF= O_NOTAB) ) + if ( (pfn >=3D dinfo->p2m_size) || (pfn_type[pfn] !=3D XEN_DOMCT= L_PFINFO_NOTAB) ) { ERROR("PFN-to-MFN frame number %i (%#lx) is bad", i, pfn); goto out; @@ -1958,14 +1956,14 @@ int xc_domain_restore(int xc_handle, int io_fd, u= int32_t dom, =20 /* If the domain we're restoring has a different word size to ours, * we need to adjust the live_p2m assignment appropriately */ - if ( guest_width > sizeof (xen_pfn_t) ) - for ( i =3D p2m_size - 1; i >=3D 0; i-- ) + if ( dinfo->guest_width > sizeof (xen_pfn_t) ) + for ( i =3D dinfo->p2m_size - 1; i >=3D 0; i-- ) ((int64_t *)live_p2m)[i] =3D (long)p2m[i]; - else if ( guest_width < sizeof (xen_pfn_t) ) - for ( i =3D 0; i < p2m_size; i++ ) =20 + else if ( dinfo->guest_width < sizeof (xen_pfn_t) ) + for ( i =3D 0; i < dinfo->p2m_size; i++ ) =20 ((uint32_t *)live_p2m)[i] =3D p2m[i]; else - memcpy(live_p2m, p2m, p2m_size * sizeof(xen_pfn_t)); + memcpy(live_p2m, p2m, dinfo->p2m_size * sizeof(xen_pfn_t)); munmap(live_p2m, P2M_FL_ENTRIES * PAGE_SIZE); =20 DPRINTF("Domain ready to be built.\n"); diff --git a/tools/libxc/xc_domain_save.c b/tools/libxc/xc_domain_save.c index 9d706a9..10679af 100644 --- a/tools/libxc/xc_domain_save.c +++ b/tools/libxc/xc_domain_save.c @@ -39,8 +39,6 @@ static unsigned long hvirt_start; /* #levels of page tables used by the current guest */ static unsigned int pt_levels; =20 -/* number of pfns this guest has (i.e. number of entries in the P2M) */ -static unsigned long p2m_size; =20 /* Live mapping of the table mapping each PFN to its current MFN. */ static xen_pfn_t *live_p2m =3D NULL; @@ -49,8 +47,8 @@ static xen_pfn_t *live_p2m =3D NULL; static xen_pfn_t *live_m2p =3D NULL; static unsigned long m2p_mfn0; =20 -/* Address size of the guest */ -unsigned int guest_width; +static struct domain_info_context _dinfo; +static struct domain_info_context *dinfo =3D &_dinfo; =20 /* buffer for output */ struct outbuf { @@ -66,7 +64,7 @@ struct outbuf { #define mfn_to_pfn(_mfn) (live_m2p[(_mfn)]) =20 #define pfn_to_mfn(_pfn) \ - ((xen_pfn_t) ((guest_width=3D=3D8) = \ + ((xen_pfn_t) ((dinfo->guest_width=3D=3D8) = \ ? (((uint64_t *)live_p2m)[(_pfn)]) \ : ((((uint32_t *)live_p2m)[(_pfn)]) =3D=3D 0xffffffffU = \ ? (-1UL) : (((uint32_t *)live_p2m)[(_pfn)])))) @@ -77,7 +75,7 @@ struct outbuf { */ #define MFN_IS_IN_PSEUDOPHYS_MAP(_mfn) \ (((_mfn) < (max_mfn)) && \ - ((mfn_to_pfn(_mfn) < (p2m_size)) && \ + ((mfn_to_pfn(_mfn) < (dinfo->p2m_size)) && \ (pfn_to_mfn(mfn_to_pfn(_mfn)) =3D=3D (_mfn)))) =20 /* @@ -87,7 +85,7 @@ struct outbuf { =20 #define BITS_PER_LONG (sizeof(unsigned long) * 8) #define BITS_TO_LONGS(bits) (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG) -#define BITMAP_SIZE (BITS_TO_LONGS(p2m_size) * sizeof(unsigned long)) +#define BITMAP_SIZE (BITS_TO_LONGS(dinfo->p2m_size) * sizeof(unsigned = long)) =20 #define BITMAP_ENTRY(_nr,_bmap) \ ((volatile unsigned long *)(_bmap))[(_nr)/BITS_PER_LONG] @@ -401,7 +399,7 @@ static int print_stats(int xc_handle, uint32_t domid,= int pages_sent, } =20 =20 -static int analysis_phase(int xc_handle, uint32_t domid, int p2m_size, +static int analysis_phase(int xc_handle, uint32_t domid, unsigned long *arr, int runs) { long long start, now; @@ -415,7 +413,7 @@ static int analysis_phase(int xc_handle, uint32_t dom= id, int p2m_size, int i; =20 xc_shadow_control(xc_handle, domid, XEN_DOMCTL_SHADOW_OP_CLEAN, - arr, p2m_size, NULL, 0, NULL); + arr, dinfo->p2m_size, NULL, 0, NULL); DPRINTF("#Flush\n"); for ( i =3D 0; i < 40; i++ ) { @@ -576,7 +574,7 @@ static int canonicalize_pagetable(unsigned long type,= unsigned long pfn, * compat m2p, so we quietly zap them. This doesn't * count as a race, so don't report it. */ if ( !(type =3D=3D XEN_DOMCTL_PFINFO_L2TAB=20 - && sizeof (unsigned long) > guest_width) ) + && sizeof (unsigned long) > dinfo->guest_width) ) race =3D 1; /* inform the caller; fatal if !live *= /=20 } else @@ -673,7 +671,6 @@ err0: static xen_pfn_t *map_and_save_p2m_table(int xc_handle,=20 int io_fd,=20 uint32_t dom, - unsigned long p2m_size, shared_info_any_t *live_shinfo) { vcpu_guest_context_any_t ctxt; @@ -705,13 +702,13 @@ static xen_pfn_t *map_and_save_p2m_table(int xc_han= dle, memcpy(p2m_frame_list_list, live_p2m_frame_list_list, PAGE_SIZE); =20 /* Canonicalize guest's unsigned long vs ours */ - if ( guest_width > sizeof(unsigned long) ) + if ( dinfo->guest_width > sizeof(unsigned long) ) for ( i =3D 0; i < PAGE_SIZE/sizeof(unsigned long); i++ ) - if ( i < PAGE_SIZE/guest_width ) + if ( i < PAGE_SIZE/dinfo->guest_width ) p2m_frame_list_list[i] =3D ((uint64_t *)p2m_frame_list_l= ist)[i]; else p2m_frame_list_list[i] =3D 0; - else if ( guest_width < sizeof(unsigned long) ) + else if ( dinfo->guest_width < sizeof(unsigned long) ) for ( i =3D PAGE_SIZE/sizeof(unsigned long) - 1; i >=3D 0; i-- ) p2m_frame_list_list[i] =3D ((uint32_t *)p2m_frame_list_list)= [i]; =20 @@ -735,10 +732,10 @@ static xen_pfn_t *map_and_save_p2m_table(int xc_han= dle, memcpy(p2m_frame_list, live_p2m_frame_list, P2M_GUEST_FL_SIZE); =20 /* Canonicalize guest's unsigned long vs ours */ - if ( guest_width > sizeof(unsigned long) ) + if ( dinfo->guest_width > sizeof(unsigned long) ) for ( i =3D 0; i < P2M_FL_ENTRIES; i++ ) p2m_frame_list[i] =3D ((uint64_t *)p2m_frame_list)[i]; - else if ( guest_width < sizeof(unsigned long) ) + else if ( dinfo->guest_width < sizeof(unsigned long) ) for ( i =3D P2M_FL_ENTRIES - 1; i >=3D 0; i-- ) p2m_frame_list[i] =3D ((uint32_t *)p2m_frame_list)[i]; =20 @@ -759,7 +756,7 @@ static xen_pfn_t *map_and_save_p2m_table(int xc_handl= e, live_p2m =3D p2m; /* So that translation macros will work */ =20 /* Canonicalise the pfn-to-mfn table frame-number list. */ - for ( i =3D 0; i < p2m_size; i +=3D FPP ) + for ( i =3D 0; i < dinfo->p2m_size; i +=3D FPP ) { if ( !MFN_IS_IN_PSEUDOPHYS_MAP(p2m_frame_list[i/FPP]) ) { @@ -794,7 +791,7 @@ static xen_pfn_t *map_and_save_p2m_table(int xc_handl= e, */ { unsigned long signature =3D ~0UL; - uint32_t chunk1_sz =3D ((guest_width=3D=3D8)=20 + uint32_t chunk1_sz =3D ((dinfo->guest_width=3D=3D8)=20 ? sizeof(ctxt.x64)=20 : sizeof(ctxt.x32)); uint32_t chunk2_sz =3D 0; @@ -927,7 +924,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32_t= dom, uint32_t max_iters, initialize_mbit_rate(); =20 if ( !get_platform_info(xc_handle, dom, - &max_mfn, &hvirt_start, &pt_levels, &guest_w= idth) ) + &max_mfn, &hvirt_start, &pt_levels, &dinfo->= guest_width) ) { ERROR("Unable to get platform info."); return 1; @@ -954,7 +951,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32_t= dom, uint32_t max_iters, } =20 /* Get the size of the P2M table */ - p2m_size =3D xc_memory_op(xc_handle, XENMEM_maximum_gpfn, &dom) + 1; + dinfo->p2m_size =3D xc_memory_op(xc_handle, XENMEM_maximum_gpfn, &do= m) + 1; =20 /* Domain is still running at this point */ if ( live ) @@ -1000,7 +997,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32_= t dom, uint32_t max_iters, last_iter =3D !live; =20 /* pretend we sent all the pages last iteration */ - sent_last_iter =3D p2m_size; + sent_last_iter =3D dinfo->p2m_size; =20 /* Setup to_send / to_fix and to_skip bitmaps */ to_send =3D xg_memalign(PAGE_SIZE, ROUNDUP(BITMAP_SIZE, PAGE_SHIFT))= ;=20 @@ -1045,7 +1042,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, } } =20 - analysis_phase(xc_handle, dom, p2m_size, to_skip, 0); + analysis_phase(xc_handle, dom, to_skip, 0); =20 pfn_type =3D xg_memalign(PAGE_SIZE, ROUNDUP( MAX_BATCH_SIZE * sizeof(*pfn_type), PAGE_S= HIFT)); @@ -1073,7 +1070,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, } =20 /* Start writing out the saved-domain record. */ - if ( write_exact(io_fd, &p2m_size, sizeof(unsigned long)) ) + if ( write_exact(io_fd, &dinfo->p2m_size, sizeof(unsigned long)) ) { PERROR("write: p2m_size"); goto out; @@ -1084,8 +1081,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, int err =3D 0; =20 /* Map the P2M table, and write the list of P2M frames */ - live_p2m =3D map_and_save_p2m_table(xc_handle, io_fd, dom,=20 - p2m_size, live_shinfo); + live_p2m =3D map_and_save_p2m_table(xc_handle, io_fd, dom, live_= shinfo); if ( live_p2m =3D=3D NULL ) { ERROR("Failed to map/save the p2m frame list"); @@ -1096,7 +1092,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, * Quick belt and braces sanity check. */ =20 - for ( i =3D 0; i < p2m_size; i++ ) + for ( i =3D 0; i < dinfo->p2m_size; i++ ) { mfn =3D pfn_to_mfn(i); if( (mfn !=3D INVALID_P2M_ENTRY) && (mfn_to_pfn(mfn) !=3D i)= ) @@ -1144,9 +1140,9 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, =20 DPRINTF("Saving memory pages: iter %d 0%%", iter); =20 - while ( N < p2m_size ) + while ( N < dinfo->p2m_size ) { - unsigned int this_pc =3D (N * 100) / p2m_size; + unsigned int this_pc =3D (N * 100) / dinfo->p2m_size; =20 if ( (this_pc - prev_pc) >=3D 5 ) { @@ -1160,8 +1156,8 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, but this is fast enough for the moment. */ frc =3D xc_shadow_control( xc_handle, dom, XEN_DOMCTL_SHADOW_OP_PEEK, to_skip,=20 - p2m_size, NULL, 0, NULL); - if ( frc !=3D p2m_size ) + dinfo->p2m_size, NULL, 0, NULL); + if ( frc !=3D dinfo->p2m_size ) { ERROR("Error peeking shadow bitmap"); goto out; @@ -1171,7 +1167,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, /* load pfn_type[] with the mfn of all the pages we're doing= in this batch. */ for ( batch =3D 0; - (batch < MAX_BATCH_SIZE) && (N < p2m_size); + (batch < MAX_BATCH_SIZE) && (N < dinfo->p2m_size); N++ ) { int n =3D N; @@ -1433,7 +1429,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, print_stats( xc_handle, dom, sent_this_iter, &stats, 1); =20 DPRINTF("Total pages sent=3D %ld (%.2fx)\n", - total_sent, ((float)total_sent)/p2m_size ); + total_sent, ((float)total_sent)/dinfo->p2m_size ); DPRINTF("(of which %ld were fixups)\n", needed_to_fix ); } =20 @@ -1462,7 +1458,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, if ( ((sent_this_iter > sent_last_iter) && RATE_IS_MAX()) || (iter >=3D max_iters) || (sent_this_iter+skip_this_iter < 50) || - (total_sent > p2m_size*max_factor) ) + (total_sent > dinfo->p2m_size*max_factor) ) { DPRINTF("Start last iteration\n"); last_iter =3D 1; @@ -1493,7 +1489,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, =20 if ( xc_shadow_control(xc_handle, dom,=20 XEN_DOMCTL_SHADOW_OP_CLEAN, to_send,=20 - p2m_size, NULL, 0, &stats) !=3D p2m_s= ize ) + dinfo->p2m_size, NULL, 0, &stats) !=3D= dinfo->p2m_size ) { ERROR("Error flushing shadow PT"); goto out; @@ -1626,7 +1622,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, unsigned int i,j; unsigned long pfntab[1024]; =20 - for ( i =3D 0, j =3D 0; i < p2m_size; i++ ) + for ( i =3D 0, j =3D 0; i < dinfo->p2m_size; i++ ) { if ( !is_mapped(pfn_to_mfn(i)) ) j++; @@ -1638,13 +1634,13 @@ int xc_domain_save(int xc_handle, int io_fd, uint= 32_t dom, uint32_t max_iters, goto out; } =20 - for ( i =3D 0, j =3D 0; i < p2m_size; ) + for ( i =3D 0, j =3D 0; i < dinfo->p2m_size; ) { if ( !is_mapped(pfn_to_mfn(i)) ) pfntab[j++] =3D i; =20 i++; - if ( (j =3D=3D 1024) || (i =3D=3D p2m_size) ) + if ( (j =3D=3D 1024) || (i =3D=3D dinfo->p2m_size) ) { if ( write_exact(io_fd, &pfntab, sizeof(unsigned long)*j= ) ) { @@ -1717,7 +1713,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, FOLD_CR3(mfn_to_pfn(UNFOLD_CR3(ctxt.x64.ctrlreg[1]))); } =20 - if ( write_exact(io_fd, &ctxt, ((guest_width=3D=3D8)=20 + if ( write_exact(io_fd, &ctxt, ((dinfo->guest_width=3D=3D8)=20 ? sizeof(ctxt.x64)=20 : sizeof(ctxt.x32))) ) { @@ -1789,7 +1785,7 @@ int xc_domain_save(int xc_handle, int io_fd, uint32= _t dom, uint32_t max_iters, =20 if ( xc_shadow_control(xc_handle, dom, XEN_DOMCTL_SHADOW_OP_CLEAN, to_send, - p2m_size, NULL, 0, &stats) !=3D p2m_size = ) + dinfo->p2m_size, NULL, 0, &stats) !=3D di= nfo->p2m_size ) { ERROR("Error flushing shadow PT"); } diff --git a/tools/libxc/xc_offline_page.c b/tools/libxc/xc_offline_page.= c index c386d88..eb6d998 100644 --- a/tools/libxc/xc_offline_page.c +++ b/tools/libxc/xc_offline_page.c @@ -45,8 +45,8 @@ struct pte_backup int cur; }; =20 -/* Global definition for some MACRO */ -int guest_width, p2m_size; +static struct domain_info_context _dinfo; +static struct domain_info_context *dinfo =3D &_dinfo; =20 int xc_mark_page_online(int xc, unsigned long start, unsigned long end, uint32_t *status) @@ -234,7 +234,7 @@ static int init_mem_info(int xc_handle, int domid, ERROR("Unable to get PT level info."); return -EFAULT; } - guest_width =3D minfo->guest_width; + dinfo->guest_width =3D minfo->guest_width; =20 shared_info_frame =3D info->shared_info_frame; =20 @@ -255,7 +255,7 @@ static int init_mem_info(int xc_handle, int domid, munmap(live_shinfo, PAGE_SIZE); live_shinfo =3D NULL; =20 - p2m_size =3D minfo->p2m_size; + dinfo->p2m_size =3D minfo->p2m_size; =20 minfo->max_mfn =3D xc_memory_op(xc_handle, XENMEM_maximum_ram_page, = NULL); if ( !(minfo->m2p_table =3D @@ -286,7 +286,7 @@ static int init_mem_info(int xc_handle, int domid, =20 for (i =3D 0; i < minfo->p2m_size ; i+=3D1024) { - int count =3D ((p2m_size - i ) > 1024 ) ? 1024: (p2m_size - i); + int count =3D ((dinfo->p2m_size - i ) > 1024 ) ? 1024: (dinfo->p= 2m_size - i); if ( ( rc =3D xc_get_pfn_type_batch(xc_handle, domid, count, minfo->pfn_type + i)) ) { diff --git a/tools/libxc/xc_resume.c b/tools/libxc/xc_resume.c index ad0f137..2816609 100644 --- a/tools/libxc/xc_resume.c +++ b/tools/libxc/xc_resume.c @@ -26,7 +26,9 @@ static int modify_returncode(int xc_handle, uint32_t do= mid) vcpu_guest_context_any_t ctxt; xc_dominfo_t info; xen_capabilities_info_t caps; - int rc, guest_width; + struct domain_info_context _dinfo =3D {}; + struct domain_info_context *dinfo =3D &_dinfo; + int rc; =20 if ( xc_domain_getinfo(xc_handle, domid, 1, &info) !=3D 1 ) { @@ -48,13 +50,13 @@ static int modify_returncode(int xc_handle, uint32_t = domid) PERROR("Could not get Xen capabilities\n"); return -1; } - guest_width =3D strstr(caps, "x86_64") ? 8 : 4; + dinfo->guest_width =3D strstr(caps, "x86_64") ? 8 : 4; } else { /* Probe PV guest address width. */ - guest_width =3D pv_guest_width(xc_handle, domid); - if ( guest_width < 0 ) + dinfo->guest_width =3D pv_guest_width(xc_handle, domid); + if ( dinfo->guest_width < 0 ) return -1; } =20 @@ -102,8 +104,9 @@ static int xc_domain_resume_any(int xc_handle, uint32= _t domid) xc_dominfo_t info; int i, rc =3D -1; #if defined(__i386__) || defined(__x86_64__) - int guest_width; - unsigned long mfn, p2m_size =3D 0; + struct domain_info_context _dinfo =3D { .p2m_size =3D 0 }; + struct domain_info_context *dinfo =3D &_dinfo; + unsigned long mfn; vcpu_guest_context_any_t ctxt; start_info_t *start_info; shared_info_t *shinfo =3D NULL; @@ -128,8 +131,8 @@ static int xc_domain_resume_any(int xc_handle, uint32= _t domid) return rc; } =20 - guest_width =3D pv_guest_width(xc_handle, domid); - if ( guest_width !=3D sizeof(long) ) + dinfo->guest_width =3D pv_guest_width(xc_handle, domid); + if ( dinfo->guest_width !=3D sizeof(long) ) { ERROR("Cannot resume uncooperative cross-address-size guests"); return rc; @@ -144,7 +147,7 @@ static int xc_domain_resume_any(int xc_handle, uint32= _t domid) goto out; } =20 - p2m_size =3D shinfo->arch.max_pfn; + dinfo->p2m_size =3D shinfo->arch.max_pfn; =20 p2m_frame_list_list =3D xc_map_foreign_range(xc_handle, domid, PAGE_SIZE, PROT_READ, diff --git a/tools/libxc/xg_private.h b/tools/libxc/xg_private.h index 1e74509..aef011d 100644 --- a/tools/libxc/xg_private.h +++ b/tools/libxc/xg_private.h @@ -144,23 +144,27 @@ typedef l4_pgentry_64_t l4_pgentry_t; /* XXX SMH: following skanky macros rely on variable p2m_size being set = */ /* XXX TJD: also, "guest_width" should be the guest's sizeof(unsigned lo= ng) */ =20 -/* Number of xen_pfn_t in a page */ +struct domain_info_context { + unsigned int guest_width; + unsigned long p2m_size; +}; =20 -#define FPP (PAGE_SIZE/(guest_width)) +/* Number of xen_pfn_t in a page */ +#define FPP (PAGE_SIZE/(dinfo->guest_width)) =20 /* Number of entries in the pfn_to_mfn_frame_list_list */ -#define P2M_FLL_ENTRIES (((p2m_size)+(FPP*FPP)-1)/(FPP*FPP)) +#define P2M_FLL_ENTRIES (((dinfo->p2m_size)+(FPP*FPP)-1)/(FPP*FPP)) =20 /* Number of entries in the pfn_to_mfn_frame_list */ -#define P2M_FL_ENTRIES (((p2m_size)+FPP-1)/FPP) +#define P2M_FL_ENTRIES (((dinfo->p2m_size)+FPP-1)/FPP) =20 /* Size in bytes of the pfn_to_mfn_frame_list */ -#define P2M_GUEST_FL_SIZE ((P2M_FL_ENTRIES) * (guest_width)) +#define P2M_GUEST_FL_SIZE ((P2M_FL_ENTRIES) * (dinfo->guest_width)) #define P2M_TOOLS_FL_SIZE ((P2M_FL_ENTRIES) * = \ - MAX((sizeof (xen_pfn_t)), guest_width)) + MAX((sizeof (xen_pfn_t)), dinfo->guest_width)= ) =20 /* Masks for PTE<->PFN conversions */ -#define MADDR_BITS_X86 ((guest_width =3D=3D 8) ? 52 : 44) +#define MADDR_BITS_X86 ((dinfo->guest_width =3D=3D 8) ? 52 : 44) #define MFN_MASK_X86 ((1ULL << (MADDR_BITS_X86 - PAGE_SHIFT_X86)) - 1= ) #define MADDR_MASK_X86 (MFN_MASK_X86 << PAGE_SHIFT_X86) =20 diff --git a/tools/libxc/xg_save_restore.h b/tools/libxc/xg_save_restore.= h index 5d39982..9c2b67a 100644 --- a/tools/libxc/xg_save_restore.h +++ b/tools/libxc/xg_save_restore.h @@ -112,34 +112,34 @@ static inline int get_platform_info(int xc_handle, = uint32_t dom, #define is_mapped(pfn_type) (!((pfn_type) & 0x80000000UL)) =20 =20 -#define GET_FIELD(_p, _f) ((guest_width=3D=3D8) ? ((_p)->x64._f) : ((_p)= ->x32._f)) +#define GET_FIELD(_p, _f) ((dinfo->guest_width=3D=3D8) ? ((_p)->x64._f) = : ((_p)->x32._f)) =20 #define SET_FIELD(_p, _f, _v) do { \ - if (guest_width =3D=3D 8) \ + if (dinfo->guest_width =3D=3D 8) \ (_p)->x64._f =3D (_v); \ else \ (_p)->x32._f =3D (_v); \ } while (0) =20 #define UNFOLD_CR3(_c) = \ - ((uint64_t)((guest_width =3D=3D 8) = \ + ((uint64_t)((dinfo->guest_width =3D=3D 8) = \ ? ((_c) >> 12) = \ : (((uint32_t)(_c) >> 12) | ((uint32_t)(_c) << 20)))) =20 #define FOLD_CR3(_c) = \ - ((uint64_t)((guest_width =3D=3D 8) = \ + ((uint64_t)((dinfo->guest_width =3D=3D 8) = \ ? ((uint64_t)(_c)) << 12 = \ : (((uint32_t)(_c) << 12) | ((uint32_t)(_c) >> 20)))) =20 #define MEMCPY_FIELD(_d, _s, _f) do { \ - if (guest_width =3D=3D 8) \ + if (dinfo->guest_width =3D=3D 8) \ memcpy(&(_d)->x64._f, &(_s)->x64._f,sizeof((_d)->x64._f)); \ else \ memcpy(&(_d)->x32._f, &(_s)->x32._f,sizeof((_d)->x32._f)); \ } while (0) =20 #define MEMSET_ARRAY_FIELD(_p, _f, _v) do { \ - if (guest_width =3D=3D 8) \ + if (dinfo->guest_width =3D=3D 8) \ memset(&(_p)->x64._f[0], (_v), sizeof((_p)->x64._f)); \ else \ memset(&(_p)->x32._f[0], (_v), sizeof((_p)->x32._f)); \ --------------1.6.5.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 --------------1.6.5.2--