[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 09/11] x86: Migrate spec_ctrl vendor checks to x86_vendor_is()
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Thu, 11 Dec 2025 17:58:34 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com 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=inpOtOOOx85Hkfv3AGqVmFHAJKG7KeiIe+lWCogNBos=; b=bKb3pK0ycDefy+IIUGBwhhvh1KuEOPaalXUQ2WpQzLTNvHRJlpxczG7Cvm1UdAIAB773gFegCkqyu0DPLTym25yaVYxUzBjrZjUn9g+439RXDJFxOPvgZXefnj9zTyPp4O/gDWxtREBJwpn2AEfF3PLEyRtc05B0MzWHvdfGsdjmOiLMOnHTv2zPR9Ds1fnTjaOyNo4WnIjoA8Z/f+FAJiO59ySIGWaqUs1g5Pxv4whzfrhnG7WSc1YYFylQDsnVRT1QiL0gW318GxwJ27DF5FaKeUa4U1codDeWdaN506ez+mWsDYbwvqw7YmW7ibxz04Jqavnwzk15itU7VCF/jg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jnVTBTHV4tLYUa0hbc5OqZDb8giq4bG4OXwq7r30ManRqwN8LDEI+7TPvVghCf5fKYDZ0uTE62oZtSh1sTg8UsXqw9FUW7Tz1SSR8ocFanqW0kKLghmXSbO2bokUKl5d0teMrOO7vBtlEg5vAEekjKVIyE9a74WK5EZ83mj9uq2bY6Pq8+37nm+UYXZWQfSoPIiKuhAnbpWk6YSjqvmfo500y0OrlPDGkVSecB6z3EFZrDNaNEOAxrzk7kVlDDW7zH8+2EwsNAAirZTlBymIZnIN0iTYL4XJpX6ZFVOxJsGy+zveX+c9pdnPJKGRHg991o/oi+rYUQqrth9hzrEJQQ==
- Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 11 Dec 2025 16:59:02 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu Dec 11, 2025 at 4:38 PM CET, Andrew Cooper wrote:
> On 11/12/2025 10:31 am, Alejandro Vallejo wrote:
>> Seeing how both you and Andrew seem onboard with dropping cross-vendor
>> support
>
> I found another cross-vendor dropping which you'll want to look into.
>
> struct svm_vcpu contains three guest_sysenter_* MSRs.
>
> In AMD CPUs, these MSRs only have 32 bits of storage, with the upper
> halfs write-discard. They are switched via VMLOAD/VMSAVE.
>
> However, in the cross-vendor case, the upper halves are needed for 64bit
> kernels setting up SYSENTER support. Therefore, they're unconditionally
> intercepted so we can avoid losing the upper half.
>
> By dropping cross-vendor support, we can get rid of these fields, allow
> the guest unconditional access, and simply the MSR intercept logic a little.
>
> ~Andrew
Sounds straightforward, I'll add it to the pile.
Cheers,
Alejandro
|