qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 28/40] xenner: libxc emu: evtchn


From: Anthony Liguori
Subject: [Qemu-devel] Re: [PATCH 28/40] xenner: libxc emu: evtchn
Date: Mon, 01 Nov 2010 17:00:13 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10

On 11/01/2010 04:47 PM, Paolo Bonzini wrote:
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.

Okay, so does the same apply for xenstored? Does it make more sense to move that into the xenner kernel?

The big advantage of the xenner kernel is that it runs in guest mode so it's no concern from a security PoV. While xenstored is 3x bigger than Alex's version, it also has had an awful lot more validation from a security point of view. Since this is guest facing code, that's important.

Regards,

Anthony Liguori


Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]