Skip to content


Linux 2.6.37: first upstream Linux kernel to work as Dom0

by Stefano Stabellini

Linux 2.6.37, released just few days ago, is the first upstream Linux kernel that can boot on Xen as Dom0: Linus pulled my “xen initial domain” patch series on the 28th of October and on the 5th of January the first Linux kernel was released with early Dom0 support!

Dom0 is the first domain started by the Xen hypervisor on boot and until now adding domain 0 support to the Linux kernel has required out of tree patches (note that NetBSD and Solaris have had Dom0 support for a very long time). This means that every Linux distro supporting Xen as virtualization platform has to maintain an additional kernel patch series.

Distro maintainers, worry no more: Dom0 support is upstream! It is now very easy to enable and support Xen in the standard kernel distro images and I hope this will lead to an upsurge in distribution support for Xen. Just enabling CONFIG_XEN in the kernel config of a 2.6.37 Linux kernel allows the very same Linux kernel image to boot on native, on Xen as Dom0, on Xen as normal PV guest and on Xen as PV on HVM guest!

That said, the kernel backends, in particular netback and blkback, are not yet available in the upstream kernel. Therefore a 2.6.37 vanilla kernel can only be used to start VMs on the very latest xen-unstable. In fact xen-unstable contains additional functionalities that allow qemu-xen to offer a userspace fallback for the missing backends. This support will become part of the Xen 4.1 release which is due in the next couple of months.

In the short term the out of tree patch set has been massively reduced. It is expected that the xen.git kernel tree will soon contain the proposed upstreamable versions of the backend drivers. I strongly encourage everyone to pull these and start testing upstream dom0 support!

I want to thank Jeremy Fitzharding, Konrad Rzeszutek Wilk, Ian Campbell and everyone else who was involved for the major contributions and general help that made this possible.


Be Sociable and Share!

Posted in Xen Development.

Tagged with , .


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. Tweets that mention Linux 2.6.37: first upstream Linux kernel to work as Dom0 – blog.xen.org -- Topsy.com linked to this post on January 14, 2011

    [...] This post was mentioned on Twitter by The Xen® Hypervisor, Оверсан-Скалакси. Оверсан-Скалакси said: Теперь поддержка запуска в качестве Xen Dom0 в ядре Linux! http://t.co/OiXGXgi [...]

  2. Linux 3.0 – How did we get initial domain (dom0) support there? – blog.xen.org linked to this post on June 14, 2011

    [...] 2.6.37 was released, the Linux kernel under the Xen hyper-visor booted! It was very limited (no backends, not all [...]

  3. Xen.org 2011 Year in Review – blog.xen.org linked to this post on January 3, 2012

    [...] truly was an amazing year for Xen.org! The key highlights included Dom0 supporting going into mainline Linux kernel, Project Kronos, and renewed focus  Xen for ARM. All three of these projects are examples of [...]

You must be logged in to post a comment.