From: Ian Jackson Subject: Re: [Qemu-devel] [PATCH 1/2] xenner: add event channel implementation. Date: Tue, 26 Aug 2008 12:02:45 +0100 Message-ID: <18611.58069.185496.122923@mariner.uk.xensource.com> References: <1219400728-20422-1-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org Gerd Hoffmann writes ("[Qemu-devel] [PATCH 1/2] xenner: add event channel implementation."): > 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.