From nobody Thu Sep 24 20:24:22 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=1788956091; cv=none; d=zohomail.com; s=zohoarc; b=eR950BlCMvIkNvHth9zPNjKxKSW72k4hIG0gSAnYvT/ajMZqUhKEXdzdVQbHJpu48iQJQzGegSGFpw3zkPloTyVWDSuaQLzeOgmDu3LcMnfZaAgdxBgUSFMqu+nTDz3geI4zgO5LnCTaQ+xG30yFKuhT7KDAoJhBVah58pxAMZ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788956091; 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=64t6DlOqM5oBcjLpnyKokKcO6pW+6+MyeV0F8Ibs75E=; b=YpNM+MSME4rchEX9Rw4p8Z58scioTJ3Mm0gwTHla1RAGrGg8FOZG97ctjKAhCqRKGOkydlDFGH1VdohjYppbu/G9qdqooRSCmnSUsv+G74vKqshOs8Nj+LnPMxm+BMYqot4kgaCxN8K23zITpfGe+gVshmB3QNui7oyiD4u5fA4= 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 1788956091551564.2890208393039; Wed, 9 Sep 2026 05:14:51 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1412923.1643203 (Exim 4.92) (envelope-from ) id 1x4HCB-0004cX-L7; Wed, 09 Sep 2026 12:14:31 +0000 Received: by outflank-mailman (output) from mailman id 1412923.1643203; Wed, 09 Sep 2026 12:14:31 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1x4HCB-0004cQ-I4; Wed, 09 Sep 2026 12:14:31 +0000 Received: by outflank-mailman (input) for mailman id 1412923; Wed, 09 Sep 2026 12:14:30 +0000 Received: from mx.expurgate.net ([195.190.135.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1x4HCA-0004cH-Ha for xen-devel@lists.xenproject.org; Wed, 09 Sep 2026 12:14:30 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1x4HC9-007Pxf-T0 for xen-devel@lists.xenproject.org; Wed, 09 Sep 2026 14:14:29 +0200 Received: from [10.42.69.4] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6aa14d9b-e002-0a2a0a5209dd-0a2a4504d6b6-44 for ; Wed, 09 Sep 2026 14:14:29 +0200 Received: from [185.255.28.35] (helo=prod-mta-13-02.swg-srv.net) by tlsNG-ebf023.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6aa14da5-b57f-0a2a45040019-b9ff1c23a4e3-3 for ; Wed, 09 Sep 2026 14:14:29 +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-02.swg-srv.net (ZoneMTA - prod-mta-13) with ESMTPSA id 1a086174641000c4f3.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 09 Sep 2026 12:14:27 +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 8DF7B81D31; Wed, 9 Sep 2026 14:14:26 +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=64t6DlOqM5oBcjLpnyKokKcO6pW+6+MyeV0F8Ibs75E=; h=from:subject:date:message-id:to:cc:mime-version:content-type:feedback-id; b=Ua0gCRnti2XirZLWwe2wV9P0RbXcee1SQXpSHqXvPDpyVzxXRWvNQMtQw9SOD9ghPNGFP6t1G PMSTXBccLQolZY8m7o7sg0QiEMSs5UtB/CMFVxPatmYyLIY74CUDyY2N9/d42LBvlGMQB+asWK0 0pcfPUMxtLh+mrJ/wEeYMGHBuvqnZU4UAbdm8mvUJfW0SvHDAGc5CeQDd1e6iuRwCbmIDYyWIVs /JnmPX0dJWiN4S1lkDfg1i7sRaEbLcYH6TnouyMnnvXlMJvrQBeKn+4yTMwjUqP7KlT8zvJEfv2 zBFbHcwM/aDnpGVz1UnDYj+828hLX4iBuK1u00/B4JSw== X-Zone-Loop: a34b4a0410d78ebd248b70c52de1449c37237a01c9d5 x-campaign-type: default x-transaction-id: 210a9964-ee39-40df-bc42-e6984d4378ec x-swg-uid: 01-a2d3c175-c1e6-4107-ad60-399b8219d23b X-Mailer: Sweego Message-ID: <1788956067.8631fc262581453bbf619ec5b2062170.1a086174641000c4f3@vates.tech> x-swg-bid: 1788956067.8631fc262581453bbf619ec5b2062170.1a086174641000c4f3 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@xenproject.org, xen-devel@lists.xenproject.org Cc: Teddy Astie , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH v3] x86/vmx: Avoid pausing on HVM_PARAM_IDENT_PT in additional cases Date: Wed, 9 Sep 2026 14:12:43 +0200 MIME-Version: 1.0 X-BM-Disclaimer: Yes Content-Type: multipart/alternative; boundary="-=Part.33.3b80ac56d6942fe5.1a0861743bb.7e3b699b805aa14=-" X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1788956066752 X-purgate-ID: tlsNG-ebf023/1788956069-C20D5B50-95E5652E/0/0 X-purgate-type: clean X-purgate-size: 1678 X-ZohoMail-DKIM: pass (identity @vates.tech) X-ZM-MESSAGEID: 1788956093798158500 ---=Part.33.3b80ac56d6942fe5.1a0861743bb.7e3b699b805aa14=- Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" When settings HVM_PARAM_IDENT_PT, skip domain pausing when : - there is no vcpu - unrestricted guest capability is used Signed-off-by: Teddy Astie Reviewed-by: Jan Beulich --- Regarding checking for hvm_paging_enabled(v) (proposed in v2 review), we ca= n't as hvm_paging_enabled() is vCPU specific, and vCPU 0 may have a different v= alue to another one. v3: - rebased patches with staging - adjusted formatting v2: - rebased patches with staging xen/arch/x86/hvm/hvm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 9a4147b62e..2981a61cee 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -4237,11 +4237,14 @@ static int hvm_set_param(struct domain *d, uint32_t= index, uint64_t value) rc =3D -EINVAL; break; case HVM_PARAM_IDENT_PT: + v =3D domain_vcpu(d, 0); + /* * Only actually required for VT-x lacking unrestricted_guest * capabilities. Short circuit the pause if possible. */ - if ( paging_mode_shadow(d) || !using_vmx() ) + if ( paging_mode_shadow(d) || !using_vmx() || !v || + vmx_unrestricted_guest(v) ) break; =20 /* --=20 2.55.0 --=20 Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech ---=Part.33.3b80ac56d6942fe5.1a0861743bb.7e3b699b805aa14=---