xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Anthony PERARD <anthony.perard@citrix.com>
To: Stefano Stabellini <stefano.stabellini@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xensource.com
Subject: xl.cfg, memory options clarification
Date: Fri, 9 Mar 2012 14:45:51 +0000	[thread overview]
Message-ID: <4F5A179F.8060608@citrix.com> (raw)

Hi there,

There is an issue with the usage of "maxmem" options with qemu-upstream 
and it's probably do to my understanding of the options "memory", 
"videoram" and "maxmem" from a xl config file.

I though "memory" is the amount of RAM that a guest will have. So qemu 
upstream will have this value as an amount of RAM and when qemu ask for 
the videoram, ...

But if we begin to play with the "maxmem" option, then the guest become 
unusable, depending of the value of maxmem, we can have eithier a "MMIO 
emulation failed" or the bios does not see any disk.

I also try something else with the default qemu, having memory=128 and 
maxmem=1024. The guest boot, but after using it a bit Xen print:

(XEN) p2m_pod_demand_populate: Out of populate-on-demand memory! 
tot_pages 31733 pod_entries 231424
(XEN) domain_crash called from p2m-pod.c:1076
[...]
(XEN) Panic on CPU 0:
(XEN) Assertion 'lock->recurse_cnt < 0xfu' failed at spinlock.c:251

and reboot.

Is maxmem not suppose to be used with a guest ? Or is just broken.

 From all of that, I think I'll just make a change to the 
build_dm_args_new and give "-m $((maxmem - videoram))" instead of targetmem.

Regards,

-- 
Anthony PERARD

             reply	other threads:[~2012-03-09 14:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-09 14:45 Anthony PERARD [this message]
2012-03-09 14:59 ` xl.cfg, memory options clarification Olaf Hering
2012-03-09 16:55 ` 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=4F5A179F.8060608@citrix.com \
    --to=anthony.perard@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).