Received: from eggs.gnu.org ([2001:4830:134:3::10]:55179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0EYi-0000XX-W7 for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:05:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0EYd-0005im-JY for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:05:52 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:34820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0EYd-0005iT-Dp for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:05:47 -0500 Date: Mon, 6 Jan 2014 18:04:55 +0000 From: Stefano Stabellini In-Reply-To: Message-ID: References: <20140106125410.GD3119@zion.uk.xensource.com> <1389014715.19378.8.camel@hamster.uk.xensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: Re: [Qemu-devel] [Xen-devel] Project idea: make QEMU more flexible List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , Wei Liu , Stefano Stabellini , QEMU Developers , "xen-devel@lists.xen.org" , Frediano Ziglio On Mon, 6 Jan 2014, Anthony Liguori wrote: > On Mon, Jan 6, 2014 at 7:57 AM, Stefano Stabellini > wrote: > > On Mon, 6 Jan 2014, Anthony Liguori wrote: > >> On Jan 6, 2014 6:55 AM, "Stefano Stabellini" wrote: > >> > > >> > On Mon, 6 Jan 2014, Anthony Liguori wrote: > >> > > On Jan 6, 2014 6:23 AM, "Peter Maydell" wrote: > >> > > > > >> > > > On 6 January 2014 14:17, Stefano Stabellini > >> > > > wrote: > >> > > > > It doesn't do any emulation so it is not specific to any architecture or > >> > > > > any cpu. > >> > > > > >> > > > You presumably still care about the compiled in values of > >> > > > TARGET_WORDS_BIGENDIAN, TARGET_LONG_SIZE, and so on... > >> > > >> > Actually it only uses XC_PAGE_SIZE and the endianness is the host > >> > endianness. > >> > >> If blkif in QEMU is relying on host endianness thats a bug. > > > > Why? Xen doesn't support a different guest/host endianness. > > For the same reason that the virtio devices do not rely on host endianness. > > It should be possible to use the Xen devices with TCG. It isn't today > simply because the code wasn't structured that way but it could be > refactored to do this. > > >> > > Yup. It's still accel=xen just with no VCPUs. > >> > > >> > Are you talking about introducing accel=xen to Wei's target-null? > >> > I guess that would work OK. > >> > >> We already have accel=xen. I'm echoing Peter's suggestion of having the ability to compile out accel=tcg. > >> > >> > > >> > On the other hand if you are thinking of avoiding the introduction of a > >> > new target-null, how would you make xen_machine_pv.c available to > >> > multiple architectures? > >> > >> Why does qdisk need a full machine? > > > > qdisk is just one device, xen_machine_pv is the machine that initializes > > the backend infrastructure (one of the backends is qdisk). > > It doesn't make sense to use a full-blown machine like pc.c just to > > start few backends, right? > > What prevents xen_machine_pv from being compiled for multiple targets? > If there i386 specific things in it, they surely could be refactored > a bit, no? Not at all, but I thought that at the moment one machine has to be tied to one architecture. If I am wrong, then there is no issue.