From nobody Fri Oct 31 16:11:51 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=1744899910; cv=none; d=zohomail.com; s=zohoarc; b=QWxrRZFe2z+jiSiynCCHjWIinygEsGCG9Vjocrex3+lY2uugCsAmNYgD4V8nkevyoE12Z+TQgO2jX/C9E6g5KjHUy4stbwAm/SxFmckCsdiwgoH7MP4qzUMWvqAnwA5Oi+lg0Ug45rpm4SQ8OVxl9WicRc9Sn3KacNkljeucVCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1744899910; 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=uU2qQmHUgzWMJY0PgEiFWGMmWa82Cd+ekDeWVGOWNAc=; b=Bw2IaUUE3NeO8Ot/irZkcmjQZ7oWg4JH+JaDnmpNPloOli9hWZJi4JIRE50FCuKJd+N+KlrE0LwehY5i0lfe4k+0XTZgcFK3m9XL+RRUFEf/714mW0gSyK0DA3JFqq5gcF2xWVq5lkwTu1rVguBipJfCS7FfpjOsauhDohIpcUQ= 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 1744899910424255.2860734531364; Thu, 17 Apr 2025 07:25:10 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.957829.1350850 (Exim 4.92) (envelope-from ) id 1u5QAc-0003Do-1R; Thu, 17 Apr 2025 14:24:50 +0000 Received: by outflank-mailman (output) from mailman id 957829.1350850; Thu, 17 Apr 2025 14:24:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u5QAb-0003Dh-V6; Thu, 17 Apr 2025 14:24:49 +0000 Received: by outflank-mailman (input) for mailman id 957829; Thu, 17 Apr 2025 14:24:48 +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 1u5QAZ-0003Db-UA for xen-devel@lists.xenproject.org; Thu, 17 Apr 2025 14:24:47 +0000 Received: from mail128-130.atl41.mandrillapp.com (mail128-130.atl41.mandrillapp.com [198.2.128.130]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b5c7d2e0-1b97-11f0-9eb0-5ba50f476ded; Thu, 17 Apr 2025 16:24:46 +0200 (CEST) Received: from pmta08.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail128-130.atl41.mandrillapp.com (Mailchimp) with ESMTP id 4ZdgC03bKKzS62Gkj for ; Thu, 17 Apr 2025 14:24:44 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 7071b087b5af41eea43e2f018f894983; Thu, 17 Apr 2025 14:24:44 +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: b5c7d2e0-1b97-11f0-9eb0-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1744899884; x=1745169884; bh=uU2qQmHUgzWMJY0PgEiFWGMmWa82Cd+ekDeWVGOWNAc=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=gnDsh8HUA95QvACQy5XLRY3u/JG+KLPnwi7pLhTDsEWMBgWBSOuldb3rfmeGV0cX5 8Jry4bwx4qkDMGOkLFtO9OMJVRMHuyuY2i6zBgwYPV8b99mvFzMYjTQH0k9ydrtpOw Yajiv2gvITk1RSc3lmdBJX0VydxtyAHgmpxH3+I9URWUcIjzIh4M1IQGo+W+1EwwZe OqEl6En1gt2NGd2WxrdGl1E4lg5hDDiIjJvk+kBX8Uqld+tuNp2AFlLwZo0tR0g92J 2dDDy5f7FyDt9wyoctiCJv60dKUh3esCslFYdqDejNEg+vNceS7zmN8r2keAHK4g/W 8srdUl7ZOYGdg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1744899884; x=1745160384; i=teddy.astie@vates.tech; bh=uU2qQmHUgzWMJY0PgEiFWGMmWa82Cd+ekDeWVGOWNAc=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=yrO6aXH2fAFZHPhZHOBx9Sz2b3GLX0/ODvBatPb/Mu41Dwxu905bI308S97H8QDgU l5qLyKE2FtIHHmtJpvhbsuvFJRMSqRuNFd8B8Ixk72dLzs9S8oT6Wf/BdAg9TlChiP 6cJXhIBesghHG1PqII/4AytRKR4dajsH/fZxnHDfjrr862ao0EXa+F6MGK6ABgXvNL Zr32w787ARBwWFVllH9aHeR8FF8p3kB96fAz/yq7JbeB5YLjFuTYMc0MWbadexi12i OV2TKjndyFeQspX/Zs6MfYS5BpiTjG0jxnpQjwYnW3ZgazEjNqHNcT/cimHwkDpY38 lmYu5K2H7XDJQ== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH]=20vmx:=20Don't=20open-code=20vmresume/vmlaunch=20instructions?= X-Mailer: git-send-email 2.47.2 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1744899883537 To: security@xenproject.org, xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" Message-Id: <2d9480b75c80d49952812769f283a220c1753571.1744899753.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.7071b087b5af41eea43e2f018f894983?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20250417:md Date: Thu, 17 Apr 2025 14:24:44 +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: 1744899911604019000 Content-Type: text/plain; charset="utf-8" binutils 2.25 has support for assembling vmresume/vmlaunch instructions, so we don't need to open-code the byte sequences for these opcodes anymore. Signed-off-by: Teddy Astie Acked-by: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/hvm/vmx/entry.S | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/hvm/vmx/entry.S b/xen/arch/x86/hvm/vmx/entry.S index 6aaeb28a5b..2bfee715b3 100644 --- a/xen/arch/x86/hvm/vmx/entry.S +++ b/xen/arch/x86/hvm/vmx/entry.S @@ -21,9 +21,6 @@ #include #include =20 -#define VMRESUME .byte 0x0f,0x01,0xc3 -#define VMLAUNCH .byte 0x0f,0x01,0xc2 - FUNC(vmx_asm_vmexit_handler) SAVE_ALL =20 @@ -166,11 +163,11 @@ UNLIKELY_END(realmode) jns .Lvmx_launch =20 /*.Lvmx_resume:*/ - VMRESUME + vmresume jmp .Lvmx_vmentry_fail =20 .Lvmx_launch: - VMLAUNCH + vmlaunch =20 .Lvmx_vmentry_fail: sti --=20 2.47.2 Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech