[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/4] x86: Drop cross-vendor support
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Thu, 5 Feb 2026 18:09:18 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wav6Z2ioA7k2G+/mHojpKLayWyPe4WxqQKYqIs0jsWQ=; b=fOlbwhDoC+XApz5O702GIlEv4iKhwEh13rMcJz/zqSsDDIy/2Cz2UqTds0r072wz4TulMoXnfT71YODLiUNXwNu5CUfet3ZYzvkm/Mh/CusRVucz5+WOSGK9iYUDHEGfqP7n/Nrtfc8BXtjVQY0AI0PWRH4VsdFw8ibo1d/QimDwMFANx9qqt3/iSEZz4zt8+NzsGRdesyjDjyssXqQ+6ZzIZsWt9LvVt/zx698HX+LYHLxY5dCss1AoCnKkObhEoq9Lrs0eTcYiO5xt+OVWSQ0QjzoIYbxvCPVBOBF7bPTnF7JJVrHGvITuVQfYXw23i+JY7Tn6bFaUFVl919cvGw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rEWs45gzZRNRlwD0QyJpaUTOMobc4HSmq/MW04+YIjtx6eYlrGJQiPrUx+arc8P0b41hmfsNkewvyWueU4249g7f3Md03F1GSXFGDYtL1ertKDkagwC3nS45fC/znpkott2c7CS9GTewwg8QktnB4d9lsQgEFiSKrbhryUrSojxsh1SygOZhk+VYY23WMZsFNAhJ/X25wL5OK3KjeqFx7UPiq+47vSw/kiImrWTakKF0AZU6j+z6Wv6W5b53DCgOsKtCpQ7PtSVAiEtoRUdC1NyWCBBfr3Q6Oma+dLZSeaj/xUkgBHb3OUBbUk8+xiAC3svLMIYdkCVGeuvWEYZxMg==
- Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Community Manager <community.manager@xxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>
- Delivery-date: Thu, 05 Feb 2026 17:10:10 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hi,
I got rid of the HVM_FEP condition on the #UD handler.
v1:
https://lore.kernel.org/xen-devel/20260122164943.20691-1-alejandro.garciavallejo@xxxxxxx/
pipeline:
https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/2308391515
Original cover letter:
As discussed in a prior RFC
(https://lore.kernel.org/xen-devel/dc68b9ce-38aa-4949-b3e7-a7c0a7ee9a25@xxxxxxxxxx/)
this series drops cross-vendor support. It includes the policy check that
was there and adds this on top:
* Eliminates #UD handler when HVM_FEP is disabled.
* Removes the cross-vendor checks from MSR handlers.
* Eliminate Intel-behaviour hacks for SYSENTER on AMD handlers and drop
intercept for SYSENTER.
Open question unrelated to the series: Does it make sense to conditionalise the
MSR handlers for non intercepted MSRs on HVM_FEP?
Cheers,
Alejandro
Alejandro Vallejo (4):
x86: Reject CPU policies with vendors other than the host's
x86/hvm: Disable cross-vendor handling in #UD handler
x86/hvm: Remove cross-vendor checks from MSR handlers.
x86/svm: Drop emulation of Intel's SYSENTER behaviour on AMD systems
CHANGELOG.md | 5 ++
xen/arch/x86/hvm/hvm.c | 77 +++++++++---------------
xen/arch/x86/hvm/svm/svm.c | 45 ++++++--------
xen/arch/x86/hvm/svm/vmcb.c | 3 +
xen/arch/x86/hvm/vmx/vmx.c | 3 +-
xen/arch/x86/include/asm/hvm/svm-types.h | 10 ---
xen/arch/x86/msr.c | 8 +--
xen/lib/x86/policy.c | 3 +-
8 files changed, 64 insertions(+), 90 deletions(-)
base-commit: 3d11d55e19b749697ea7c3799c264b83f5a57a80
--
2.43.0
|