From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= Subject: Re: [PATCH v4 24/31] libxc: allow creating domains without emulated devices. Date: Mon, 17 Aug 2015 17:55:43 +0200 Message-ID: <55D203FF.3090300@citrix.com> References: <1438942688-7610-1-git-send-email-roger.pau@citrix.com> <1438942688-7610-25-git-send-email-roger.pau@citrix.com> <55C4DEA9.5000905@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZRMrk-0002y5-C3 for xen-devel@lists.xenproject.org; Mon, 17 Aug 2015 16:02:28 +0000 In-Reply-To: <55C4DEA9.5000905@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: Andrew Cooper , xen-devel@lists.xenproject.org Cc: Ian Jackson , Wei Liu , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org El 07/08/15 a les 18.36, Andrew Cooper ha escrit: > On 07/08/15 11:18, Roger Pau Monne wrote: >> @@ -1336,7 +1343,8 @@ static int meminit_hvm(struct xc_dom_image *dom) >> * tot_pages will be target_pages - VGA_HOLE_SIZE after >> * this call. >> */ >> - rc = xc_domain_set_pod_target(xch, domid, target_pages - VGA_HOLE_SIZE, >> + rc = xc_domain_set_pod_target(xch, domid, target_pages - >> + dom->emulation ? VGA_HOLE_SIZE : 0, >> NULL, NULL, NULL); > > This might be more cleanly expressed as having d->vga_hole_size which is > either VGA_HOLE_SIZE or 0, depending on dom->emulation. I'm afraid I don't understand this comment. What's "d" in the phrase above? I cannot see any local variable or argument called "d" in the context of meminit_hvm. Or do you mean that the dom->emulation flag should be split into dom->disable_ioreqs and dom->vga_hole_size? Roger.