From: Wei Liu Subject: Re: [v4][PATCH 13/19] tools/libxc: check to set args.mmio_size before call xc_hvm_build Date: Thu, 25 Jun 2015 12:08:57 +0100 Message-ID: <20150625110857.GI6545@zion.uk.xensource.com> References: <1435053450-25131-1-git-send-email-tiejun.chen@intel.com> <1435053450-25131-14-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1435053450-25131-14-git-send-email-tiejun.chen@intel.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: Tiejun Chen Cc: Wei Liu , Stefano Stabellini , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Jun 23, 2015 at 05:57:24PM +0800, Tiejun Chen wrote: > After commit 5dff8e9eedc7, "libxc/libxl: fill xc_hvm_build_args in > libxl" is introduced, we won't check to set args.mmio_size inside > xc_hvm_build as before. So instead, we need to do this before call > that. > > CC: Ian Jackson > CC: Stefano Stabellini > CC: Ian Campbell > CC: Wei Liu > Signed-off-by: Tiejun Chen Acked-by: Wei Liu Sigh. I missed this because libxl doesn't use this function and there is no in tree xend anymore. I think you should move this earlier in this series. Presumably your RDM changes depend on this. Wei. > --- > v4: > > * Separate this from currenpt patch #14 since this is specific to xc. > > tools/libxc/xc_hvm_build_x86.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/libxc/xc_hvm_build_x86.c b/tools/libxc/xc_hvm_build_x86.c > index 003ea06..7343e87 100644 > --- a/tools/libxc/xc_hvm_build_x86.c > +++ b/tools/libxc/xc_hvm_build_x86.c > @@ -754,6 +754,8 @@ int xc_hvm_build_target_mem(xc_interface *xch, > args.mem_size = (uint64_t)memsize << 20; > args.mem_target = (uint64_t)target << 20; > args.image_file_name = image_name; > + if ( args.mmio_size == 0 ) > + args.mmio_size = HVM_BELOW_4G_MMIO_LENGTH; > > return xc_hvm_build(xch, domid, &args); > } > -- > 1.9.1