From: Wei Liu Subject: Re: [PATCH v4 24/31] libxc: allow creating domains without emulated devices. Date: Fri, 7 Aug 2015 13:18:28 +0100 Message-ID: <20150807121828.GM6005@zion.uk.xensource.com> References: <1438942688-7610-1-git-send-email-roger.pau@citrix.com> <1438942688-7610-25-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZNgbb-00046f-1V for xen-devel@lists.xenproject.org; Fri, 07 Aug 2015 12:18:35 +0000 Content-Disposition: inline In-Reply-To: <1438942688-7610-25-git-send-email-roger.pau@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Wei Liu , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, Aug 07, 2015 at 12:18:01PM +0200, Roger Pau Monne wrote: > Introduce a new flag in xc_dom_image that turns on and off the emulated > devices. This prevents creating the VGA hole, the hvm_info page and the > ioreq server pages. libxl unconditionally sets it to true for all HVM > domains at the moment. > = > Signed-off-by: Roger Pau Monn=E9 > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu > --- > Changes since v3: > - Explain the meaning of the "emulation" xc_dom_image field. > --- > tools/libxc/include/xc_dom.h | 3 ++ > tools/libxc/xc_dom_x86.c | 71 +++++++++++++++++++++++++-------------= ------ > tools/libxl/libxl_dom.c | 1 + > 3 files changed, 44 insertions(+), 31 deletions(-) > = > diff --git a/tools/libxc/include/xc_dom.h b/tools/libxc/include/xc_dom.h > index cda40d9..99225cf 100644 > --- a/tools/libxc/include/xc_dom.h > +++ b/tools/libxc/include/xc_dom.h > @@ -194,6 +194,9 @@ struct xc_dom_image { > xen_pfn_t lowmem_end; > xen_pfn_t highmem_end; > = > + /* If set disables the setup of the IOREQ pages and the VGA MMIO hol= e. */ > + bool emulation; > + My impression is that we might want to enable / disable specific emulation functionalities in the future, but since this is internal detail so we have the liberty to do whatever we want. A single flag and a comment here is good enough for me. The code also looks correct. So Acked-by: Wei Liu