From nobody Sat Oct 4 22:10:26 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=1759149417; cv=none; d=zohomail.com; s=zohoarc; b=KdQ8EwGdVFtNF1NdYvFTJHFHtYrzjG3vR5K+uMsqussiws6GNYi8TfuBfwV9oj9q3fumKT5dNLbUFEoB/gvwyjIs9aWCqpzhgY+yK7NTQ/fuMZeAfbGClz9m0ZuK8aydlrkmeLvlzGJwuQucxpq3WeNA0HAuA9g1a/bLIL9KDxE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1759149417; 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=YnSW9gELxUcxloQJ2wKYxscreQekHZqw75K18b2Lbho=; b=hj1xsqwdhzU+Q08+iPAXqP608a8BfSW4hZ1vly2BM3E003X1ewJUWg+YA23L/eVUnl2nPSgbCal3brD11mKRLamYjnYYzXJFJKabkztRsLNLSe3Mr6PJTopDrIy4VJ/qZSkVGMVjnVps/IG9YLnbBSAEl0gpmEj1ZQw7KV5GrXg= 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 1759149417046876.7878171117642; Mon, 29 Sep 2025 05:36:57 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1132879.1471097 (Exim 4.92) (envelope-from ) id 1v3D7M-0000Hw-5Y; Mon, 29 Sep 2025 12:36:36 +0000 Received: by outflank-mailman (output) from mailman id 1132879.1471097; Mon, 29 Sep 2025 12:36:36 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1v3D7M-0000Hp-2w; Mon, 29 Sep 2025 12:36:36 +0000 Received: by outflank-mailman (input) for mailman id 1132879; Mon, 29 Sep 2025 12:36:34 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1v3D7K-0000Hj-GO for xen-devel@lists.xenproject.org; Mon, 29 Sep 2025 12:36:34 +0000 Received: from mail132-16.atl131.mandrillapp.com (mail132-16.atl131.mandrillapp.com [198.2.132.16]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id ed8d4d53-9d30-11f0-9d14-b5c5bf9af7f9; Mon, 29 Sep 2025 14:36:32 +0200 (CEST) Received: from pmta09.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail132-16.atl131.mandrillapp.com (Mailchimp) with ESMTP id 4cb0zz09xHzB5pFhv for ; Mon, 29 Sep 2025 12:36:31 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 6fa71c65d6dc4ebbb0a9e75aa3c277f5; Mon, 29 Sep 2025 12:36:30 +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: ed8d4d53-9d30-11f0-9d14-b5c5bf9af7f9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1759149391; x=1759419391; bh=YnSW9gELxUcxloQJ2wKYxscreQekHZqw75K18b2Lbho=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=tRKtT+grGRD7c/odQU2LEoKSB7rhYzUyieCQ39ahD2J75bQPKD1priTmgK6nlh+Kz XGwbKBUtPlh92RSYzg+TOFvR/5qv5ByQSdWsBR7/OTLpV7F7fFSCbuOXReHD4TO/RK oRW5NXp4aAt5n6ADDRAqsQmjjWER/oJ1H7hN5MGXwqexQlD8bZkIazsO4IwOnx6SEF J1+Qqg7/ZDcfmg24DBSH3TvI8a9DJHkNwAxkRXqR8GU5sSz/y92NF07zD4XVElLa7n tbcR+5RK1VyNmaooytsRtZk76uO0khiKJePecckMkmJgKDO/cxgT3ib+G9xFW3aMY+ 79fWXm8ENRhgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1759149391; x=1759409891; i=teddy.astie@vates.tech; bh=YnSW9gELxUcxloQJ2wKYxscreQekHZqw75K18b2Lbho=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=Tg0g1LnoGgLI0Fvzw9egH0Ox/2EpcBByDwFKo8uQW3WLSDO4TbdzRdCR3xyH84iFf XrBw4BSX6zcvZW7ukHxCjhsjlJhhjtHKxNZwwELQ5kPspsnrWQ/FXo9OEOt457RnVB dEZxTi92FOxIbK4SozFUY5gkz85zEzyd3ivLgF8+6ofui48rUoasM7kAVr/1LTMa15 Mut9i2mdGIrghnkSh7baP3Shz95gGFAtDnOSBQtywn9ob+luOkVcaQ7c0izu6PXSLK oYkFxlEOo5nedZOKnNEmLIihOBPDPnRTpdaYIp4KSJpthaRSf12PINNm2+MUSecLKx bgdKIORh83cRg== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH]=20x86/hap:=20Inline=20"flush=5Fvcpu"=20in=20"flush=5Ftlb"?= X-Mailer: git-send-email 2.51.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1759149389822 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" Message-Id: 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.6fa71c65d6dc4ebbb0a9e75aa3c277f5?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20250929:md Date: Mon, 29 Sep 2025 12:36:30 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity teddy.astie@vates.tech) (identity @mandrillapp.com) X-ZM-MESSAGEID: 1759149418127116600 Content-Type: text/plain; charset="utf-8" flush_vcpu static function here is only used in one place which is just bel= ow where it is defined. Inline the function to reduce the noise and clarify what we are doing. No functional change. Signed-off-by: Teddy Astie --- xen/arch/x86/mm/hap/hap.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c index 2f69ff9c7b..407c80afab 100644 --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -721,11 +721,6 @@ static pagetable_t cf_check hap_update_cr3(struct vcpu= *v, bool noflush) return pagetable_null(); } =20 -static bool flush_vcpu(const struct vcpu *v, const unsigned long *vcpu_bit= map) -{ - return !vcpu_bitmap || test_bit(v->vcpu_id, vcpu_bitmap); -} - /* Flush TLB of selected vCPUs. NULL for all. */ static bool cf_check flush_tlb(const unsigned long *vcpu_bitmap) { @@ -742,7 +737,7 @@ static bool cf_check flush_tlb(const unsigned long *vcp= u_bitmap) { unsigned int cpu; =20 - if ( !flush_vcpu(v, vcpu_bitmap) ) + if ( vcpu_bitmap && !test_bit(v->vcpu_id, vcpu_bitmap) ) continue; =20 hvm_asid_flush_vcpu(v); --=20 2.51.0 -- Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech