[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/4] x86: Drop cross-vendor support


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Fri, 23 Jan 2026 16:45:45 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.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=E2LZgz7RViTFQaAZafDex9Ohmlv4WcCjsBoF8X5oCxc=; b=uCiUQye0QHdiPUGZT5PzS3ad2jwyzULm2++HBzgi8+x5y3L5l99EtVIewfTS6R8lc5UINZnIhTIz1dF53W8IIVzQsu+IJgwJ7kLqamhwx0FXOzeSyU6Whzsd1pWZLqwtYABJvLHb/Z2TzY1bh7vX+pwTPl/LACJGiIAtQgMyXZMpNW+Pbu4G2XQ3rQX4P7Uvx4cPxQ8/kZ9MAw2JS8B777RgrgpuEvD/qM1AKZUVjbpMMgotpHcAJGdX6IWTzCwwnoP/TWzTFTwOiJd1oeYC5dAc9VHyo/8Incs7HKpP54bYW6ZEbnTLj1RKHcdgQ3WB0qqLCjOCFwpPOewl7KDWWQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qr5YHswiZpGDA5xBQzDN8ufrOpLLhqwLjQrZJCgFi+mMhCjWt+zmN5TEre3S4a936jYe1wPQ84nLZ/KLgZNIue5tpT70XmRkbQQ9hoYLLVFOnIJVsVPpwzIeUAgGCXnwhcQUTxKqcWefYi1I0SO0xGy5MDSswoDdm7mklqkDVBNE3HK8eS812ra0eeWnebIOHOtILN/xNfdBUQiefcoJoVG/9vvzPJ+AV47MRxwIyEjeqRMS10gDMciY8OTnOasTTl0C5j0rwQfQymlfbFmqSfT0UVRVCZtdU7tI2sMk2px9w/Q9zddgYKRghfht2IYiUdkxMPGJQ1nXOtbQfY8Viw==
  • Cc: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Community Manager <community.manager@xxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 23 Jan 2026 15:46:19 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri Jan 23, 2026 at 3:05 PM CET, Jan Beulich wrote:
> On 23.01.2026 13:10, Alejandro Vallejo wrote:
>> On Thu Jan 22, 2026 at 7:16 PM CET, Teddy Astie wrote:
>>> Le 22/01/2026 à 18:44, Alejandro Vallejo a écrit :
>>>> On Thu Jan 22, 2026 at 6:10 PM CET, Andrew Cooper wrote:
>>>>> On 22/01/2026 4:49 pm, Alejandro Vallejo wrote:
>>>>>> Open question unrelated to the series: Does it make sense to 
>>>>>> conditionalise the
>>>>>> MSR handlers for non intercepted MSRs on HVM_FEP?
>>>>>
>>>>> I'm not quite sure what you're asking here.
>>>>>
>>>>> ~Andrew
>>>>
>>>> The handlers for LSTAR and the like are dead code with !CONFIG_HVM_FEP as 
>>>> far
>>>> as I can tell. The question I'm asking is whether there is another code 
>>>> path
>>>> that might invoke MSR handlers for non-intercepted MSRs. I can't see it, 
>>>> but
>>>> I'm not sure.
>>>>
>>>> If there isn't I'm considering (conditionally) getting rid of them.
>>>>
>>>
>>> I think you can enter this path by making the guest execute directly or 
>>> indirectly a rdmsr in a emulated path (there are some cases like certain 
>>> cases of real mode or maybe vm introspection). I don't think that FEP is 
>>> the only way to do that.
>> 
>> For the emulation path, I think HVM_FEP is the only means to trigger it, as
>> neither {rd,wr}msr access memory. VMI (as you mention) and nSVM (as Andrew 
>> did)
>> do make sense, but I don't see any others. I don't see how real mode could 
>> cause
>> anything (I'm fuzzy on VMX, but I _think_ instructions do execute, just in
>> a weird paging-on mode akin to v8086).
>
> Iirc there's still the situation where for PAE shadow code tries to emulate up
> to 4 insns in a row, in the hope to find the other half of a full PTE update.
>
> Jan

That's a rather obscure optimisation, thanks for bringing it up.
multi.c:sh_page_fault() is rather... opaque to just look at it and expect to
find anything.

Cheers,
Alejandro



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.