From: Stefano Stabellini Subject: Re: [PATCH] libxl: change default QEMU machine to pc-i440fx-1.6 Date: Tue, 3 Jun 2014 14:38:35 +0100 Message-ID: References: <537F8083.7040802@m2r.biz> <5382F4A6.3000907@m2r.biz> <5385F670.5040207@m2r.biz> <538613EB.3030009@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <538613EB.3030009@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Paolo Bonzini Cc: xen-devel@lists.xensource.com, Ian Campbell , Stefano Stabellini , Ian Jackson , qemu-devel@nongnu.org, Fabio Fantoni , Anthony.Perard@citrix.com, tiejun.chen@intel.com, Paul Durrant List-Id: xen-devel@lists.xenproject.org On Wed, 28 May 2014, Paolo Bonzini wrote: > Il 28/05/2014 18:41, Stefano Stabellini ha scritto: > > However it would still place xen-platform at slot 3 instead of slot 2 if > > soundhw is specified. It seems to me that there is not a perfect > > solution to this problem. We can either: > > > > - Switch to -machine pc-i440fx-1.6 by default and use consistently the > > same -machine option no matter the value of xen_platform_pci. Nice, but > > we break compatibility with existing guests if soundhw is specified. > > > > - Switch to -machine pc-i440fx-1.6 only when xen_platform_pci=0 is > > specified and keep xenfv if xen_platform_pci=1. We still break > > compatibility when soundhw is specified together with xen_platform_pci=0. > > - change the implementation of the soundhw option to use -device instead. Thanks, this sounds like the best option by far. I noticed that "-soundhw hda" becomes "-device intel-hda". Given that the VM config file exports a soundhw paramter, we would need a programmatic way to get the -device command line option from the soundhw paramter. Is there a way to do that?