[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] xen/arm: XEN_DOMCTL_get_address_size hypercall support
- To: Milan Djokic <milan_djokic@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Fri, 3 Oct 2025 12:05:18 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=epam.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=9G5ZTsr4oeDnjEW7f98NiznSh4CHSoXlhyMe1fIbGuY=; b=Gjmj5zL78cCaSNTdtTe3LMknH54Oj2aUf4XFTPVy1B6XLRqhhgYyHFc7W4wfQ1raBGpNzcWSGJcDNbMDIFoEaDBaBox7qOJn/J0LXEXgG5oyDPh+HJMc8aL5e3W6m+HzrT4FQn/IxG7/5DqIrlTJ3BdAXolLw7wpTagAELFfO18rgFKoUhF/nrBp4sddbjqX9kooSCfp/bqoinsmuGfs0OM0Mr4C2aE3IxRgFxfyFm3pUOR39uDsOv21Ls/O0HPJ9f9k/RFjfiqJN0xj8cvRKfFKBoY9VsNf0yHmox+NujkOGkbj7vnXQc7Gvh57af6/suQEObKBZV78UtNW0FnK2Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=U9ctMBZUr3WsUUUKU44PJHOkwBJgAl6xvSEsTPqilDDuS2eVKo01UMzom78k1sD+orzdEoARHb3d6jo34+bqqAXaLn9+PM8TATfAb92lrMVo1/mKoipJyImudySxsc8Tv6Cbq/aHdv3p9DrcerX5Oxd7H7atJdfP7rxTIAG/2vCop/KdUCa/Ms9WxvdB/iDDruI7KYJUFcLwsrj/0/ce4+fIwa0PHpQvI9O/PKMxUTdFKqpqXRJbvF9BhkWjGkuiFejVdtKIvL30JIE7xuPD4rMSXT04W/IdXglpIE4oSgnaPmW80QC7iKWfKKv3AIRZBR+8tuoooh6vBASPPKcAuA==
- 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:05:39 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed Oct 1, 2025 at 10:01 PM CEST, 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
Why is this helpful? You're racing against the guest transitioning between 32
and 64 bits, so the result is stale by the time you read it.
Do you care about the instantanerous bitness of the vCPU or whether you
created a 32 or 64 bit guest?
> 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).
You can't use that in HVM. Even if you could, why would you? What's the ultimate
goal?
Cheers,
Alejandro
|