Skip to contentSkip to conversation

newer dom0 kernel

DISCUSSION James Harper 6 participants 24 messages Sep 22, 2009 – Sep 24, 2009

lore
Share & tools
lore
#0 lore raw

Some weeks (months?) back I think I remember discussion about starting to focus on a newer Linux kernel for dom0, and about a hg tree for it, but now I can't find the discussion. Is there a hg tree for this yet or did I imagine the whole thing?

Thanks

James

#1 lore raw
Quoted 5 lines · James Harper

Some weeks (months?) back I think I remember discussion about starting to focus on a newer Linux kernel for dom0, and about a hg tree for it, but now I can't find the discussion. Is there a hg tree for this yet or did I imagine the whole thing?

xen-unstable switched to using pv_ops dom0 kernel (git tree).

Or did you mean the talks about community supported xenlinux forward-port tree, based on the novell/opensuse patches?

-- Pasi

#2 lore raw
Quoted 7 lines · On Tuesday 22 September 2009 14:10:09 Pasi Kärkkäinen wrote:
Quoted 4 lines · James Harper

Some weeks (months?) back I think I remember discussion about starting to focus on a newer Linux kernel for dom0, and about a hg tree for it, but now I can't find the discussion. Is there a hg tree for this yet or did I imagine the whole thing?

xen-unstable switched to using pv_ops dom0 kernel (git tree).

From which version will the mainstream kernel have dom0 support? Every time I check it only has domU support.

Thanks,

Joost

#3 lore raw
Quoted 7 lines · J. Roeleveld
Quoted 6 lines · On Tuesday 22 September 2009 14:10:09 Pasi Kärkkäinen wrote:
Quoted 4 lines · James Harper

Some weeks (months?) back I think I remember discussion about starting to focus on a newer Linux kernel for dom0, and about a hg tree for it, but now I can't find the discussion. Is there a hg tree for this yet or did I imagine the whole thing?

Quoted 5 lines
Quoted 1 line

xen-unstable switched to using pv_ops dom0 kernel (git tree).

From which version will the mainstream kernel have dom0 support? Every time I check it only has domU support.

Well, pv_ops based dom0 patches are still under development to get them less intrusive and acceptable to upstream Linux kernel.

If you want to help feel free to contribute. Just a couple of days ago Jeremy announced the new xen/master tree, which people should test, and hopefully send patches against.

This is the work that will be sent for upstream inclusion later.

-- Pasi

#4 lore raw

If I run: hg clone http://xenbits.xensource.com/xen-unstable.hg I'll get the most recent work? with the latest pvops dom0? Linux 2.6.31? 2009/9/22 Pasi Kärkkäinen <[email protected]>

Quoted 26 lines · J. Roeleveld
Quoted 3 lines · On Tuesday 22 September 2009 14:10:09 Pasi Kärkkäinen wrote:
Quoted 2 lines · James Harper
Quoted 1 line

Some weeks (months?) back I think I remember discussion about

starting

Quoted 1 line
Quoted 1 line
Quoted 1 line

to focus on a newer Linux kernel for dom0, and about a hg tree for

it,

Quoted 1 line
Quoted 1 line
Quoted 1 line

but now I can't find the discussion. Is there a hg tree for this yet

or

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

did I imagine the whole thing?

xen-unstable switched to using pv_ops dom0 kernel (git tree).

From which version will the mainstream kernel have dom0 support? Every time I check it only has domU support.

Well, pv_ops based dom0 patches are still under development to get them less intrusive and acceptable to upstream Linux kernel.

If you want to help feel free to contribute. Just a couple of days ago Jeremy announced the new xen/master tree, which people should test, and hopefully send patches against.

This is the work that will be sent for upstream inclusion later.

Quoted 8 lines

-- 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

#6 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Gotcha!

To make use of the latest pv_ops dom0 need I the xen-unstable tree? Or can I use the Xen 3.4.1 / 3.3.2 from xen.org?

Thanks!
Thiago

2009/9/22 Pasi Kärkkäinen <[email protected]>

Quoted 6 lines
Quoted 1 line · Thiago Camargo Martins Cordeiro

If I run: hg clone http://xenbits.xensource.com/xen-unstable.hg I'll

get

Quoted 1 line

the most recent work? with the latest pvops dom0? Linux 2.6.31?

Quoted 9 lines

I'm not sure if xen-unstable.hg points to the latest git tree yet? Keir?

