RfC: xenner (aka xen emulation) bits.
cover RfC: xenner (aka xen emulation) bits.
Hi folks,
These are the very first bits of the xen emulation, codenamed xenner. It brings an xen event channel implementation for qemu. It isn't very useful alone. This post is just for an early review of the way I'm planing to implement this.
The first patch implements the event channels and the switch between libxenctl / qemu internal using function pointers. The second patch makes the backends go through the function pointers.
Comments are welcome.
cheers,
Gerd
PATCH 1/2 xenner: add event channel implementation.
This adds a xen event channel implementation to qemu, intented to be used by xenner (aka xen emulation).
The patch also adds a XenEvtOps struct with function pointers for the xc_evtchn_* family, which is used to switch between libxenctrl and the qemu implementation at runtime. By default libxenctrl is used.
--- Makefile.target | 1 + hw/xen_interfaces.h | 27 +++ hw/xen_machine_pv.c | 2 + hw/xenner_libxc_evtchn.c | 396 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 426 insertions(+), 0 deletions(-) create mode 100644 hw/xen_interfaces.h create mode 100644 hw/xenner_libxc_evtchn.c
Makefile.target +1 -0
@@ -521,6 +521,7 @@ endif # xen backend driver support XEN_OBJS := xen_machine_pv.o xen_backend.o xen_devconfig.o xen_domainbuild.o XEN_OBJS += xen_console.o xen_framebuffer.o xen_disk.o xen_nic.o +XEN_OBJS += xenner_libxc_evtchn.o ifeq ($(CONFIG_XEN), yes) OBJS += $(XEN_OBJS) LIBS += $(XEN_LIBS)
hw/xen_interfaces.h new file +27 -0
@@ -0,0 +1,27 @@ +#ifndef QEMU_XEN_INTERFACES_H +#define QEMU_XEN_INTERFACES_H 1 + +#include "xen_common.h" + +/* ------------------------------------------------------------- */ +/* xen event channel interface */ + +struct XenEvtOps { +int (*open)(void ); +int (*domid)(int xce_handle,int domid); +int (*close)(int xce_handle); +int (*fd)(int xce_handle); +int (*notify)(int xce_handle,evtchn_port_t port); +evtchn_port_or_error_t (*bind_unbound_port)(int xce_handle,int domid); +evtchn_port_or_error_t (*bind_interdomain)(int xce_handle,int domid, +evtchn_port_t remote_port); +evtchn_port_or_error_t (*bind_virq)(int xce_handle,unsigned int virq); +int (*unbind)(int xce_handle,evtchn_port_t port); +evtchn_port_or_error_t (*pending)(int xce_handle); +int (*unmask)(int xce_handle,evtchn_port_t port); +}; +extern struct XenEvtOps xc_evtchn; + +void xenner_evtchn_init (void ); + +#endif /* QEMU_XEN_INTERFACES_H */
hw/xen_machine_pv.c +2 -0
@@ -26,6 +26,7 @@#include "boards.h" #include "xen_backend.h" +#include "xen_interfaces.h" #include "xen_domainbuild.h" /* -------------------------------------------------------------------- */
@@ -80,6 +81,7 @@ static int xen_init(void)if (!xen_detect ()) {fprintf (stderr,"%s: emulating Xen\n" , __FUNCTION__); xen_emulate =1 ; +xenner_evtchn_init (); }if (-1 ==xen_be_init ()) {
hw/xenner_libxc_evtchn.c new file +396 -0
396 lines not on this page · raw message
Signature · 1 line
1.5.5.1
Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 7 lines · Gerd Hoffmann
This adds a xen event channel implementation to qemu, intented to be used by xenner (aka xen emulation).
The patch also adds a XenEvtOps struct with function pointers for the xc_evtchn_* family, which is used to switch between libxenctrl and the qemu implementation at runtime. By default libxenctrl is used.
I suppose the QEMU implementation is to eventually eliminate the need for libxc? Do you also plan on doing a XenStore implementation within QEMU?
Quoted 14 lines
--- Makefile.target | 1 + hw/xen_interfaces.h | 27 +++ hw/xen_machine_pv.c | 2 + hw/xenner_libxc_evtchn.c | 396 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 426 insertions(+), 0 deletions(-) create mode 100644 hw/xen_interfaces.h create mode 100644 hw/xenner_libxc_evtchn.cMakefile.target +0
-0
Makefile.target endif · line 525
Quoted 5 lines
Makefile.target +1
-0@@ -521,6 +521,7 @@ endif # xen backend driver support XEN_OBJS := xen_machine_pv.o xen_backend.o xen_devconfig.o xen_domainbuild.o XEN_OBJS += xen_console.o xen_framebuffer.o xen_disk.o xen_nic.o +XEN_OBJS += xenner_libxc_evtchn.o
Historically, we didn't have directories in QEMU because we used CVS and directories are a nightmare. With the shear number of files being added for Xen, it probably makes sense to stick them all in a directory.
hw/xen_interfaces.h line 2
Quoted 12 lines
Makefile.target +0
-0ifeq ($(CONFIG_XEN), yes) OBJS += $(XEN_OBJS)LIBS += $(XEN_LIBS)hw/xen_interfaces.h new file +2
-0@@ -0,0 +1,27 @@ +#ifndef QEMU_XEN_INTERFACES_H +#define QEMU_XEN_INTERFACES_H 1
Minor nit, make sure to have copyrights in all of your files.
hw/xen_interfaces.h line 7
Quoted 6 lines
hw/xen_interfaces.h new file +5
-0+static void bind_port_peer (struct port *p,int domid,int port) +{ +struct domain *domain; +struct port *o; +char *msg ="ok" ;
Should be const char *.
hw/xen_interfaces.h line 19
Quoted 13 lines
hw/xen_interfaces.h new file +12
-0+ domain =get_domain (domid); + o = domain->p+port; +if (!o->priv) { + msg ="peer not allocated" ; + }else if (o->peer) { + msg ="peer already bound" ; + }else if (p->peer) { + msg ="port already bound" ; + }else { + o->peer = p; + p->peer = o; + }
Watch the whitespace (you've got tabs all over).
Quoted 19 lines
hw/xen_interfaces.h new file +18
-0+if (debug) +fprintf (stderr,"xen ev:%3d: bind port %d domain %d <-> port %d domain %d : %s\n" , + p->priv->fd_read, + p->port, p->priv->domain->domid, + port, domid, msg); +put_domain (domain); +} + +static void unbind_port (struct port *p) +{ +struct port *o; + + o = p->peer; +if (o) { +if (debug) + fprintf(stderr,"xen ev:%3d: unbind port %d domain %d <-> port %d domain %d\n", + p->priv->fd_read, + p->port, p->priv->domain->domid,
hw/xen_interfaces.h
Quoted 10 lines
hw/xen_interfaces.h new file +10
-0+ o->port, o->priv->domain->domid); + o->peer =NULL ; + p->peer =NULL ; + } +} + +static void notify_send_peer (struct port *peer) +{ +uint32_t evtchn = peer->port; +write (peer->priv->fd_write, &evtchn,sizeof (evtchn));
Should be unix_write and should deal with errors.
Regards,
Anthony Liguori
Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 7 lines · Anthony Liguori
Quoted 3 lines · Gerd Hoffmann
The patch also adds a XenEvtOps struct with function pointers for the xc_evtchn_* family, which is used to switch between libxenctrl and the qemu implementation at runtime. By default libxenctrl is used.
I suppose the QEMU implementation is to eventually eliminate the need for libxc?
Yes, for xen emulation (aka xenner).
When running on Xen libxc is still needed of course.
Quoted 1 line
Do you also plan on doing a XenStore implementation within QEMU?
Yes.
Quoted 10 lines
Quoted 6 lines
(quoted diff) +0
-0@@ -521,6 +521,7 @@ endif # xen backend driver support XEN_OBJS := xen_machine_pv.o xen_backend.o xen_devconfig.oxen_domainbuild.o
XEN_OBJS+= xen_console.o xen_framebuffer.o xen_disk.o xen_nic.o
+XEN_OBJS += xenner_libxc_evtchn.oHistorically, we didn't have directories in QEMU because we used CVS and directories are a nightmare. With the shear number of files being added for Xen, it probably makes sense to stick them all in a directory.
Hmm, the xen guys vetoed file renames, so I don't feel like sticking stuff used by xen somewhere else. For the emulation bits aka xenner*.[ch] it should be no problem though. New xenner/ toplevel directory?
Quoted 2 lines
Minor nit, make sure to have copyrights in all of your files. [ ... more review comments ... ]
Thanks, I'll fix it up.
cheers,
Gerd
Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Hi,
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
XEN_OBJS+= xen_console.o xen_framebuffer.o xen_disk.o xen_nic.o
+XEN_OBJS += xenner_libxc_evtchn.oHistorically, we didn't have directories in QEMU because we used CVS and directories are a nightmare. With the shear number of files being added for Xen, it probably makes sense to stick them all in a directory.
Hmm, the xen guys vetoed file renames, so I don't feel like sticking stuff used by xen somewhere else. For the emulation bits aka xenner*.[ch] it should be no problem though. New xenner/ toplevel directory?
Comments on this one?
Another idea: Do the initial merge in hw/, and later on, after the qemu-xen tree catched up, move all xen (and xen emulation) bits to another directory. That would keep the scm revision history intact for the Xen guys.
I also think we need to organize the source -- especially the header files -- a bit better if we start to separate the code into more subdirectories. And I'd prefer to have some agreement on how the source tree should look like before starting to shuffle around files, so I have to do it only once ...
cheers,
Gerd
Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 9 lines · Gerd Hoffmann
Hi,
Comments on this one?
Another idea: Do the initial merge in hw/, and later on, after the qemu-xen tree catched up, move all xen (and xen emulation) bits to another directory. That would keep the scm revision history intact for the Xen guys.
Quoted 6 lines
I also think we need to organize the source -- especially the header files -- a bit better if we start to separate the code into more subdirectories. And I'd prefer to have some agreement on how the source tree should look like before starting to shuffle around files, so I have to do it only once ...
Let's focus on merging and then once it's merged, we can reorganize files. I still haven't seen any comments from the Xen guys wrt this patch series. Has there been discussion on xen-devel that I missed?
Regards,
Anthony Liguori
Quoted 3 lines
cheers,
Gerd
Re: [Xen-devel] Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 12 lines · Anthony Liguori
Quoted 11 lines
Another idea: Do the initial merge in hw/, and later on, after the qemu-xen tree catched up, move all xen (and xen emulation) bits to another directory. That would keep the scm revision history intact for the Xen guys.
I also think we need to organize the source -- especially the header files -- a bit better if we start to separate the code into more subdirectories. And I'd prefer to have some agreement on how the source tree should look like before starting to shuffle around files, so I have to do it only once ...
Quoted 3 lines
Let's focus on merging and then once it's merged, we can reorganize files. I still haven't seen any comments from the Xen guys wrt this patch series. Has there been discussion on xen-devel that I missed?
With regard to this Xenner patch series, I don't think we have a strong opinion. The changes are not particularly relevant to us. As long as the orthogonal qemu-on-xen modes that we *do* care about can coexist happily alongside, we'll be happy.
-- Keir
Re: [Xen-devel] Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Hi Keir,
Quoted 7 lines · Keir Fraser
On 25/8/08 15:15, "Anthony Liguori" <[email protected]> wrote:
With regard to this Xenner patch series, I don't think we have a strong opinion. The changes are not particularly relevant to us. As long as the orthogonal qemu-on-xen modes that we *do* care about can coexist happily alongside, we'll be happy.
Sorry, I was actually referring to the other qemu-dm PV domain support patch series. That's the one that I'm looking for input from ya'll on. Now that 3.3.0 has been released, it should be possible for you guys to consider merging the patches into qemu-dm, right?
Regards,
Anthony Liguori
Quoted 4 lines
-- Keir
Re: [Xen-devel] Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 8 lines · Anthony Liguori
Quoted 6 lines · Keir Fraser
On 25/8/08 15:15, "Anthony Liguori" <[email protected]> wrote:
With regard to this Xenner patch series, I don't think we have a strong opinion. The changes are not particularly relevant to us. As long as the orthogonal qemu-on-xen modes that we *do* care about can coexist happily alongside, we'll be happy.
Quoted 4 lines
Sorry, I was actually referring to the other qemu-dm PV domain support patch series. That's the one that I'm looking for input from ya'll on. Now that 3.3.0 has been released, it should be possible for you guys to consider merging the patches into qemu-dm, right?
We'll certainly be sync'ing with upstream qemu now, yes. I'm not sure what Ian Jackson's plans are with regard to Gerd's patches. I think he was hoping that Gerd would post patches to xen-devel against his tree (being an existing and actively maintained and tested Xen patchset) and then we would from there submit to upstream. Afaics there's some workflow or patchflow to be worked out here: I can't see why we would take Gerd's patches wholesale when we have a working patchset already. It's a bank holiday here in the UK today, but I expect Ian will give you his opinion tomorrow!
-- Keir
Re: [Xen-devel] Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 5 lines · Keir Fraser
We'll certainly be sync'ing with upstream qemu now, yes. I'm not sure what Ian Jackson's plans are with regard to Gerd's patches. I think he was hoping that Gerd would post patches to xen-devel against his tree (being an existing and actively maintained and tested Xen patchset) and then we would from there submit to upstream.
There are two patchsets out there:
#1 for upstream qemu:
http://kraxel.fedorapeople.org/patches/qemu-upstream/
#2 for qemu-xen:
http://kraxel.fedorapeople.org/patches/qemu-xen/
The patchsets are largely identical, thats why I don't post both. I usually post only the upstream version and include a pointer to the qemu-xen patches in the intro text for the patchset.
Differences come (a) from the fact that qemu-xen is old (these should go away once Ian synced with upstream) and (b) the slightly different ordering to make the qemu-xen patchset bisection-friendly.
Quoted 2 lines
Afaics there's some workflow or patchflow to
be worked out here:
Workflow could look like this:
(1) Ian merges upstream into qemu-xen.
(2) I'll rebase my patches to the resulting tree.
(3) Merge both patchsets, into the trees.
That should result in almost identical hw/xen* files in both trees, so we don't end up with a big mess when Ian merges again.
Quoted 2 lines
I can't see why we would take Gerd's patches wholesale when we have a working patchset already.
Which patchset you are refering to? As far I know Ian & Samuel are focusing on getting the changes to generic qemu code upstream (such as serial and ide fixes which ran over the qemu-devel list already), not on the xen support bits.
cheers,
Gerd
Re: [Xen-devel] Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 11 lines · Gerd Hoffmann
Quoted 2 lines
Afaics there's some workflow or patchflow to
be worked out here:Workflow could look like this:
(1) Ian merges upstream into qemu-xen.
(2) I'll rebase my patches to the resulting tree.
(3) Merge both patchsets, into the trees.That should result in almost identical hw/xen* files in both trees, so we don't end up with a big mess when Ian merges again.
That sounds like a plausible avenue. I don't want to speak for Ian though:
he'll be the one doing most of the work on the qemu-xen side.
Quoted 7 lines
Quoted 2 lines
I can't see why we would take Gerd's patches wholesale when we have a working patchset already.
Which patchset you are refering to? As far I know Ian & Samuel are focusing on getting the changes to generic qemu code upstream (such as serial and ide fixes which ran over the qemu-devel list already), not on the xen support bits.
Sorry, by patchset I meant qemu-xen. Bad confusing terminology on my part.
-- Keir
Re: [Xen-devel] Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
In reply to Keir FraserQuoted 15 lines · Keir Fraser
Quoted 8 lines · Anthony Liguori
Quoted 6 lines · Keir Fraser
On 25/8/08 15:15, "Anthony Liguori" <[email protected]> wrote:
With regard to this Xenner patch series, I don't think we have a strong opinion. The changes are not particularly relevant to us. As long as the orthogonal qemu-on-xen modes that we *do* care about can coexist happily alongside, we'll be happy.
Quoted 4 lines
Sorry, I was actually referring to the other qemu-dm PV domain support patch series. That's the one that I'm looking for input from ya'll on. Now that 3.3.0 has been released, it should be possible for you guys to consider merging the patches into qemu-dm, right?
Quoted 7 lines
We'll certainly be sync'ing with upstream qemu now, yes. I'm not sure what Ian Jackson's plans are with regard to Gerd's patches. I think he was hoping that Gerd would post patches to xen-devel against his tree (being an existing and actively maintained and tested Xen patchset) and then we would from there submit to upstream. Afaics there's some workflow or patchflow to be worked out here: I can't see why we would take Gerd's patches wholesale when we have a working patchset already.
The core benefit of this new patchset is increased featureset. The current Xen fork of QEMU only works for running Xen VMs ontop of the Xen hypervisor, when invoked by XenD. The new patchset should support this existing use case, but in addition allow running of Xen VMs ontop of the Xen hypervisor, *without* needing XenD, and also allow running of Xen VMs ontop of KVM using Xenner. Supporting all three of those use cases with a codebase that is in mainline QEMU would be a significant improvement over the existing patchset both in terms of features & reduced support burden for people developing and distributing Xen/QEMU.
Daniel
Signature · 4 lines
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
PATCH 2/2 xenner: use evtchn function pointers in the backends.
In reply to Gerd Hoffmann--- hw/xen_backend.c | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-)
hw/xen_backend.c +14 -13
@@ -39,6 +39,7 @@#include "hw.h" #include "qemu-char.h" #include "xen_backend.h" +#include "xen_interfaces.h" /* ------------------------------------------------------------- */
@@ -200,19 +201,19 @@ static struct XenDevice *xen_be_get_xendev(char *type, int dom, int dev, xendev->debug = debug; xendev->local_port =-1 ; - xendev->evtchndev =xc_evtchn_open (); + xendev->evtchndev = xc_evtchn.open ();if (xendev->evtchndev <0 ) {fprintf (stderr,"can't open evtchn device\n" );qemu_free (xendev);return NULL ; } -fcntl (xc_evtchn_fd (xendev->evtchndev),F_SETFD ,FD_CLOEXEC ); +fcntl (xc_evtchn.fd (xendev->evtchndev),F_SETFD ,FD_CLOEXEC );if (ops->flags &DEVOPS_FLAG_NEED_GNTDEV ) { xendev->gnttabdev =xc_gnttab_open ();if (xendev->gnttabdev <0 ) {fprintf (stderr,"can't open gnttab device\n" ); -xc_evtchn_close (xendev->evtchndev); + xc_evtchn.close (xendev->evtchndev);qemu_free (xendev);return NULL ; }
@@ -260,7 +261,7 @@ static struct XenDevice *xen_be_del_xendev(int dom, int dev) }if (xendev->evtchndev >=0 ) -xc_evtchn_close (xendev->evtchndev); + xc_evtchn.close (xendev->evtchndev);if (xendev->gnttabdev >=0 )xc_gnttab_close (xendev->gnttabdev);
@@ -595,13 +596,13 @@ static void xen_be_evtchn_event(void *opaque)struct XenDevice *xendev = opaque;evtchn_port_t port; - port =xc_evtchn_pending (xendev->evtchndev); + port = xc_evtchn.pending (xendev->evtchndev);if (port != xendev->local_port) { -xen_be_printf (xendev,0 ,"xc_evtchn_pending returned %d (expected %d)\n" , +xen_be_printf (xendev,0 ,"xc_evtchn.pending returned %d (expected %d)\n" , port, xendev->local_port);return ; } -xc_evtchn_unmask (xendev->evtchndev, port); + xc_evtchn.unmask (xendev->evtchndev, port);if (xendev->ops->event) xendev->ops->event (xendev);
@@ -644,14 +645,14 @@ int xen_be_bind_evtchn(struct XenDevice *xendev) {if (xendev->local_port !=-1 )return 0 ; - xendev->local_port =xc_evtchn_bind_interdomain + xendev->local_port = xc_evtchn.bind_interdomain (xendev->evtchndev, xendev->dom, xendev->remote_port);if (-1 == xendev->local_port) { -xen_be_printf (xendev,0 ,"xc_evtchn_bind_interdomain failed\n" ); +xen_be_printf (xendev,0 ,"xc_evtchn.bind_interdomain failed\n" );return -1 ; }xen_be_printf (xendev,2 ,"bind evtchn port %d\n" , xendev->local_port); -qemu_set_fd_handler (xc_evtchn_fd (xendev->evtchndev), +qemu_set_fd_handler (xc_evtchn.fd (xendev->evtchndev), xen_be_evtchn_event,NULL , xendev);return 0 ; }
@@ -660,15 +661,15 @@ void xen_be_unbind_evtchn(struct XenDevice *xendev) {if (xendev->local_port ==-1 )return ; -qemu_set_fd_handler (xc_evtchn_fd (xendev->evtchndev),NULL ,NULL ,NULL ); -xc_evtchn_unbind (xendev->evtchndev, xendev->local_port); +qemu_set_fd_handler (xc_evtchn.fd (xendev->evtchndev),NULL ,NULL ,NULL ); + xc_evtchn.unbind (xendev->evtchndev, xendev->local_port);xen_be_printf (xendev,2 ,"unbind evtchn port %d\n" , xendev->local_port); xendev->local_port =-1 ; }int xen_be_send_notify (struct XenDevice *xendev) { -return xc_evtchn_notify (xendev->evtchndev, xendev->local_port); +return xc_evtchn.notify (xendev->evtchndev, xendev->local_port); }/*
Signature · 1 line
1.5.5.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Gerd Hoffmann writes ("[Qemu-devel] [PATCH 1/2] xenner: add event channel implementation."):
Quoted 3 lines
The patch also adds a XenEvtOps struct with function pointers for the xc_evtchn_* family, which is used to switch between libxenctrl and the qemu implementation at runtime. By default libxenctrl is used.
I don't understand why it's necessary to switch between these two modes at runtime. That adds a lot of extra boilerplate and indirection code and probably has some tiny performance effect too.
Why not make it a compile-time option ?
Even if the xen qemu becomes nearly identical to upstream, version skew issues with the hypervisor, dom0 kernel, and so on will mean that there will have to be a separate qemu branch for xen just for release management purposes and so on.
Ian.
Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 10 lines · Ian Jackson
Gerd Hoffmann writes ("[Qemu-devel] [PATCH 1/2] xenner: add event channel implementation."):
Quoted 3 lines
The patch also adds a XenEvtOps struct with function pointers for the xc_evtchn_* family, which is used to switch between libxenctrl and the qemu implementation at runtime. By default libxenctrl is used.
I don't understand why it's necessary to switch between these two modes at runtime. That adds a lot of extra boilerplate and indirection code and probably has some tiny performance effect too.
Why not make it a compile-time option ?
IMHO compile time options are a usability nightmare in most cases.
Note that in another mail you've asked for a command line switch for qemu to enable xen emulation mode even when running on xen. That wouldn't work any more if we would make this a compile time option. You would have to go and rebuild qemu first.
Also distrubutions would have to ship two binaries instead of one. And there are already way to much different qemu binaries today. I want to get that number down, not up.
cheers,
Gerd
Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Gerd Hoffmann writes ("Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation."):
Quoted 4 lines
Quoted 1 line · Ian Jackson
Why not make it a compile-time option ?
IMHO compile time options are a usability nightmare in most cases.
They're not a problem if you need different versions in the two cases anyway. That is going to be the case for the foreseeable future. As I explained: there is code in qemu-xen which is essential for operation in the current Xen use model but which upstream don't think suitable; and of course because of interface skew in the Xen world, it is necessary to have a compatible version of qemu.
So an OS installation which is both a Xen/xend dom0 and which also has the ability to run qemu for ordinary emulations, will need two copies of qemu: one for the Xen domUs invoked by xend, and one for command-line invocations.
Quoted 3 lines
Also distrubutions would have to ship two binaries instead of one. And there are already way to much different qemu binaries today. I want to get that number down, not up.
The different binaries are with us for at least the next several years.
Ian.
Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation.
Quoted 7 lines · Ian Jackson
Gerd Hoffmann writes ("Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation."):
Quoted 3 lines
Quoted 1 line · Ian Jackson
Why not make it a compile-time option ?
IMHO compile time options are a usability nightmare in most cases.
They're not a problem if you need different versions in the two cases anyway. That is going to be the case for the foreseeable future.
I'd like to see the very same binary being used some day. I know the day is most likely a few years away, and it wouldn't work with todays Xen versions because XenD will need changes too to make that happen (see monitor vs xenstore discussion for example). But IMHO that is no reason to give up on that right from the start.
cheers,
Gerd