From: Ian Campbell Subject: Re: [PATCH] libxl: change default QEMU machine to pc-i440fx-1.6 Date: Tue, 3 Jun 2014 14:47:03 +0100 Message-ID: <1401803223.1582.5.camel@kazak.uk.xensource.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="UTF-8" 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 Jackson , qemu-devel@nongnu.org, Fabio Fantoni , tiejun.chen@intel.com, Anthony.Perard@citrix.com, Paolo Bonzini , Paul Durrant List-Id: xen-devel@lists.xenproject.org On Tue, 2014-06-03 at 14:38 +0100, Stefano Stabellini wrote: > Given that the VM config file exports a soundhw paramter, ... as a string. That sounds like a libxl API mistake to me. libxl should take an enum for this sort of thing. Then xl should parse whatever strings it likes (including specific string needed for backward compatibility) into the appropriate enum values and libxl should generate the correct corresponding qemu options for whichever version it is using. libxl will need to keep the existing string field alongside the new enum field for API compatibility, I suppose it will also need to parse some legacy values into the enum itself, those probably equate to whatever qemu -soundhw used to accept. Icky, but not insurmountable, I think. Ian.