You can always get the latest git dom0 kernel tree based on the instruction here:
http://wiki.xensource.com/xenwiki/XenParavirtOps

-- Pasi

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

#7 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Quoted 4 lines · Thiago Camargo Martins Cordeiro

Gotcha!

To make use of the latest pv_ops dom0 need I the xen-unstable tree? Or can I use the Xen 3.4.1 / 3.3.2 from xen.org <http://xen.org>?

There's no close tie between dom0 and Xen itself; it should work with any fairly recent version of Xen (and if it doesn't that's interesting information).

J

#8 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Quoted 10 lines · Jeremy Fitzhardinge
Quoted 4 lines · Thiago Camargo Martins Cordeiro

Gotcha!

To make use of the latest pv_ops dom0 need I the xen-unstable tree? Or can I use the Xen 3.4.1 / 3.3.2 from xen.org <http://xen.org>?

There's no close tie between dom0 and Xen itself; it should work with any fairly recent version of Xen (and if it doesn't that's interesting information).

Works for me with Xen 3.4.1 hypervisor.

Earlier I used it with Xen 3.3.1.

-- Pasi

#9 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Quoted 7 lines · Pasi Kärkkäinen
Quoted 6 lines · Jeremy Fitzhardinge
Quoted 4 lines · Thiago Camargo Martins Cordeiro

Gotcha!

To make use of the latest pv_ops dom0 need I the xen-unstable tree? Or can I use the Xen 3.4.1 / 3.3.2 from xen.org <http://xen.org>?

Quoted 9 lines
Quoted 4 lines

There's no close tie between dom0 and Xen itself; it should work with any fairly recent version of Xen (and if it doesn't that's interesting information).

Works for me with Xen 3.4.1 hypervisor.

Earlier I used it with Xen 3.3.1.

.. but I forgot to mention that 3.3.1 needs some extra (backported) patches.

So Xen 3.4.x or newer is a safe choise.

See: http://wiki.xensource.com/xenwiki/XenParavirtOps

-- Pasi

#10 lore raw

RE: newer dom0 kernel / xen-unstable git kernel tree

Quoted 5 lines

So Xen 3.4.x or newer is a safe choise.

See: http://wiki.xensource.com/xenwiki/XenParavirtOps

Following instructions there:

To check out a working tree, use:

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
$ cd linux-2.6-xen
$ git checkout origin/xen/master -b xen/master

The last line says "fatal: A branch named 'xen/master' already exists."

Is this a problem? I think the wiki should at least mention it...

Thanks

James

#11 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Quoted 10 lines · James Harper
Quoted 5 lines

So Xen 3.4.x or newer is a safe choise.

See: http://wiki.xensource.com/xenwiki/XenParavirtOps

Following instructions there:

To check out a working tree, use:

Quoted 8 lines
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
$ cd linux-2.6-xen
$ git checkout origin/xen/master -b xen/master

The last line says "fatal: A branch named 'xen/master' already exists."

Is this a problem? I think the wiki should at least mention it...

Actually I removed that 'git checkout origin/xen/master -b xen/master' from the Wiki page yesterday..

It seems it's not needed anymore.

-- Pasi

#12 lore raw

RE: newer dom0 kernel / xen-unstable git kernel tree

Quoted 15 lines
Quoted 9 lines
Quoted 3 lines

See: http://wiki.xensource.com/xenwiki/XenParavirtOps

Following instructions there:

To check out a working tree, use:

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git

linux-2.6-xen

Quoted 5 lines
$ cd linux-2.6-xen
$ git checkout origin/xen/master -b xen/master

The last line says "fatal: A branch named 'xen/master' already exists."

Quoted 8 lines
Quoted 2 lines

Is this a problem? I think the wiki should at least mention it...

Actually I removed that 'git checkout origin/xen/master -b xen/master' from the Wiki page yesterday..

It seems it's not needed anymore.

Hehe. I had the page open in my browser since yesterday and have only just had time now to go through and do the checkout. Guess I should have hit refresh :)

James

#14 lore raw

RE: newer dom0 kernel / xen-unstable git kernel tree

In reply to Pasi Kärkkäinen
Quoted 26 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Pasi Kärkkäinen
Sent: Wednesday, 23 September 2009 16:58
To: Jeremy Fitzhardinge
Cc: J. Roeleveld; [email protected]; Thiago Camargo Martins Cordeiro; [email protected]
Subject: Re: [Xen-devel] newer dom0 kernel / xen-unstable git kernel tree

