From: Ian Campbell Subject: Re: [PATCH 13/28] libxl: idl: add domain_type field to libxl_dominfo struct Date: Tue, 23 Apr 2013 14:21:32 +0100 Message-ID: <1366723292.20256.141.camel@zakaz.uk.xensource.com> References: <1364222729-6982-1-git-send-email-rob.hoes@citrix.com> <1364222729-6982-14-git-send-email-rob.hoes@citrix.com> <1365679191.8036.78.camel@zakaz.uk.xensource.com> <7EA643C653F17F4C80DE959E978F10ED010F729E018E@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7EA643C653F17F4C80DE959E978F10ED010F729E018E@LONPMAILBOX01.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: Rob Hoes Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-04-23 at 14:10 +0100, Rob Hoes wrote: > > On Mon, 2013-03-25 at 14:45 +0000, Rob Hoes wrote: > > > This allows a toolstack to find out whether a VM has booted as PV or > > > HVM. > > > > OOI why do you need to know? I'm wondering if there might be a better > > higher level question to ask rather than PV vs HVM. > > One reason is simply to report to the user what kind of VMs they have > running. Does xapi/xenopsd not already track this in the DB? > Xenopsd also uses this information internally in some places, e.g. > when inserting a CD, it uses libxl_cdrom_insert for HVMs, and does a > normal VBD hotplug for PV. xenopsd doesn't already know which to use? I wonder if it is/was a mistake to not have libxl_cdrom_insert do the obvious PV thing for PV guests. Ian.