From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] libxl: change default QEMU machine to pc-i440fx-1.6 Date: Tue, 03 Jun 2014 15:43:17 +0200 Message-ID: <538DD0F5.8000307@redhat.com> 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Stefano Stabellini Cc: xen-devel@lists.xensource.com, Ian Campbell , 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 Il 03/06/2014 15:38, Stefano Stabellini ha scritto: > 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? A table. :) -soundhw corresponding -device syntax --------------------------------------------------------- ac97 -device AC97 adlib -device adlib cs4231a -device cs4231a es1370 -device ES1370 gus -device gus hda -device intel-hda,id=libxl-intel-hda \ -device hda-duplex,bus=libxl-intel-hda.0 pcspk -device isa-pcspk sb16 -device sb16 (To review it start with "git grep _register_soundhw"). Paolo