Quoted 14 lines · Pasi Kärkkäinen
Quoted 10 lines · Jeremy Fitzhardinge
Quoted 4 lines · Thiago Camargo Martins Cordeiro

Gotcha!

To make use of the latest pv_ops dom0 need I the xen-unstable tree? Or can I use the Xen 3.4.1 / 3.3.2 from xen.org <http://xen.org>?

There's no close tie between dom0 and Xen itself; it should work with any fairly recent version of Xen (and if it doesn't that's interesting information).

Works for me with Xen 3.4.1 hypervisor.

Quoted 9 lines
Quoted 2 lines

Earlier I used it with Xen 3.3.1.

.. but I forgot to mention that 3.3.1 needs some extra (backported) patches.

So Xen 3.4.x or newer is a safe choise.

See: http://wiki.xensource.com/xenwiki/XenParavirtOps

drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x50aba): undefined reference to acpi_processor_get_performance_info' drivers/built-in.o: In function processor_cntl_xen_prepare':
(.text+0x50ad9): undefined reference to acpi_processor_get_psd' drivers/built-in.o: In function xenfb_init':
xen-fbfront.c:(.init.text+0xd62): undefined reference to __xenbus_register_frontend' drivers/built-in.o: In function xenkbd_init':
xen-kbdfront.c:(.init.text+0x7b48): undefined reference to `__xenbus_register_frontend'
make: *** [.tmp_vmlinux1] Error 1

Is there a .config file that is known to work?

James

#15 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Quoted 46 lines · James Harper
Quoted 26 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Pasi Kärkkäinen
Sent: Wednesday, 23 September 2009 16:58
To: Jeremy Fitzhardinge
Cc: J. Roeleveld; [email protected]; Thiago Camargo Martins Cordeiro; [email protected]
Subject: Re: [Xen-devel] newer dom0 kernel / xen-unstable git kernel tree

Quoted 14 lines · Pasi Kärkkäinen
Quoted 10 lines · Jeremy Fitzhardinge
Quoted 4 lines · Thiago Camargo Martins Cordeiro

Gotcha!

To make use of the latest pv_ops dom0 need I the xen-unstable tree? Or can I use the Xen 3.4.1 / 3.3.2 from xen.org <http://xen.org>?

There's no close tie between dom0 and Xen itself; it should work with any fairly recent version of Xen (and if it doesn't that's interesting information).

Works for me with Xen 3.4.1 hypervisor.

Quoted 9 lines
Quoted 2 lines

Earlier I used it with Xen 3.3.1.

.. but I forgot to mention that 3.3.1 needs some extra (backported) patches.

So Xen 3.4.x or newer is a safe choise.

See: http://wiki.xensource.com/xenwiki/XenParavirtOps

drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x50aba): undefined reference to acpi_processor_get_performance_info' drivers/built-in.o: In function processor_cntl_xen_prepare':
(.text+0x50ad9): undefined reference to acpi_processor_get_psd' drivers/built-in.o: In function xenfb_init':
xen-fbfront.c:(.init.text+0xd62): undefined reference to __xenbus_register_frontend' drivers/built-in.o: In function xenkbd_init':
xen-kbdfront.c:(.init.text+0x7b48): undefined reference to `__xenbus_register_frontend'
make: *** [.tmp_vmlinux1] Error 1

Quoted 2 lines

Is there a .config file that is known to work?

Here's my (working) .config for 2.6.31-rc8:
http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.31-rc8-rebase-master-no-highpte

Sorry I don't have the 2.6.31-final .config online atm.

That's for 32bit PAE. It's originally based on some 2.6.29 fedora kernel .config, and changed many times pretty randomly after that.. good luck :)

You could also grab http://fedorapeople.org/~myoung/dom0/ kernel and extract the .config from them..

-- Pasi

#16 lore raw

RE: newer dom0 kernel / xen-unstable git kernel tree

Quoted 6 lines
Quoted 3 lines

drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x50aba): undefined reference to

`acpi_processor_get_performance_info'

Quoted 2 lines

drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x50ad9): undefined reference to `acpi_processor_get_psd'

This was caused by CONFIG_ACPI_PROCESSOR=m instead of CONFIG_ACPI_PROCESSOR=y

I started my .config from the Debian 2.6.26 kernel, which likes pretty much everything as modules.

