Skip to contentSkip to conversation

Xen/pv_ops features/patches for 2.6.29? (updating wiki)

DISCUSSION Pasi Kärkkäinen 4 participants 8 messages Jan 24, 2009 – Feb 13, 2009

lore
Share & tools
lore
#1 lore raw
Quoted 9 lines · Pasi Kärkkäinen

Hello!

Does someone have good overview of what Xen/pv_ops related patches are going in for Linux 2.6.29? If not, I guess I'll browse through kernel changelogs :)

I'd like to update http://wiki.xensource.com/xenwiki/XenParavirtOps

What's the status of pv_ops dom0 patches for 2.6.29?

I just added some lines there.. and changed pv_ops dom0 support for 2.6.30.

Feel free to add what's missing and/or fix those lines to be more detailed..

-- Pasi

#2 lore raw

Jeremy Fitzhardinge wrote on 02/10/09 :-
  I'm in the middle of migrating
it all to git, still planning to get at least basic dom0 support into the next merge window. And failing that, it should be easier for people to fetch a git tree than piece things together as they have to now.

 It sounds for me like stable 2.6.29 will already have basic Dom0 support,
 at least PV DomUs . F10's, Ubuntu 8.10 Server's, OpenSUSE's 11.1 PV    DomUs   have been installed  and run pretty stable at Xen Unstable Dom0 (2.6.29-rc3) right now on Intel SATA (AHCI) box.

  If i am wrong about that. Please, advise.

--- On Fri, 2/13/09, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Xen-devel] Xen/pv_ops features/patches for 2.6.29? (updating wiki)
To: [email protected]
Date: Friday, February 13, 2009, 9:40 AM

Quoted 3 lines · Pasi Kärkkäinen

Hello!

Does someone have good overview of what Xen/pv_ops related patches are

going

Quoted 1 line

in for Linux 2.6.29? If not, I guess I'll browse through kernel

changelogs :)

Quoted 5 lines

I'd like to update http://wiki.xensource.com/xenwiki/XenParavirtOps

What's the status of pv_ops dom0 patches for 2.6.29?

I just added some lines there.. and changed pv_ops dom0 support for 2.6.30.

Feel free to add what's missing and/or fix those lines to be more detailed..

-- Pasi

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 6 lines · Boris Derzhavets

Jeremy Fitzhardinge wrote on 02/10/09 :-
I'm in the middle of migrating it all to git, still planning to get
at least basic dom0 support into the next merge window. And failing that, it should be easier for people to fetch a git tree than piece things together as they have to now.

It sounds for me like stable 2.6.29 will already have basic Dom0 support,

The next merge window is 2.6.30.

J

#4 lore raw

So, one can safely follow XenPVops Wiki instructions until your special announcement . All the most recent pv_ops patches will still go to the same Mercurial Queue.

Boris

--- On Fri, 2/13/09, Jeremy Fitzhardinge <[email protected]> wrote:
From: Jeremy Fitzhardinge <[email protected]>
Subject: Re: [Xen-devel] Xen/pv_ops features/patches for 2.6.29? (updating wiki)
To: [email protected]
Cc: [email protected]
Date: Friday, February 13, 2009, 1:28 PM

Quoted 2 lines · Boris Derzhavets

Jeremy Fitzhardinge wrote on 02/10/09 :-
I'm in the middle of migrating it all to git, still planning to get

at least basic dom0 support into the next merge window. And failing that, it should be easier for people to fetch a git tree than piece things together as they have to now.

Quoted 3 lines

It sounds for me like stable 2.6.29 will already have basic Dom0 support,

The next merge window is 2.6.30.

J

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw
Quoted 3 lines · Boris Derzhavets

So, one can safely follow XenPVops Wiki instructions until your special announcement . All the most recent pv_ops patches will still go to the same Mercurial Queue.

I'll update the wiki with instructions for using the git version shortly.

J

#6 lore raw
In reply to Jeremy Fitzhardinge
Quoted 7 lines · Jeremy Fitzhardinge
Quoted 6 lines · Boris Derzhavets

Jeremy Fitzhardinge wrote on 02/10/09 :-
I'm in the middle of migrating it all to git, still planning to
get at least basic dom0 support into the next merge window. And failing that, it should be easier for people to fetch a git tree than piece things together as they have to now.

Quoted 6 lines
Quoted 3 lines

It sounds for me like stable 2.6.29 will already have basic Dom0
support,

The next merge window is 2.6.30.

J

I noticed that the changes like

        if (xen_initial_domain())
                ...

For example,
static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg)

{
        struct io_apic __iomem *io_apic;

        if (xen_initial_domain())
                return xen_io_apic_read(apic, reg);

        io_apic = io_apic_base(apic);
        writel(reg, &io_apic->index);
        return readl(&io_apic->data);
}

Do you think those need to be wrapped by pv_ops? Probably it's better to replace such functions (e.g. io_apic_read/write) with Xen-specific ones, rather than adding hooks.

             .

Jun Nakajima | Intel Open Source Technology Center

#7 lore raw
Quoted 18 lines · Jun

I noticed that the changes like

        if (xen_initial_domain())
                ...

For example,
static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg)

{
        struct io_apic __iomem *io_apic;

        if (xen_initial_domain())
                return xen_io_apic_read(apic, reg);

        io_apic = io_apic_base(apic);
        writel(reg, &io_apic->index);
        return readl(&io_apic->data);
}
Quoted 2 lines

Do you think those need to be wrapped by pv_ops? Probably it's better to replace such functions (e.g. io_apic_read/write) with Xen-specific ones, rather than adding hooks.

That's been a point of contention. Originally I had some io_apic_ops to do that, but I got pushback. The current patch is more to make a point than something I'd expect to be upstreamed (but who knows?). It isn't actually too bad this way, because xen_initial_domain() compiles down to a constant 0 if CONFIG_XEN_DOM0 is disabled, and its just a test of a variable if its enabled.

J