* Balloon driver for Linux/HVM
@ 2010-11-16 10:46 ` Rui Chu
0 siblings, 0 replies; 5+ messages in thread
From: Rui Chu @ 2010-11-16 10:46 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 347 bytes --]
Hi,
I have noticed that, in the code of linux/drivers/xen/balloon.c, there exists the snippet as this:
static int __init balloon_init(void)
{
unsigned long pfn;
struct page *page;
if (!xen_pv_domain())
return -ENODEV;
.....
}
Does it means the driver will not work in HVM? If so, where is the HVN-enabled code for that?
2010-11-16
Rui Chu
[-- Attachment #1.2: Type: text/html, Size: 1394 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] 5+ messages in thread
* Balloon driver for Linux/HVM
@ 2010-11-16 10:49 Chu Rui
2010-11-16 11:35 ` Stefano Stabellini
0 siblings, 1 reply; 5+ messages in thread
From: Chu Rui @ 2010-11-16 10:49 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 375 bytes --]
Hi,
I have noticed that, in the code of linux/drivers/xen/balloon.c, there
exists the snippet as this:
static int __init balloon_init(void)
{
unsigned long pfn;
struct page *page;
if (!xen_pv_domain())
return -ENODEV;
.....
}
Does it means the driver will not work in HVM? If so, where is the
HVN-enabled code for that?
2010-11-16
------------------------------
Rui Chu
[-- Attachment #1.2: Type: text/html, Size: 997 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] 5+ messages in thread
* Re: Balloon driver for Linux/HVM
2010-11-16 10:49 Chu Rui
@ 2010-11-16 11:35 ` Stefano Stabellini
2010-11-16 11:44 ` 牛立新
0 siblings, 1 reply; 5+ messages in thread
From: Stefano Stabellini @ 2010-11-16 11:35 UTC (permalink / raw)
To: Chu Rui; +Cc: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
On Tue, 16 Nov 2010, Chu Rui wrote:
> Hi,
> I have noticed that, in the code of linux/drivers/xen/balloon.c, there exists the snippet as this:
>
> static int __init balloon_init(void)
> {
> unsigned long pfn;
> struct page *page;
> if (!xen_pv_domain())
> return -ENODEV;
> .....
> }
>
> Does it means the driver will not work in HVM? If so, where is the HVN-enabled code for that?
not yet, even though I have a patch ready to enable it:
git://xenbits.xen.org/people/sstabellini/linux-pvhvm.git 2.6.36-rc7-pvhvm-v1
[-- 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] 5+ messages in thread
* Re: Balloon driver for Linux/HVM
2010-11-22 9:51 ` Daniel Kiper
@ 2010-11-24 18:53 ` Jeremy Fitzhardinge
2010-12-02 11:06 ` Daniel Kiper
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Fitzhardinge @ 2010-11-24 18:53 UTC (permalink / raw)
To: Daniel Kiper; +Cc: Dan Magenheimer, Xen-devel, Chu Rui
On 11/22/2010 01:51 AM, Daniel Kiper wrote:
> Hi,
>
> On Thu, Nov 18, 2010 at 12:32:35PM -0800, Dan Magenheimer wrote:
>> What is the difference between 2.6.36 balloon driver and Jeremy's
>> xen/balloon tree head? I think ideally the kernel version for
>> development should be the latest (2.6.36).
> I know that the best practice is to base new work on the
> latest stable kernel version, however I am not sure that it is
> the case there. xen/balloon head contains most of neweset fixes
> and improvments which are not merged into current stable till
> now. That is why I think we should start from this and later
> merge it with current stable. However, maybe Jeremy may have
> better view of which version would be better for the start
> of development.
>
The big difference between xen/balloon and current mainline is hugepage
support, which is not yet in an upstreamable state. Aside from that,
current upstream balloon driver (in current git, post 2.6.37-rc3) is
equivalent, and would make a good base for development.
The main difference between .37-rc and .36 is support for boot-time
ballooning, but the changes to the balloon driver to support that are
small, so .36 would probably make a reasonable base as well.
J
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Balloon driver for Linux/HVM
2010-11-24 18:53 ` Jeremy Fitzhardinge
@ 2010-12-02 11:06 ` Daniel Kiper
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Kiper @ 2010-12-02 11:06 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: Dan Magenheimer, Xen-devel, Chu Rui, Daniel Kiper
Hi,
Sorry for late reply, however I am very busy now.
On Wed, Nov 24, 2010 at 10:53:58AM -0800, Jeremy Fitzhardinge wrote:
> On 11/22/2010 01:51 AM, Daniel Kiper wrote:
> > Hi,
> >
> > On Thu, Nov 18, 2010 at 12:32:35PM -0800, Dan Magenheimer wrote:
> >> What is the difference between 2.6.36 balloon driver and Jeremy's
> >> xen/balloon tree head? I think ideally the kernel version for
> >> development should be the latest (2.6.36).
> > I know that the best practice is to base new work on the
> > latest stable kernel version, however I am not sure that it is
> > the case there. xen/balloon head contains most of neweset fixes
> > and improvments which are not merged into current stable till
> > now. That is why I think we should start from this and later
> > merge it with current stable. However, maybe Jeremy may have
> > better view of which version would be better for the start
> > of development.
> >
>
> The big difference between xen/balloon and current mainline is hugepage
> support, which is not yet in an upstreamable state. Aside from that,
> current upstream balloon driver (in current git, post 2.6.37-rc3) is
> equivalent, and would make a good base for development.
>
> The main difference between .37-rc and .36 is support for boot-time
> ballooning, but the changes to the balloon driver to support that are
> small, so .36 would probably make a reasonable base as well.
Thx. I will prepare patches for 2.6.36.
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-12-02 11:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-16 10:46 Balloon driver for Linux/HVM Rui Chu
2010-11-16 10:46 ` Rui Chu
-- strict thread matches above, loose matches on Subject: below --
2010-11-16 10:49 Chu Rui
2010-11-16 11:35 ` Stefano Stabellini
2010-11-16 11:44 ` 牛立新
2010-11-16 12:56 ` George Dunlap
2010-11-16 15:37 ` Chu Rui
2010-11-17 9:46 ` George Dunlap
2010-11-17 9:53 ` George Dunlap
2010-11-18 20:32 ` Dan Magenheimer
2010-11-22 9:51 ` Daniel Kiper
2010-11-24 18:53 ` Jeremy Fitzhardinge
2010-12-02 11:06 ` Daniel Kiper
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.