Are you interested in hearing about these sorts of problems?

James

#17 lore raw

RE: newer dom0 kernel / xen-unstable git kernel tree

In reply to Pasi Kärkkäinen
Quoted 8 lines
Quoted 2 lines

drivers/built-in.o: In function `xenfb_init':
xen-fbfront.c:(.init.text+0xd62): undefined reference to

`__xenbus_register_frontend'

Quoted 2 lines

drivers/built-in.o: In function `xenkbd_init':
xen-kbdfront.c:(.init.text+0x7b48): undefined reference to

`__xenbus_register_frontend'

Quoted 2 lines

make: *** [.tmp_vmlinux1] Error 1

if CONFIG_XEN_BLKDEV_FRONTEND=m and CONFIG_XEN_NETDEV_FRONTEND=m then it seems to force CONFIG_XEN_XENBUS_FRONTEND=m, which is incompatible with xenfb and xenkbd being built into the kernel...

James

#18 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Quoted 2 lines · James Harper

if CONFIG_XEN_BLKDEV_FRONTEND=m and CONFIG_XEN_NETDEV_FRONTEND=m then it seems to force CONFIG_XEN_XENBUS_FRONTEND=m, which is incompatible with xenfb and xenkbd being built into the kernel...

Yeah, that config stuff is a mess ATM, and needs a bit of love and close attention. Again, non-modular is the quick fix.

J

#19 lore raw

RE: newer dom0 kernel / xen-unstable git kernel tree

In reply to Pasi Kärkkäinen
Quoted 15 lines
Quoted 2 lines

drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x50aba): undefined reference to

`acpi_processor_get_performance_info'

Quoted 4 lines

drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x50ad9): undefined reference to acpi_processor_get_psd' drivers/built-in.o: In function xenfb_init':
xen-fbfront.c:(.init.text+0xd62): undefined reference to

`__xenbus_register_frontend'

Quoted 2 lines

drivers/built-in.o: In function `xenkbd_init':
xen-kbdfront.c:(.init.text+0x7b48): undefined reference to

`__xenbus_register_frontend'

Quoted 4 lines

make: *** [.tmp_vmlinux1] Error 1

Is there a .config file that is known to work?

As per previous emails I fixed up those problems with config changes (mostly incompatibilities between things compiled into the kernel depending on things compiled as modules) and tested it in a DomU, which worked, and then in Dom0, which also worked. I needed to mount xenfs on /proc/xen but other than that everything "just worked".

Thanks

James

#20 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

In reply to James Harper
Quoted 10 lines · James Harper

drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x50aba): undefined reference to acpi_processor_get_performance_info' drivers/built-in.o: In function processor_cntl_xen_prepare':
(.text+0x50ad9): undefined reference to acpi_processor_get_psd' drivers/built-in.o: In function xenfb_init':
xen-fbfront.c:(.init.text+0xd62): undefined reference to __xenbus_register_frontend' drivers/built-in.o: In function xenkbd_init':
xen-kbdfront.c:(.init.text+0x7b48): undefined reference to `__xenbus_register_frontend'
make: *** [.tmp_vmlinux1] Error 1

Quoted 2 lines

Is there a .config file that is known to work?

There's a known problem with making ACPI modular. Compiling them builting (=y) should work.

J

#21 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

In reply to Pasi Kärkkäinen
Quoted 2 lines · Pasi Kärkkäinen

.. but I forgot to mention that 3.3.1 needs some extra (backported) patches.

They're for the toolstack rather than Xen itself, right?

J

#22 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Quoted 6 lines · Jeremy Fitzhardinge
Quoted 2 lines · Pasi Kärkkäinen

.. but I forgot to mention that 3.3.1 needs some extra (backported) patches.

They're for the toolstack rather than Xen itself, right?

I think stock Xen 3.3.1 is missing Xen hypervisor dom0 kernel bzImage loader, and the tools are missing sysfs memory ballooning stuff..

-- Pasi

#23 lore raw

Re: newer dom0 kernel / xen-unstable git kernel tree

Quoted 1 line · Pasi Kärkkäinen

I think stock Xen 3.3.1 is missing Xen hypervisor dom0 kernel bzImage loader,

OK. That can be worked around, but it is a bit awkward.

Quoted 3 lines

and
the tools are missing sysfs memory ballooning stuff..

Right. Also the xentop change.

J