From: Stefano Stabellini Subject: Re: [PATCH] Add a device_model_machine option for HVM domains to libxl. Date: Thu, 20 Jun 2013 11:04:41 +0100 Message-ID: References: <1371476413-7158-1-git-send-email-paul.durrant@citrix.com> <9AAE0902D5BC7E449B7C8E4E778ABCD004B4AA@LONPEX01CL01.citrite.net> <9AAE0902D5BC7E449B7C8E4E778ABCD004D50B@LONPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD004D50B@LONPEX01CL01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: "xen-devel@lists.xen.org" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 20 Jun 2013, Paul Durrant wrote: > > -----Original Message----- > > From: Stefano Stabellini [mailto:stefano.stabellini@eu.citrix.com] > > Sent: 19 June 2013 18:26 > > To: Paul Durrant > > Cc: Stefano Stabellini; xen-devel@lists.xen.org > > Subject: RE: [Xen-devel] [PATCH] Add a device_model_machine option for > > HVM domains to libxl. > > > > On Wed, 19 Jun 2013, Paul Durrant wrote: > > > > -----Original Message----- > > > > From: Stefano Stabellini [mailto:stefano.stabellini@eu.citrix.com] > > > > Sent: 18 June 2013 20:06 > > > > To: Paul Durrant > > > > Cc: xen-devel@lists.xen.org > > > > Subject: Re: [Xen-devel] [PATCH] Add a device_model_machine option > > for > > > > HVM domains to libxl. > > > > > > > > On Mon, 17 Jun 2013, Paul Durrant wrote: > > > > > The device-model machine type used for HVM domains is currently > > > > hardcoded to > > > > > 'xenfv'. This patch adds a device_model_machine option, which > > defaults to > > > > > 'xenfv' for comatibility, but allows the specification of an alternative > > > > > machine type 'pc'. > > > > > Note that use of the 'pc' machine type relies on patches that I have > > > > > submitted to qemu-devel. > > > > > > > > > > Signed-off-by: Paul Durrant > > > > > > > > NACK > > > > > > > > I don't think that this kind of option should exposed to the user except > > > > maybe for debugging purposed. > > > > We need a way to automatically select the right one. > > > > > > > > > > Ok, but what is the *right* one? Would you accept this patch without the > > manpage tweak? Xenfv's hardcoded platform device creation is completely > > stalling my attempts to get Citrix Windows PV drivers running on upstream. > > Having this option and defaulting it to xenfv seems like a fairly pragmatic > > approach to me. > > > > Sorry, I realize that my messages have been a bit confusing. > > > > I am not opposed to having this option as a companion of > > device_model_override, I am just opposed to using this option to solve > > the compatibility problem with QEMU. > > > > I would like to see an additional patch that queries the running QEMU > > for its version and uses it to determine the default QEMU machine > > version. Then we can also allow users to override it with something > > like this patch. > > Yes, that's quite reasonable and such an additional patch series is my intention, but like so many things I don't have time to work on that now. You just need to use the already existing QMP command query-version and send it to the QEMU instance instantiated from the init script. It should be a pretty small patch. > So, if you think the new option has implications beyond my intention as an override then I'd be happy to modify it. > Here's a plan: > > - I make it freeform, rather than an enumeration (meaning folks have to add the ,accel=xen option themselves, but giving flexibility) > - I make it more clear in the manpage (and possibly in the option name itself) that it is an override > > Does that sound ok? They look like reasonable improvements over this patch.