From nobody Mon Feb 9 10:48:27 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eu.citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1571411381; cv=none; d=zoho.com; s=zohoarc; b=S/01wK6fArOm7Dt9WHxfl0hu/uZAxdx/z4aC75nqwDXYclanUEEw1wu5UXN63oB3iFrvz1HzhRgWui1pEuo63SVegqdB87zO8I/AqBsrFsX36lZ6kPMr3KLhYNWJfkJZoQmdB8nykBTEqXfasE5HwXIkTWCaI4J96bIb52Cmy3I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571411381; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=siwMK1hGorR6VLhFBAWXhxXCPSU6QSYtqs8TyacYsxU=; b=NQ8L88XfW8NlcqzZsYZQ0+XUONk0jCSPs+MvkmM/YoF5sYGfS6EJtaKWjhPoQT9+xjGqO8IIPcfd/1Ifzt1CLY95ZJJoToo5byOesorTYQvlH11A2PeAftppSh7nuROuKaTI/SFwG6N/7Yz1dI7j3MrS3lq9h6/FJLhA97pvXcE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1571411381340811.0670816023331; Fri, 18 Oct 2019 08:09:41 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iLTqf-0005AX-Qx; Fri, 18 Oct 2019 15:07:25 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iLTqe-00059w-Hl for xen-devel@lists.xenproject.org; Fri, 18 Oct 2019 15:07:24 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id efa2e394-f1b8-11e9-8aca-bc764e2007e4; Fri, 18 Oct 2019 15:07:01 +0000 (UTC) X-Inumbo-ID: efa2e394-f1b8-11e9-8aca-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1571411222; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=oQSOfhArtlO3bwUuH/V4jT2AeG2GwRZpRhSiBnBelUo=; b=Bg+sy8cqhPtJzeKHHxuUheqpmvtWobv42FFVZvNKYmN+w0+9U40drBGJ fx7ncaXEn8bd758ipLgvlSmBenbkpIUffnevyjGd7smbvzWXVX35m1f5H GMm1Rvo7nRIuONIdzoXhifmy4yGbX3EUvtzi7pqEytef5vTXrbcJ07Jov A=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@eu.citrix.com; spf=Pass smtp.mailfrom=Ian.Jackson@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of ian.jackson@eu.citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="ian.jackson@eu.citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa1.hc3370-68.iphmx.com: domain of Ian.Jackson@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="Ian.Jackson@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: Ma4s4eOZN/gs4ow3XkD9OhGiz5FqU4lnmCXLWsQ4553FHi4H/00QD8fJkQXoZ4tsv3b6O6Tlpx bN/Z7Br20pTBvm0NKGIdBU4BEGtBc5Wq/Z57FDam36alCFgMBButwX0hIASL236AVPFkkKdrWb BTR/ig7bxYFSOinOdpE57Vl+OeLa+/g7hJIX3vKOxfTbFF11XzShtpiZdnB7i0RLoCowJcaubb QJ2piWKdycROMteZSJ/o4VFmlL261CRM+qa6eaonRHuL0s+wJqIBZwXCGj+dcgIQazSnwR/fA6 u0o= X-SBRS: 2.7 X-MesageID: 7191967 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.67,312,1566878400"; d="scan'208";a="7191967" From: Ian Jackson To: Date: Fri, 18 Oct 2019 16:06:50 +0100 Message-ID: <20191018150653.24862-8-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191018150653.24862-1-ian.jackson@eu.citrix.com> References: <20191018150653.24862-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [XEN PATCH for-4.13 v5 07/10] libxl: create: setdefault: Make libxl_physinfo info[1] X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Paul Durrant , Ian Jackson , Jan Beulich , Andrew Cooper Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) No functional change. This will let us make it into a pointer without textual change other than to the definition. While we are here, fix some style errors (missing { }). Signed-off-by: Ian Jackson Acked-by: Wei Liu --- v2: New patch in this version of the series. --- tools/libxl/libxl_create.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index e4ddfd067f..d65df7924d 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -30,10 +30,10 @@ int libxl__domain_create_info_setdefault(libxl__gc *gc, libxl_domain_create_info *c_info) { - libxl_physinfo info; + libxl_physinfo info[1]; int rc; =20 - rc =3D libxl_get_physinfo(CTX, &info); + rc =3D libxl_get_physinfo(CTX, info); if (rc) return rc; =20 @@ -45,11 +45,11 @@ int libxl__domain_create_info_setdefault(libxl__gc *gc, libxl__arch_domain_create_info_setdefault(gc, c_info); =20 if (c_info->type !=3D LIBXL_DOMAIN_TYPE_PV) { - if (info.cap_hap) + if (info->cap_hap) { libxl_defbool_setdefault(&c_info->hap, true); - else if (info.cap_shadow) + } else if (info->cap_shadow) { libxl_defbool_setdefault(&c_info->hap, false); - else { + } else { LOG(ERROR, "neither hap nor shadow paging available"); return ERROR_INVAL; } @@ -63,12 +63,12 @@ int libxl__domain_create_info_setdefault(libxl__gc *gc, if (!c_info->ssidref) c_info->ssidref =3D SECINITSID_DOMU; =20 - if (info.cap_hvm_directio && + if (info->cap_hvm_directio && (c_info->passthrough =3D=3D LIBXL_PASSTHROUGH_UNKNOWN)) { c_info->passthrough =3D ((c_info->type =3D=3D LIBXL_DOMAIN_TYPE_PV= ) || - !info.cap_iommu_hap_pt_share) ? + !info->cap_iommu_hap_pt_share) ? LIBXL_PASSTHROUGH_SYNC_PT : LIBXL_PASSTHROUGH_SHARE_PT; - } else if (!info.cap_hvm_directio) { + } else if (!info->cap_hvm_directio) { c_info->passthrough =3D LIBXL_PASSTHROUGH_DISABLED; } =20 --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel