From nobody Tue Feb 10 06:25:37 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=1571835703; cv=none; d=zoho.com; s=zohoarc; b=k2ndmbJLWfHJBtOOfmZjQrTtj+fwR7F4cW8qI3ffzso7X4D+mJyIiJPpk0hPBPJTPZnwxzPsIElbCry73CBYBctBmSVP84yzJfORFBL3+sAwuJAgqFZX+hgzHn3nGWXnkk4CBeE9CXoqWxiiuIiIXUOhZ+CfPaSrsX8rXVcvg78= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571835703; 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=kQpx55MQqsufY3eUrZJM2VPtpnT9zdB0u5QDgQcXKT/Bh3Mot2a0ckbEjSg6VTgkY40XQ9ozi8B7SohBHxQeyQdIjY358Q6SKOQJHxgdXwqcpcVEnLjSVkku4YpF87GBYpwRW1HNgTFhotWdaF6dFYEmEMBQbvAgR1S978Bt1E4= 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 1571835703047873.601172782704; Wed, 23 Oct 2019 06:01:43 -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 1iNGFo-00063w-AH; Wed, 23 Oct 2019 13:00:44 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNGFm-000634-W6 for xen-devel@lists.xenproject.org; Wed, 23 Oct 2019 13:00:43 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 13a72770-f595-11e9-a531-bc764e2007e4; Wed, 23 Oct 2019 13:00:24 +0000 (UTC) X-Inumbo-ID: 13a72770-f595-11e9-a531-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1571835624; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=oQSOfhArtlO3bwUuH/V4jT2AeG2GwRZpRhSiBnBelUo=; b=OubHm2x+1QC5bXIVj8tosQnSRAZJ46UHYLLniz88J4xbJBY9iWXMUTLy zytKBvL+DJ+tANI1Ewdgu/MktJShb9NL2XamnEWpsdt6xEQfRK8a0iIhr UJ8EpxEdc06GGY8Atp+ty7Yq5/CDoks2L3cNaZ+3/72uQvMl9TbLEhxCI 8=; Authentication-Results: esa3.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 (esa3.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=esa3.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="ian.jackson@eu.citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.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=esa3.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 (esa3.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=esa3.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: dUTXuuWIJ61fu1WZlB6a/6MzJJoBNXCY3ubkclFJI+/PugCEYwm77BxQSp3ktb84H3JuycJ4w8 PFJ6JlyheSblvnWhYfDmuLzmhZh0/lxXc8k4aj0fo5++648aLeYof8yVfv/H54rr4yLCDkgDse 1+YwkoMc8Cef97+EhcbnlPWzh6JQ4Fle5NWk63LgP7DqR1Vh/dtDwq5rS7UX6TaJ+vg6D0A9/i 48HH71sUEcECzTLlFY7e4pMkPtJEhQqggyRkJx+4hWBImhz/gtDvdJyiUMwsH6XMNwwBLw5B8e e5M= X-SBRS: 2.7 X-MesageID: 7316444 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.68,220,1569297600"; d="scan'208";a="7316444" From: Ian Jackson To: Date: Wed, 23 Oct 2019 14:00:09 +0100 Message-ID: <20191023130013.32382-8-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191023130013.32382-1-ian.jackson@eu.citrix.com> References: <20191023130013.32382-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [XEN PATCH for-4.13 v7 07/11] 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: Anthony PERARD , =?UTF-8?q?J=C3=BCrgen=20Gro=C3=9F?= , Ian Jackson , Wei Liu 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