[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/4] x86: Drop cross-vendor support
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Thu, 22 Jan 2026 17:49:36 +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=1q3pybJ8njcZIqPSc+UtUPk8iWYvVUF/kPq+Kf/ddO4=; b=eaiGPHbviMO9RbjfL+YOXehUABb2lj7YhCitsVWSpbBKwBEsyFUbGA+v5PLIf/hMp0yokKg4kKe3R20svQjZCTlzy5aWBRbU/UVL1RzA1Ec1+b9zmqperbA1JMpx8W8gex5+SmsTtE2ubBqMNUtZGOKrZX4n+gu2b6c9Q+ehcwdK8ealucb3sLaGCHobZeVlAYkP+uvxot2dnJYkq0fZLMsq7c+bzP3c0gY8D+oV6dNv4NGg/u8PZ8Zz0teO4FIdE+T1Lx5vjIWZGx1v7WxxvHGc05Wpphl3MSabRkCG9l+6XWGd8hY2TTUmuF5CPCHv+7Bey0aoHjCpWCfVE+APWQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=T+3n0cPcLdk9SVEHj7IowrD+qD4j3QTx9OdQwfolsb4sgjQ58gD6ZjRjwRmW1RsaOH9FUaQRoisXT3M26l2+3KWBftnvBrfwVa+AXcq3ccyPOsI1+LRC6AgrM6+URT2xDsqtwO71dZ1dvdgzSnr2wKZ3rgLLi74F+ze1fGdCQv1446vexcYK5ittF9ctp4GH2UqEt22XbBhWNdKuU2I2KqDyLGk/khPdO/MGTq91sGh1tn5e8qetphZQoWOpSwYy2hNz2ASbNHXEAJTb/3OIDci58r/Va3uVI78tfP9TLajam+dDgEzZJ1jg9h6lLVskUS4goXJED7/9bcv1C54dkA==
- 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, 22 Jan 2026 16:50:25 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
pipeline:
https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/2277124833
(pipeline differs with the CHANGELOG patch being separate. Nothing functional)
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 non-FEP cross-vendor handling in #UD handler
x86/hvm: Remove cross-vendor checks from MSR handlers.
x86/svm: Drop emulation of Intel's SYSENTER behaviour
CHANGELOG.md | 4 +++
xen/arch/x86/hvm/hvm.c | 25 +++----------
xen/arch/x86/hvm/svm/svm.c | 46 +++++++++++-------------
xen/arch/x86/hvm/svm/vmcb.c | 3 ++
xen/arch/x86/hvm/vmx/vmx.c | 4 +--
xen/arch/x86/include/asm/hvm/svm-types.h | 10 ------
xen/arch/x86/msr.c | 6 ++--
xen/lib/x86/policy.c | 3 +-
8 files changed, 38 insertions(+), 63 deletions(-)
base-commit: 3001d9a19592bb4f12dab33f161ab2148513e30a
--
2.43.0
|