xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "James Harper" <james.harper@bendigoit.com.au>
To: MaoXiaoyun <tinnycloud@hotmail.com>,
	xen devel <xen-devel@lists.xensource.com>
Subject: RE: RE: TODO in windows balloon driver
Date: Sun, 27 Feb 2011 14:35:41 +1100	[thread overview]
Message-ID: <AEC6C66638C05B468B556EA548C1A77D01C559A6@trantor> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D01C559A3@trantor>

> 
> >
> > Ye, You are right, it happens when xen doesn't have enough pages for
> the VM.
> > And windows will crash now.
> >
> > In memory overcommit, If there are many VMs on a physical host, and
in
> dom0
> > use a daemon for
> > memory managment between VMS, it is possible that xen has no pages
for
> the VM
> > needs memory.
> >
> > So I think , it is better to fix it.
> >
> 
> I have put your fix in as well as the backoff delay I mentioned
earlier,
> but I'm reviewing the ballooning stuff now. I can see one bug where I
> don't do the initial balloon down in the case of PoD. I've fixed that,
> but I'm not doing it early enough, so for Windows 2008 32 bit with
> memory=512 and maxmem=1024, Windows still crashes and 'xm dmesg' shows
> "Out of populate-on-demand memory!" just after my driver starts to
load
> (in DriverEntry). It seems to work fine when memory=768 and
maxmem=1024
> but I still think it could crash on startup if you are unlucky.
> 
> The only possible workaround is to do it in DriverEntry of xenpci but
> that will require a bit of a refactoring. I think it's probably worth
> doing though.
> 

I've just pushed a partial fix for this. The initial balloon-down is now
done during DriverEntry and I'm able to boot with memory=256 and
maxmem=1024 without any problems (other than that Windows doesn't run
particularly well with 256MB of memory :)

I haven't worked out a way to pass the memory reserved in DriverEntry
back to the xenpci FDO yet though so it's not particularly useful at
this time as you can't balloon up again. I'll fix that soon now that I
have the DriverEntry thing working.

James

  reply	other threads:[~2011-02-27  3:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <SNT0-MC4-F15TlpsWqi0002f5ac@snt0-mc4-f15.Snt0.hotmail.com>
2010-12-17  3:24 ` Win2003 got blue Screen when ballooning with serial out put: "Iomem mapping not permitted" tinnycloud
2010-12-17  8:53   ` Paul Durrant
2010-12-17  9:20     ` James Harper
2010-12-20  2:06       ` tinnycloud
2011-01-05 13:11       ` Could the page sharing inside domain? (memory_sharing on xen) xiaoyun.maoxy
2011-02-25  5:56       ` TODO in windows balloon driver tinnycloud
2011-02-26 12:17         ` James Harper
2011-02-26 13:35           ` MaoXiaoyun
2011-02-27  1:43             ` James Harper
2011-02-27  3:35               ` James Harper [this message]
2011-02-26 11:20       ` blue screen " xiaoyun.maoxy
     [not found]       ` <000301cbd5a7$3245a1b0$96d0e510$@maoxy@aliyun-inc.com>
2011-02-26 11:59         ` James Harper
2010-12-17  9:39     ` Win2003 got blue Screen when ballooning with serial out put: "Iomem mapping not permitted" tinnycloud

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=AEC6C66638C05B468B556EA548C1A77D01C559A6@trantor \
    --to=james.harper@bendigoit.com.au \
    --cc=tinnycloud@hotmail.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).