Received: from eggs.gnu.org ([2001:4830:134:3::10]:57609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Xo9-0005iT-3u for qemu-devel@nongnu.org; Tue, 07 Jan 2014 09:39:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0Xo3-0005yL-5A for qemu-devel@nongnu.org; Tue, 07 Jan 2014 09:39:05 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:61392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Xo3-0005yH-0N for qemu-devel@nongnu.org; Tue, 07 Jan 2014 09:38:59 -0500 Date: Tue, 7 Jan 2014 14:38:57 +0000 From: Wei Liu Message-ID: <20140107143857.GI10654@zion.uk.xensource.com> References: <20140106125410.GD3119@zion.uk.xensource.com> <20140106151154.GA10654@zion.uk.xensource.com> <52CC0614.5050402@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <52CC0614.5050402@redhat.com> Subject: Re: [Qemu-devel] Project idea: make QEMU more flexible List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Peter Crosthwaite , Wei Liu , Stefano Stabellini , "qemu-devel@nongnu.org Developers" , "xen-devel@lists.xen.org" On Tue, Jan 07, 2014 at 02:50:12PM +0100, Paolo Bonzini wrote: > Il 07/01/2014 14:26, Stefano Stabellini ha scritto: > > > The identifiers poisoned by include/qemu/poison.h are > > > an initial but not complete list. Host and target > > > endianness is a particularly obvious one, as is the > > > size of a target long. You may not use these things > > > in your Xen devices, but "qemu-system-null" implies > > > more than "weird special purpose thing which only > > > has Xen devices in it". > > > > I see your point. > > Could we allow target endinness and long size being selected at > > configure time for target-null? > > The default could be the same as the host, or could even be simply > > statically determined, maybe little endian, 4 bytes. > > For Xen both long sizes are already supported by the block backend. Are > there still guests that use BLKIF_PROTOCOL_NATIVE? If not, long size > might not matter at all. > > And if in the future Xen were to grow support for a big-endian target, > you could either enforce little-endian for the ring buffers, or > negotiate it in xenstore like you do for sizeof(long). > > So let's call things by their name and add qemu-system-xenpv that covers > both x86 and ARM and anything else in the future. Phasing out the I think this makes sense. But does it deserve to be in default-configs/? It will become default-configs/xenpv-softmmu.mak and target-xenpv shall be created. > i386/x86_64 xenpv machine type makes total sense if the exact same code > can support ARM PV domains too. This machine would only be compiled if > you had support for Xen. My current patches have: > > supported_target() { > test "$tcg" = "yes" && return 0 > supported_kvm_target && return 0 > supported_xen_target && return 0 > return 1 > } > > but adding a more refined test for supported-on-TCG would be easy. > I think implementing qemu-system-xenpv will be easier after your TCG series goes in. In that case I don't need to worry about TCG stubs anymore. Wei. > Paolo