From: Wei Liu <wei.liu2@citrix.com>
To: Juergen Gross <jgross@suse.com>
Cc: wei.liu2@citrix.com, Ian.Campbell@citrix.com,
stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com,
xen-devel@lists.xen.org, boris.ostrovsky@oracle.com
Subject: Re: [PATCH] libxc: correct domain builder for 64 bit guest with 32 bit tools
Date: Tue, 1 Dec 2015 10:07:10 +0000 [thread overview]
Message-ID: <20151201100710.GL21588@citrix.com> (raw)
In-Reply-To: <1448956189-22471-1-git-send-email-jgross@suse.com>
On Tue, Dec 01, 2015 at 08:49:49AM +0100, Juergen Gross wrote:
> Commit 8c45adec18e0512c3d34dcafb13414ecba21be6a ("create unmapped
> initrd in domain builder if supported") introduced an error for
> building a 64 bit guest with a 32 bit toolset.
>
> The initrd start address and size where stored in an unsigned long
> instead of using a 64 bit type.
>
> Signed-off-by: Juergen Gross <jgross@suse.com>
> Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Thanks for fixing this.
> ---
> tools/libxc/include/xc_dom.h | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/tools/libxc/include/xc_dom.h b/tools/libxc/include/xc_dom.h
> index 2176216..fd8c5e8 100644
> --- a/tools/libxc/include/xc_dom.h
> +++ b/tools/libxc/include/xc_dom.h
> @@ -98,9 +98,14 @@ struct xc_dom_image {
> xen_vaddr_t virt_alloc_end;
> xen_vaddr_t bsd_symtab_start;
>
> - /* initrd parameters as specified in start_info page */
> - unsigned long initrd_start;
> - unsigned long initrd_len;
> + /*
> + * initrd parameters as specified in start_info page
> + * Depending on capabilities of the booted kernel this may be a virtual
> + * address or a pfn. Type is neutral and large enough to hold a virtual
> + * address of a 64 bit kernel even with 32 bit toolstack.
> + */
> + uint64_t initrd_start;
> + uint64_t initrd_len;
>
> unsigned int alloc_bootstack;
> xen_vaddr_t virt_pgtab_end;
> --
> 2.6.2
>
next prev parent reply other threads:[~2015-12-01 10:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 7:49 [PATCH] libxc: correct domain builder for 64 bit guest with 32 bit tools Juergen Gross
2015-12-01 10:07 ` Wei Liu [this message]
2015-12-01 12:38 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151201100710.GL21588@citrix.com \
--to=wei.liu2@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jgross@suse.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.