On 11/01/2010 09:32 PM, Anthony Liguori wrote:

I'm not sure I agree with the goal.  I think where ever possible we
should reuse code with the Xen project when it makes sense.  Reusing
blkback/netback is impossible because we want userspace implementations
and the current implementations are in the kernel.  blktap also doesn't
tie into the QEMU block layer and making it tie into the QEMU block
layer would probably result in more code than it saved.

OTOH, xenstored and xenconsoled have very little direct dependence on
Xen.  I'm not saying that we shouldn't make things Just Work in QEMU, so
if that means spawning xenconsoled/xenstored automagically from QEMU
with special options, that's perfectly fine.

xenstored is 3 times bigger than what Alex submitted, however. The code is much simpler because _this_ xenstore only serves one domain. So it doesn't have to implement permissions, it doesn't have complicated threading to handle multiple instances of libxs accessing the daemon, and so on. Besides the data structures implementing the tree, there's really very little in common, and the xenner code is almost trivial.

The situation is similar for the console. There is only one console to track here. In fact, maybe it's simplest to implement it as a small 8250A driver in the xenner kernel, reading from the serial console at 0x3f8 and writing to the ring buffer and vice versa.

Paolo

Reply via email to