From nobody Tue May 5 08:48:48 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 header.i=teddy.astie@vates.tech; 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=1776333895; cv=none; d=zohomail.com; s=zohoarc; b=UbuFsZwko5nONWY8zznZSnqxBE3FLnCKJfmxJXS+xnC0ap/099Y1JALJ4CTazcV0DbsbZYTeYKHUgDxRbwVmHHErZ0JGeAGSYqMKkPjDZ05DM5NF/UWrAx4DElMJ1mqvWHj6eg1YRrdAptmcudf87RwBV8oYkLc9Md4k6XOUEYc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1776333895; h=Content-Type:Content-Transfer-Encoding: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=XBI41eIb5EU5Imt0X3QJY323Za5K20vqbhiyQsF2MHc=; b=fVS+U7eIGsNwR3pssRPKHmMGJfJwfo/y/C1DVC/OBtP6lKlEaFZc6yBva4B//aP0ciudFBmUr3aCbGuVjM2xKRzay6ih14V8oeHsnnMElrog3eVXJOJmU47xHO8p/kqDdnH2dsl1w9kMOo0D/EsZPVzfqd9XTfE5eYAciTcM+GE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; 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 1776333894894577.2402227155665; Thu, 16 Apr 2026 03:04:54 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1283193.1565469 (Exim 4.92) (envelope-from ) id 1wDJaF-0001EJ-2O; Thu, 16 Apr 2026 10:04:27 +0000 Received: by outflank-mailman (output) from mailman id 1283193.1565469; Thu, 16 Apr 2026 10:04:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wDJaE-0001EC-V6; Thu, 16 Apr 2026 10:04:26 +0000 Received: by outflank-mailman (input) for mailman id 1283193; Thu, 16 Apr 2026 10:04:25 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wDJaD-0001E6-4q for xen-devel@lists.xenproject.org; Thu, 16 Apr 2026 10:04:25 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wDJaC-009FEl-AA for xen-devel@lists.xenproject.org; Thu, 16 Apr 2026 12:04:24 +0200 Received: from [10.42.69.4] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 69e0b423-bab6-0a2a0a5309dd-0a2a4504df9a-46 for ; Thu, 16 Apr 2026 12:04:24 +0200 Received: from [198.2.187.1] (helo=mail187-1.suw11.mandrillapp.com) by tlsNG-ebf023.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 69e0b427-1dec-0a2a45040019-c602bb011ec8-3 for ; Thu, 16 Apr 2026 12:04:23 +0200 Received: from pmta09.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail187-1.suw11.mandrillapp.com (Mailchimp) with ESMTP id 4fxCZL1dGSzBscwFR for ; Thu, 16 Apr 2026 09:36:26 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id d274f2a866104456a30f2c4c29706734; Thu, 16 Apr 2026 09:36:26 +0000 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=mte1 header.d=mandrillapp.com header.i="@mandrillapp.com" header.h="From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding"; dkim=pass header.s=mte1 header.d=vates.tech header.i="teddy.astie@vates.tech" header.h="From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1776332186; x=1776602186; bh=XBI41eIb5EU5Imt0X3QJY323Za5K20vqbhiyQsF2MHc=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=cRWr7WXnNwYozjPEINg3E5OS0lcDqp7ZeTnf/4ocBGc0Yi3b8oZzDcx4rjO8TEZo6 +C8uaSW3RI30R46lLMR+jzOB/VPnlq3oSMeHFky1+3Aj8d+YL0JRgpQ/9QWbHdB6Ya kTlQWg0ENxDDa4dleNr9E5UQ9vMZdwVcxpCi2j87I2gacNsLW3rv/hQTQKUnr8WKql GCjYNW3kcvKwMMpC9EJGC43CJbYBgVH7FBGGrLs1LsVjZq+D+upsFgma7hnKK9S0GA nh54hfQuredN64Z96qMRmKUKyw6OSRTF+F4SllcNbfvx/ah8wv2k4NR9eEU58OQUi8 VToQcfL9aZ/EQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1776332186; x=1776592686; i=teddy.astie@vates.tech; bh=XBI41eIb5EU5Imt0X3QJY323Za5K20vqbhiyQsF2MHc=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=T3J/JuBolgwiwvEsS3HqPwR1e5LcLf1C6aW6xneZcUwET+zeTj0wGn6KP85BFc8N1 +qOzySUgBnteg7s3Wkpq36afJqbLBWFAURGg1jyBEojVHj2Hme1TjYLNpeLkE6jKcZ S8F7YYCpAM58+09KMChJl9JzGTL9PEL7SZbQab1J8oDHH2+o0C4vQtq+lEVCGV8LKt SQiwG9GI6yLtl8X/qq5ADhFjz1oTi389zzuYzzBT7zAuxE844aQHpU7GamR4xLBYMB 2Iu02RszTH39pPpvjMb5Ik2kPhKsqoinqXSABUXw+wdkq45PVJBKUVp3OoTdpwlXZy y8gGpe34lmHcg== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH=20v2]=20x86/vmx:=20Avoid=20pausing=20on=20HVM=5FPARAM=5FIDENT=5FPT=20in=20additional=20cases?= X-Mailer: git-send-email 2.52.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1776332185305 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" Message-Id: <10315bf1a012edf4821f7386b3142e56b6c23e34.1776332054.git.teddy.astie@vates.tech> X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.d274f2a866104456a30f2c4c29706734?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20260416:md Date: Thu, 16 Apr 2026 09:36:26 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-ebf023/1776333864-293773FF-E3D5F8CB/0/0 X-purgate-type: clean X-purgate-size: 1205 X-ZohoMail-DKIM: pass (identity @mandrillapp.com) (identity teddy.astie@vates.tech) X-ZM-MESSAGEID: 1776333897452158500 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 --- v2: - rebased patches with staging xen/arch/x86/hvm/hvm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 4a81afce02..61871dbd3e 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -4237,11 +4237,13 @@ 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_unrestrict= ed_guest(v) ) { d->arch.hvm.params[index] =3D value; break; --=20 2.52.0 -- Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech