From: Ian Campbell Subject: Re: [PATCH] Add a device_model_machine option for HVM domains to libxl. Date: Wed, 19 Jun 2013 09:09:52 +0100 Message-ID: <1371629392.22783.50.camel@zakaz.uk.xensource.com> References: <1371476413-7158-1-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Paul Durrant , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-06-18 at 20:06 +0100, Stefano Stabellini wrote: > 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. I think ultimately we will need some sort of option like this to support evolving the virtualised platform, i.e. when we want to introduce for more modern systems (e.g. Q35 based with PCIe support). I didn't review in details since obviously there is a higher level discussion to have first, but I did spot: > + b_info->u.hvm.machine = LIBXL_DEVICE_MODEL_HVM_MACHINE_DEFAULT; This isn't needed, libxl_domain_build_info_init() will DTRT here. Ian,