Re: [PATCH] xen: core dom0 support

From: Andi Kleen
Date: Sun Mar 01 2009 - 18:51:56 EST


> Yes. A big part of what I'm doing is trying to keep the Xen changes
> self-contained to try and minimize their system-wide impact. Basically
> it comes down to that if you use (mostly existing) kernel APIs in the
> way they're intended to be used, then things just work out for both Xen
> and native cases. The whole point of keeping the kernel modular is so
> that if people implement and use the the interfaces correctly, the

That's a big if. It sounds good in theory, but I in practice
it will be different. Kernel interfaces tend to have hidden assumptions
too that matter and the more special case code is in there the more
additional hidden assumptions will be there too.

> internal details shouldn't matter very much. Often the process of
> adding Xen support has resulted in putting clear, well defined
> interfaces into parts of the kernel where previously things were, well,
> in need of cleaning up.

That's true, but it's still much more complex than before semantically.
>
> >For example things like: doesn't use PAT with Xen or apparently very
> >different routing are somewhat worrying because it means it's a
> >completely different operation modus with Xen that needs to be taken
> >care of later, adding to complexity.
> >
>
> Unless we're planning on dropping support for processes with no or
> broken PAT support, we're always going to have to deal with the non-PAT
> case.

These are all really old hardware[1], no modern 3d chips etc. Xen on the
other hand ..

[1] afaik you have to go back to PPro to get real PAT bugs.

> >Unfortunately it also looks like that Xen the HV does things
> >more and more different from what mainline kernel does so
> >these differences will likely continue to grow over time.
>
> I hope that won't be the case. As part of considering any change to Xen

My impression from looking occasionally at Xen source is like this
at least. It used to be that Xen was basically Linux 2.4 with
some tweaks in many ways, but now it's often completely new code
doing things in very different ways. Basically a real fork diverging
more and more.

That said there's probably no way around merging the Dom0 support too,
but I think it should be clearly said that it has a quite high
long term cost for Linux. Hopefully it's worth it.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/