From nobody Mon Feb 9 17:59:32 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=1571835719; cv=none; d=zoho.com; s=zohoarc; b=LT7AJhbCRxe/Z+ICqbShje70apkVGEUckKbGbI7KE8tsEWX70YR9HrIX69GwuAbBD99y61z60Dat3VEKE9ifijZ9wJMsf4sbTe6QkalckTwMFhJRh4GTdsrZi8BGDEYMfjxM6mFMXRCKLIl+3ku6GXnLfjzWNi/3w1DRLMpGRtM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571835719; 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=F7BZaGfdaZcQ1xaF/ZtLlqeX26nGMYd0gEELayjyr6I=; b=Qzkt58bXI8Jqh4OHn/v10c/mdRhsMTjxSsaSZ+JEZwPR2uYFLcXZpNgSlPWP4xHixHMgv2GSbY/HhOs/8iivs7+GKBvp8m+5//zovFHmp0ZB9+6HSEd7Vy1bUQtEXnntgZnRHQvGMgdhQdZ3ZfR+QymF3odYDg6r1FiZFAl6MCo= 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 1571835719240832.4755895464386; Wed, 23 Oct 2019 06:01:59 -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 1iNGG2-0006FY-Cv; Wed, 23 Oct 2019 13:00:58 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iNGG2-0006F5-09 for xen-devel@lists.xenproject.org; Wed, 23 Oct 2019 13:00:58 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 150ed3e2-f595-11e9-a531-bc764e2007e4; Wed, 23 Oct 2019 13:00:26 +0000 (UTC) X-Inumbo-ID: 150ed3e2-f595-11e9-a531-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1571835627; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=hc7BW0gamVDxfQE27Bbza9HoJMjjSPTEL8Iub+Ut1+A=; b=eE1ldlbL7uNOGNFC4qShmejKUHwTiXC5afkw77jqZ0BplfPHGqz0VFIF hk8PS+86T659xPXRSY1zfkuhY3wprr0KTfZgNTmKTALrWpqXqUNvUkM4/ gX4JGwCJQnMnvLoywfz3L39bqGcVoahWPO4LWkIa+RaP5BeNHOs0UzU2z M=; 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: jgojwduv6wyatx1NFrB0Ex2Ujm9IBmZHQYUkmzCXN/anb9qCKxNZALLvHWrJ8820piJcTwbx3x usgWc3qiT4gEjIHJkb+INiZkRsTM7WS/EKBkWCfo4quYi1qIyExvZGeFH9nKjc3NHAt05PY5X0 sQd2a/mpVBu+esbQ4kxqPDMlayjZf0W17pFOCrqliozN98AIRDTmfokF/gSXEBg7JQ5s/fATs2 ZxR66Q6npiBAxe9+EOQkN9YRdqKVENX8omfifMuNELNQ2Oy/A0kOLvcjDcwGdU7WcN5cgCNk6c N2M= X-SBRS: 2.7 X-MesageID: 7411235 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.68,220,1569297600"; d="scan'208";a="7411235" From: Ian Jackson To: Date: Wed, 23 Oct 2019 14:00:13 +0100 Message-ID: <20191023130013.32382-12-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 11/11] libxl: On ARM, reject future new passthrough modes too 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: =?UTF-8?q?J=C3=BCrgen=20Gro=C3=9F?= , Stefano Stabellini , Julien Grall , Wei Liu , Ian Jackson , Anthony PERARD 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) This is most pleasantly done by also changing the if to a switch. Suggested-by: Julien Grall CC: Julien Grall CC: Stefano Stabellini Signed-off-by: Ian Jackson Acked-by: Anthony PERARD --- v7: New patch in this version of the series. --- tools/libxl/libxl_arm.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c index 2f1ca69431..0b3025a9ed 100644 --- a/tools/libxl/libxl_arm.c +++ b/tools/libxl/libxl_arm.c @@ -1203,9 +1203,15 @@ int libxl__arch_passthrough_mode_setdefault(libxl__g= c *gc, c_info->passthrough =3D LIBXL_PASSTHROUGH_SHARE_PT; } =20 - if (c_info->passthrough =3D=3D LIBXL_PASSTHROUGH_SYNC_PT) { + switch (c_info->passthrough) { + case LIBXL_PASSTHROUGH_DISABLED; + case LIBXL_PASSTHROUGH_SHARE_PT: + break; + + default: LOGD(ERROR, domid, - "passthrough=3D\"sync_pt\" not supported on ARM\n"); + "passthrough=3D\"%s\" not supported on ARM\n", + libxl__passthrough_mode_to_string(c_info->passthrough); rc =3D ERROR_INVAL; goto out; } --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel