[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] xen/arm: XEN_DOMCTL_get_address_size hypercall support
- To: Demi Marie Obenour <demiobenour@xxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Milan Djokic <milan_djokic@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Fri, 3 Oct 2025 12:00:28 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gmail.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=/9svBkBdb7PQgex93mrktmbTOkv9ikr/cj/ramRYAek=; b=CqvCrCLq77s+MRs0hJYLi/Bmw5MyNwys3prWcA7lVhkXayHERcrFD9AN9tMHjdF0HJ+a45EyQDYTYdvXBe4G1bVz5JhIfnW6Fkj0IHUVQHvj27ZDUL5zcGs7mkG4EkmmCptUoO0q298gxKADeXO4m9A2he5aNFPQ5j+83Lsua8VXV/+TBREWQILeYYImLEDKoYvLFxFCVE6xnL4mNQ1BEyCXz2MKMJa8VdEmmPLK/eVVShSqsV8X7gks8d3H7RBr6ffmLisLkBotFmvPycI/Nezl0ETCRjdPD2MiqOiel9VCJ4rNO51KKopFNySs5PPDnxoQJ3KY0yv7TYrDGtiYkQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pzjdR+d46JXnM3CC3XJsnfU/t3sYJCySq6Q4wxv6W27QsKoWSx8U5Mgsr+sy/WPa6f6eOqbNQ1gZFRorleY8ppGnJU+TVTvaDgpNkWa4zs4u0z5tgkuJNj9O7EufGExZjdkWH18eehtf7gDtSghoMERKkKvNWREryq1T/ddim3dp8C0J2T0J06DxzJjwEbzVgUDhlUUrxUVy1526yuWPsgb74P1G/gW3vy8k9iHxysbVWJ2TMDakDSarmFuxKsbtsRm5LUhoTLRMAab5VkiYVuGjwSZWFPkkR62Ct5QdygefRoruz0+5XFX9Kt64RWJlOouhApg3p8Ohj1RzploO0Q==
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Fri, 03 Oct 2025 10:00:57 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu Oct 2, 2025 at 8:27 PM CEST, Demi Marie Obenour wrote:
> On 10/2/25 06:10, Andrew Cooper wrote:
>> On 01/10/2025 9:01 pm, Milan Djokic wrote:
>>> Signed-off-by: Milan Djokic <milan_djokic@xxxxxxxx>
>>>
>>> ---
>>> XEN_DOMCTL_get_address_size hypercall is not implemented for arm (only for
>>> x86)
>>> It would be useful to have this hypercall supported for arm64, in order to
>>> get
>>> current guest addressing mode and also to verify that
>>> XEN_DOMCTL_set_address_size
>>> performs switch to target addressing mode (instead of relying on its
>>> returned error code only).
>>
>> Please don't copy this misfeature of x86 PV guests into ARM.
>>
>> Letting domains be of variable bitness after domain create leads to a
>> whole lot of bugs, many security relevant.
>>
>> 32bit vs 64bit should be an input to domain_create(), not something that
>> is edited after the domain has been constructed.
>
> Does this mean that Xen guests cannot support multiarch?
HVM/PVH x86_64 cannot not be multiarch. All APs start in 16bit and proceed to
32 and 64 bit mode, in that order.
It's only PV that has fixed bitness.
Cheers,
Alejandro
|