All of lore.kernel.org
 help / color / mirror / Atom feed
* PoD with Windows Balloon
@ 2010-11-30 11:05 Chu Rui
  2010-11-30 11:15 ` George Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Chu Rui @ 2010-11-30 11:05 UTC (permalink / raw)
  To: Xen-devel@lists.xensource.com, George Dunlap


[-- Attachment #1.1: Type: text/plain, Size: 1286 bytes --]

Hi,
I have tried PoD in Windows/HVM. My VMM is XEN 4.0.0, Domain0 is RHEL
5.4/kernel 2.6.31, and DomainU is Windows 2003.
It does not work well as in Linux/HVM. The primary problem looks in the
balloon driver, which was obtained from
http://xenbits.xensource.com/ext/win-pvdrivers.hg

In my configuration, memory=512M, and maxmem=2G. After booted, I want to
inflate the balloon with the target=390M, but the balloon driver does not
work correctly.
It becomes clear after I get the debug messges from the balloon driver as
this:

00000000 0.00000000 XenPCI --> XenPci_BalloonHandler
00000001 0.00153629 XenPCI     target memory value = 390 (400000)
00000002 0.00619057 XenPCI <-- XenPci_BalloonHandler
00000003 0.00619715 XenPCI     Got balloon event, current = 512, target =
390
00000004 0.00858740 XenPCI     Trying to give 122 MB to Xen
00000005 0.00968578 XenPCI     Calling
HYPERVISOR_memory_op(XENMEM_decrease_reservation) - pfn_count = 256
00000006 0.02019652 XenPCI     decreased 256 pages
......

Obviously, the balloon driver thinks that the system has(target) only 512M
memory when booted, thus the balloon size was 122MB, not 2G-390M. Is it a
bug of the Windows balloon driver? Does it work if I simply modify the
source code to make the initial target value as 2G?

Thanks.

[-- Attachment #1.2: Type: text/html, Size: 2451 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PoD with Windows Balloon
  2010-11-30 11:05 PoD with Windows Balloon Chu Rui
@ 2010-11-30 11:15 ` George Dunlap
  2010-11-30 11:25   ` Paul Durrant
  0 siblings, 1 reply; 3+ messages in thread
From: George Dunlap @ 2010-11-30 11:15 UTC (permalink / raw)
  To: Chu Rui; +Cc: Paul Durrant, Xen-devel@lists.xensource.com, James Harper

It looks like possibly the GPLPV baloon driver is using the wrong value 
to calculate how much memory it's starting with (and thus how big it 
needs to make the balloon)?

The Citrix Windows PV drivers (which you can get free-as-in-beer from 
the XCP distribution) work properly with PoD on open-source last time I 
checked (probably a month ago).

  -George

On 30/11/10 11:05, Chu Rui wrote:
> Hi,
> I have tried PoD in Windows/HVM. My VMM is XEN 4.0.0, Domain0 is RHEL
> 5.4/kernel 2.6.31, and DomainU is Windows 2003.
> It does not work well as in Linux/HVM. The primary problem looks in the
> balloon driver, which was obtained from
> http://xenbits.xensource.com/ext/win-pvdrivers.hg
> In my configuration, memory=512M, and maxmem=2G. After booted, I want to
> inflate the balloon with the target=390M, but the balloon driver does
> not work correctly.
> It becomes clear after I get the debug messges from the balloon driver
> as this:
> 00000000 0.00000000 XenPCI --> XenPci_BalloonHandler
> 00000001 0.00153629 XenPCI     target memory value = 390 (400000)
> 00000002 0.00619057 XenPCI <-- XenPci_BalloonHandler
> 00000003 0.00619715 XenPCI     Got balloon event, current = 512, target
> = 390
> 00000004 0.00858740 XenPCI     Trying to give 122 MB to Xen
> 00000005 0.00968578 XenPCI     Calling
> HYPERVISOR_memory_op(XENMEM_decrease_reservation) - pfn_count = 256
> 00000006 0.02019652 XenPCI     decreased 256 pages
> ......
> Obviously, the balloon driver thinks that the system has(target) only
> 512M memory when booted, thus the balloon size was 122MB, not 2G-390M.
> Is it a bug of the Windows balloon driver? Does it work if I simply
> modify the source code to make the initial target value as 2G?
> Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: PoD with Windows Balloon
  2010-11-30 11:15 ` George Dunlap
@ 2010-11-30 11:25   ` Paul Durrant
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Durrant @ 2010-11-30 11:25 UTC (permalink / raw)
  To: George Dunlap, Chu Rui; +Cc: James, Xen-devel@lists.xensource.com, Harper

The balloon driver should read memory/static-max and memory/target from xenstore. The balloon size should be the former minus the latter.

  Paul

> -----Original Message-----
> From: George Dunlap
> Sent: 30 November 2010 11:15
> To: Chu Rui
> Cc: Xen-devel@lists.xensource.com; James Harper; Paul Durrant
> Subject: Re: PoD with Windows Balloon
> 
> It looks like possibly the GPLPV baloon driver is using the wrong
> value
> to calculate how much memory it's starting with (and thus how big it
> needs to make the balloon)?
> 
> The Citrix Windows PV drivers (which you can get free-as-in-beer
> from
> the XCP distribution) work properly with PoD on open-source last
> time I
> checked (probably a month ago).
> 
>   -George
> 
> On 30/11/10 11:05, Chu Rui wrote:
> > Hi,
> > I have tried PoD in Windows/HVM. My VMM is XEN 4.0.0, Domain0 is
> RHEL
> > 5.4/kernel 2.6.31, and DomainU is Windows 2003.
> > It does not work well as in Linux/HVM. The primary problem looks
> in the
> > balloon driver, which was obtained from
> > http://xenbits.xensource.com/ext/win-pvdrivers.hg
> > In my configuration, memory=512M, and maxmem=2G. After booted, I
> want to
> > inflate the balloon with the target=390M, but the balloon driver
> does
> > not work correctly.
> > It becomes clear after I get the debug messges from the balloon
> driver
> > as this:
> > 00000000 0.00000000 XenPCI --> XenPci_BalloonHandler
> > 00000001 0.00153629 XenPCI     target memory value = 390 (400000)
> > 00000002 0.00619057 XenPCI <-- XenPci_BalloonHandler
> > 00000003 0.00619715 XenPCI     Got balloon event, current = 512,
> target
> > = 390
> > 00000004 0.00858740 XenPCI     Trying to give 122 MB to Xen
> > 00000005 0.00968578 XenPCI     Calling
> > HYPERVISOR_memory_op(XENMEM_decrease_reservation) - pfn_count =
> 256
> > 00000006 0.02019652 XenPCI     decreased 256 pages
> > ......
> > Obviously, the balloon driver thinks that the system has(target)
> only
> > 512M memory when booted, thus the balloon size was 122MB, not 2G-
> 390M.
> > Is it a bug of the Windows balloon driver? Does it work if I
> simply
> > modify the source code to make the initial target value as 2G?
> > Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-30 11:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-30 11:05 PoD with Windows Balloon Chu Rui
2010-11-30 11:15 ` George Dunlap
2010-11-30 11:25   ` Paul Durrant

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.