From nobody Thu Oct 30 19:00:07 2025 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=reject dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1753893637; cv=none; d=zohomail.com; s=zohoarc; b=AKce7/Ua5Cx/ln8+vig3vPzJ++L4Ah2nZxg2gwC6Npm27ZMFNUIqtd39cTU0C0zg9INlDvkwVzVVJz4FUcaojHeav9hE7wSczzsveReQ6/2N+ikiq1zhN+9efgL06l6CqqTFdctWn0Uh3qTXsr/Wq1SslmNn6w34hdph4Iz1hK8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753893637; 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=AWuI6pPKvW1SrCk13N7ROhHK7lS8SGB4zDfXjt1i0+Q=; b=GLxV4keFEqi3eIGsJfETXIpsFw27o5x6bi0a0A6LnxrdhS6rc2jel/YdLsMhotaDMjDfAz8wvJ0zktTz8zdL3ZDNqrO4BDiIHqv4aPicXBFiTpKA1HzhAS6XNX35CJDOVa8krHEHdQabIq7SUrHLJYieOYB7VhHba5KoI3qTmD0= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1753893637854292.56556085011164; Wed, 30 Jul 2025 09:40:37 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1064233.1429952 (Exim 4.92) (envelope-from ) id 1uh9qg-0005VR-6o; Wed, 30 Jul 2025 16:40:14 +0000 Received: by outflank-mailman (output) from mailman id 1064233.1429952; Wed, 30 Jul 2025 16:40:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uh9qg-0005VK-3Q; Wed, 30 Jul 2025 16:40:14 +0000 Received: by outflank-mailman (input) for mailman id 1064233; Wed, 30 Jul 2025 16:40:12 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uh9qe-0005VE-4U for xen-devel@lists.xenproject.org; Wed, 30 Jul 2025 16:40:12 +0000 Received: from mail180-9.suw31.mandrillapp.com (mail180-9.suw31.mandrillapp.com [198.2.180.9]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id d8c022a5-6d63-11f0-b895-0df219b8e170; Wed, 30 Jul 2025 18:40:06 +0200 (CEST) Received: from pmta11.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail180-9.suw31.mandrillapp.com (Mailchimp) with ESMTP id 4bsdH86JgkzK5vhdN for ; Wed, 30 Jul 2025 16:40:04 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 55b65d1247c042dd9ec8fd02e67fba9f; Wed, 30 Jul 2025 16:40:04 +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" X-Inumbo-ID: d8c022a5-6d63-11f0-b895-0df219b8e170 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1753893604; x=1754163604; bh=AWuI6pPKvW1SrCk13N7ROhHK7lS8SGB4zDfXjt1i0+Q=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=LA7Ukm92qMrO9LOownDKSqo5iGh9J4IFa1Mv0VRAc5NcvRd5YLbu4VWo0cKddRmrc zpgY9AhqH9zKv7wf/WChOVxz48SlPpdsOuT0JYZm5DNcT4e6fCdS0nPBsIwbgxFFSm JfZtTZI0+/XrkYkgva7FdMK3YAiP9qtUGD6L/aVa5gc6gZQCSnD2PUIBZey/w5H90I cqtVPUYhQI3TZCAZxM7aFrctjvE5SgCmOS1hAP8cXrBkGlMy/oEdtAJ8qBa/AxCFBS 1HU024Awh8EQJatGr+zjnHR//33hw1iyH9pJ0iyZWg3EQb0EY0mWlPyFeouCJTord2 oZPEDk0QdNHNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1753893604; x=1754154104; i=teddy.astie@vates.tech; bh=AWuI6pPKvW1SrCk13N7ROhHK7lS8SGB4zDfXjt1i0+Q=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=YXvmJvmdiAiRQsvWBi+7an/j8y2nVnFdcIkPz15zNzm0HGgCINBfa4cwuOvuQfJ12 0DXTX7ivYvhYoqwZAC/UabFr4m32An2P+sDGTn6EbYJiIE3tUpJrcX/P7D/z2oWbea DaxPxjX8iyE6hqndD5oXoQXTDzMdDfW1Prcmv/C/QsZykhEJTxpkG1vuVhALnHK5/u 4qLWVL49CjYhhUHKkUx0i+bMCzhZYKup0z2Oknxdc8G40nrN1s7V31OiS6a/SVtovd HOwhmMgdwz36nc8gvs/EaLQIvXeSG7yijfkyJZLnscyhKQRtnzHmJuhS8ZZbSvxkV4 6RKHPXta03JLQ== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH]=20x86/vmx:=20Avoid=20pausing=20on=20HVM=5FPARAM=5FIDENT=5FPT=20in=20additional=20cases?= X-Mailer: git-send-email 2.50.1 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1753893603726 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" Message-Id: <698e46b8f986e649c661f4382c929abcc2827ec3.1753893493.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.55b65d1247c042dd9ec8fd02e67fba9f?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20250730:md Date: Wed, 30 Jul 2025 16:40:04 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @mandrillapp.com) (identity teddy.astie@vates.tech) X-ZM-MESSAGEID: 1753893640651116600 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 --- 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 e2720daf1e..39ff1bdbe1 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -4286,11 +4286,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_hap(d) || !cpu_has_vmx ) + if ( !paging_mode_hap(d) || !cpu_has_vmx || !v || vmx_unrestricted= _guest(v) ) { d->arch.hvm.params[index] =3D value; break; --=20 2.50.1 Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech