From nobody Fri Oct 23 15:34:24 2026 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; dkim=pass; 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=pass(p=none dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1791211424; cv=none; d=zohomail.com; s=zohoarc; b=j2Qjuj7+vI2xCjtqeGHPsEqHdP/uulgmss3O4cGQFnte4s7fRgCn4T2mzT+4sgC8U1eYbJPJ9Lrw3+ZFCJNcin14Gfnw9Cld1PtxSw/AcAN0EXjkJ1o4JqbpvGpt1kYOoKF/BMU+erVWxq3mOcvGOI7B7rkidMP17aoCK0nnkR8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791211424; h=Content-Type:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Pe2+7r91QrtpgDUxoSoT90ds+FEVHjziNdH/cGFvhgo=; b=UptRs/rrc0KciVGXwUVa5TuCiOyV5ZG/Me8+9VOMAjJmoSfZ3vKqThvu74Xx5RO6x6422lNLcUiy1sNArzKUWA+eS9onfheB/7RAkVvkreEggfHk2atYu8AnUyQKWsqxRHjffr7scNX0Yg8BFqsE7lg0oDHz9KrqikU0LqK7X9c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1791211424345498.57093505461785; Mon, 5 Oct 2026 07:43:44 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1440912.1658436 (Exim 4.92) (envelope-from ) id 1xDjuS-0002WV-Q8; Mon, 05 Oct 2026 14:43:20 +0000 Received: by outflank-mailman (output) from mailman id 1440912.1658436; Mon, 05 Oct 2026 14:43:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xDjuS-0002WN-L7; Mon, 05 Oct 2026 14:43:20 +0000 Received: by outflank-mailman (input) for mailman id 1440912; Mon, 05 Oct 2026 14:43:20 +0000 Received: from mx.expurgate.net ([195.190.135.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xDjuR-0002WH-BI for xen-devel@lists.xenproject.org; Mon, 05 Oct 2026 14:43:20 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xDjuQ-00Dl8Q-IX for xen-devel@lists.xenproject.org; Mon, 05 Oct 2026 16:43:18 +0200 Received: from [10.42.69.5] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6ac3b777-bab6-0a2a0a5309dd-0a2a4505bc78-4 for ; Mon, 05 Oct 2026 16:43:18 +0200 Received: from [185.255.28.18] (helo=prod-mta-13.swg-srv.net) by tlsNG-c201ff.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6ac3b774-4cb1-0a2a45050019-b9ff1c129f6f-3 for ; Mon, 05 Oct 2026 16:43:01 +0200 Received: from mail2.vates.fr ([37.26.189.201] mail2.vates.fr) (Authenticated sender: 8631fc262581453bbf619ec5b2062170/smtp/7773de5a-2839-4720-82ee-e06722ae1d3e) by prod-mta-13.swg-srv.net (ZoneMTA - prod-mta-13) with ESMTPSA id 1a10c848c9a0003f66.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 05 Oct 2026 14:42:55 +0000 Received: from localhost.localdomain (88-188-240-210.subs.proxad.net [88.188.240.210]) (Authenticated sender: teddy.astie@vates.tech) by mail2.vates.fr (Postfix) with ESMTPSA id E219581E07; Mon, 5 Oct 2026 16:42:54 +0200 (CEST) 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" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=vates.tech header.i="@vates.tech" header.h="From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Feedback-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; q=dns/txt; s=selector1; bh=Pe2+7r91QrtpgDUxoSoT90ds+FEVHjziNdH/cGFvhgo=; h=from:subject:date:message-id:to:cc:mime-version:content-type:feedback-id; b=pC+XoJUmBNxyZY1zG2GHO6aZxs9D9KfZ0BfcuAtp9SEptZK1TB2u5lZ7HuGyXezXf9kXGZmMZ 1o5LyWXyAsFAmGs7LE1Wp7yVTOUXIAoBa9CDX7njM0XMgjVmNGhl9xrOSLsHJ32wL3LVugS8Ubz o252nHhaubeweYP61aMcMCuzdSBt+PWzkkaQr3qYFMpcSiwf5dYqycOaksmgpNwSFxCWzu4Y/2m uYeH1qMLexnNJU1qdVhkMyNMRp9coGcyclCqEhLKTp/fwjIN3e2sI75SEutcDLqQXRhnpfvgPnv qpKyq/DWNCpeaGNpYDQjkY7YwRbQ4mcd+W/tZ3FDqO7Q== X-Zone-Loop: 2091a6b1e30a6d80082ae2bd718e9e3ce783ddf2c512 x-campaign-type: default x-transaction-id: e12f5733-9902-43cb-aae4-10f3186c0f48 x-swg-uid: 01-a332c3f7-31fc-4ff1-ab1d-730fe7b53b10 X-Mailer: Sweego Message-ID: <1791211375.8631fc262581453bbf619ec5b2062170.1a10c848c9a0003f66@vates.tech> x-swg-bid: 1791211375.8631fc262581453bbf619ec5b2062170.1a10c848c9a0003f66 Feedback-ID: default:8631fc262581453bbf619ec5b2062170:Sweego x-campaign-id: default x-client-id: 8631fc262581453bbf619ec5b2062170 X-Originating-IP: [37.26.189.201] From: Teddy Astie To: xen-devel@lists.xenproject.org Cc: Teddy Astie , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH] x86/shim: Report -ENOSYS instead of -EOPNOTSUPP Date: Mon, 5 Oct 2026 16:41:51 +0200 MIME-Version: 1.0 X-BM-Disclaimer: Yes Content-Type: multipart/alternative; boundary="-=Part.659.b22e3bd23c97d1dd.1a10c8489d6.edc8bb0d479e5fb4=-" X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1791211375062 X-purgate-ID: tlsNG-c201ff/1791211381-F4EA12A1-D83DF337/0/0 X-purgate-type: clean X-purgate-size: 1691 X-ZohoMail-DKIM: pass (identity @vates.tech) X-ZM-MESSAGEID: 1791211426991158500 ---=Part.659.b22e3bd23c97d1dd.1a10c8489d6.edc8bb0d479e5fb4=- Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Main Xen reported -ENOSYS if the operation is not implemented, however, shim errorneously reported it as -EOPNOTSUPP, potentially confusing the guest. Make shim more consistent with Xen by reporting -ENOSYS instead. Fixes: 49f79fe03dfe ("xen/pvshim: add grant table operations") Fixes: 368ae9a05fee ("xen/pvshim: forward evtchn ops between L0 Xen and L2 = DomU") Reported-by: Teddy Astie Suggested-by: Andrew Cooper Signed-off-by: Teddy Astie Reported-by for yourself is pretty unusual, btw. --- Found while running XTF tests using pv-shim with a modified xtf-runner. xen/arch/x86/pv/shim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/pv/shim.c b/xen/arch/x86/pv/shim.c index 41000b0523..024c49c1b3 100644 --- a/xen/arch/x86/pv/shim.c +++ b/xen/arch/x86/pv/shim.c @@ -632,7 +632,7 @@ long pv_shim_event_channel_op(int cmd, XEN_GUEST_HANDLE= _PARAM(void) arg) =20 default: /* No FIFO or PIRQ support for now */ - rc =3D -EOPNOTSUPP; + rc =3D -ENOSYS; break; } =20 @@ -816,7 +816,7 @@ long pv_shim_grant_table_op(unsigned int cmd, break; =20 default: - rc =3D -EOPNOTSUPP; + rc =3D -ENOSYS; break; } =20 --=20 2.55.0 --=20 Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech ---=Part.659.b22e3bd23c97d1dd.1a10c8489d6.edc8bb0d479e5fb4=---