From nobody Fri Nov 29 19:47:48 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 163431674672248.15214133167194; Fri, 15 Oct 2021 09:52:26 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.210928.367996 (Exim 4.92) (envelope-from ) id 1mbQRK-0006IV-EZ; Fri, 15 Oct 2021 16:52:14 +0000 Received: by outflank-mailman (output) from mailman id 210928.367996; Fri, 15 Oct 2021 16:52:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mbQRK-0006IK-Af; Fri, 15 Oct 2021 16:52:14 +0000 Received: by outflank-mailman (input) for mailman id 210928; Fri, 15 Oct 2021 16:52:12 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mbQRI-00052U-8z for xen-devel@lists.xenproject.org; Fri, 15 Oct 2021 16:52:12 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 35367cef-0b68-4c69-a303-855dfb9fc1b6; Fri, 15 Oct 2021 16:52:05 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7214511D4; Fri, 15 Oct 2021 09:52:05 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 710F73F70D; Fri, 15 Oct 2021 09:52:04 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 35367cef-0b68-4c69-a303-855dfb9fc1b6 From: Bertrand Marquis To: xen-devel@lists.xenproject.org Cc: iwj@xenproject.org, sstabellini@kernel.org, Michal Orzel , Wei Liu , Anthony PERARD , Juergen Gross Subject: [PATCH v8 4/5] tools/libxl_arm: Modify libxl__prepare_dtb... Date: Fri, 15 Oct 2021 17:51:44 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1634316748671100001 Content-Type: text/plain; charset="utf-8" From: Michal Orzel ... to take a second argument of type libxl_domain_config* rather than libxl_domain_build_info*. This change will be needed to get access from libxl__prepare_dtb to "num_pcidevs" field of libxl_domain_config to check whether to create a vPCI DT node or not. Signed-off-by: Michal Orzel Signed-off-by: Bertrand Marquis Suggested-by: Ian Jackson Reviewed-by: Ian Jackson --- Changes in v8: add Signed-off Bertrand Marquis Changes in v7: Patch added --- tools/libs/light/libxl_arm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/libs/light/libxl_arm.c b/tools/libs/light/libxl_arm.c index d5771f98dd..fdae129605 100644 --- a/tools/libs/light/libxl_arm.c +++ b/tools/libs/light/libxl_arm.c @@ -878,7 +878,7 @@ static int copy_partial_fdt(libxl__gc *gc, void *fdt, v= oid *pfdt) =20 #define FDT_MAX_SIZE (1<<20) =20 -static int libxl__prepare_dtb(libxl__gc *gc, libxl_domain_build_info *info, +static int libxl__prepare_dtb(libxl__gc *gc, libxl_domain_config *d_config, libxl__domain_build_state *state, struct xc_dom_image *dom) { @@ -887,6 +887,7 @@ static int libxl__prepare_dtb(libxl__gc *gc, libxl_doma= in_build_info *info, int rc, res; size_t fdt_size =3D 0; int pfdt_size =3D 0; + libxl_domain_build_info *const info =3D &d_config->b_info; =20 const libxl_version_info *vers; const struct arch_info *ainfo; @@ -1042,7 +1043,7 @@ int libxl__arch_domain_init_hw_description(libxl__gc = *gc, if (rc) return rc; =20 - rc =3D libxl__prepare_dtb(gc, info, state, dom); + rc =3D libxl__prepare_dtb(gc, d_config, state, dom); if (rc) goto out; =20 if (!libxl_defbool_val(info->acpi)) { --=20 2.25.1