From: Wei Liu <wei.liu2@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
xen-devel@lists.xen.org, Wei Liu <wei.liu2@citrix.com>
Subject: Re: Claim mode and HVM PoD interact badly
Date: Fri, 10 Jan 2014 15:19:10 +0000 [thread overview]
Message-ID: <20140110151910.GD30581@zion.uk.xensource.com> (raw)
In-Reply-To: <1389366985.19142.64.camel@kazak.uk.xensource.com>
On Fri, Jan 10, 2014 at 03:16:25PM +0000, Ian Campbell wrote:
[...]
> > diff --git a/tools/libxc/xc_hvm_build_x86.c b/tools/libxc/xc_hvm_build_x86.c
> > index 77bd365..65e9577 100644
> > --- a/tools/libxc/xc_hvm_build_x86.c
> > +++ b/tools/libxc/xc_hvm_build_x86.c
> > @@ -335,7 +335,12 @@ static int setup_guest(xc_interface *xch,
> >
> > /* try to claim pages for early warning of insufficient memory available */
> > if ( claim_enabled ) {
> > - rc = xc_domain_claim_pages(xch, dom, nr_pages - cur_pages);
> > + unsigned long nr = nr_pages - cur_pages;
> > +
> > + if ( pod_mode )
> > + nr = target_pages - 0x20;
>
> 0x20?
>
128K VGA hole. :-)
Wei.
> > +
> > + rc = xc_domain_claim_pages(xch, dom, nr);
> > if ( rc != 0 )
> > {
> > PERROR("Could not allocate memory for HVM guest as we cannot claim memory!");
>
next prev parent reply other threads:[~2014-01-10 15:19 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 11:56 Claim mode and HVM PoD interact badly Wei Liu
2014-01-10 11:59 ` Ian Campbell
2014-01-10 12:15 ` Processed: " xen
2014-01-10 14:58 ` Konrad Rzeszutek Wilk
2014-01-10 15:10 ` Wei Liu
2014-01-10 15:41 ` Konrad Rzeszutek Wilk
2014-01-10 15:48 ` Wei Liu
2014-01-10 16:08 ` Konrad Rzeszutek Wilk
2014-01-10 15:52 ` Jan Beulich
2014-01-10 16:07 ` Konrad Rzeszutek Wilk
2014-01-10 16:23 ` Jan Beulich
2014-01-10 16:03 ` Wei Liu
2014-01-10 16:50 ` Konrad Rzeszutek Wilk
2014-01-10 15:16 ` Ian Campbell
2014-01-10 15:19 ` Wei Liu [this message]
2014-01-10 15:28 ` Konrad Rzeszutek Wilk
2014-01-10 15:56 ` Ian Campbell
2014-01-10 16:05 ` Konrad Rzeszutek Wilk
2014-01-10 16:11 ` Ian Campbell
2014-01-10 16:39 ` Konrad Rzeszutek Wilk
2014-01-27 12:44 ` George Dunlap
2014-01-10 19:07 ` Tim Deegan
2014-01-20 16:29 ` Wei Liu
2014-01-21 21:57 ` Konrad Rzeszutek Wilk
2014-01-27 14:54 ` George Dunlap
2014-01-27 16:14 ` Wei Liu
2014-01-27 17:33 ` George Dunlap
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=20140110151910.GD30581@zion.uk.xensource.com \
--to=wei.liu2@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=george.dunlap@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.