[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 3/5] xen/arm: remove XEN_DOMCTL_CONFIG_GIC_NATIVE from the ABI
- To: Julian Vetter <julian.vetter@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Tue, 6 Oct 2026 13:13:13 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vates.tech 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=NKmu5PKnjodKGkcEl00POImHpnu655yNZv7H13pskz4=; b=VxFWeBQxCvMRd+K4y4xL5mJOlhX4GhURbyzzcva/74I8QLCjpL++MJluD9MhHxWyu3ubSC2d2AwpERwlp1yyJ7mrW6wCk6Lj2oowkwrORC33b9AAYWYHeRbYoreDTf9THTirhB/vu3rHAbb31nrdp75SpNM3voI/tmue0ck4YonLBt63zlFLGNRCvUyMToGjP16U8kDyTzQDybUCQV/hai3RYZNQjT950zUMrFqP3hSpdbhB5fmHyV0fdZEkb6uKsmTz18JO4NXmvUfEdD7y/HqMh8RU9m/W76LOqzFcqSNmav12fAzyd8ymojwtNgmGAduRBsoGPzdPoHUt8O8VMw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AMbRYF7qoG90OmTvTIZXaSqWuRTaP/UGTMzFdWP+58wMH2G3JtEcxUKICbnu8qf4qSQNtcpq25SsMLtzfB3rvoStU78jYnBGdei2KeFc0w0PnA/6U86icY+ai7/TsAFoT1pDmw+BMpQ7UB5IetErANKXC5DbCoiHxvDmzUGm+eNEQtOeTGJ7m/+DCeCPeNP1zrIqSx2TwMJjYrDYNcum7KJXGN2OT/F7PFF20g9lmiy2LibevzbInqZE1n3KDPdASpUDkX9GsZMYlNvIaono3gSlBAsRIffA5Ybqp/co4zFKOt7/J1DewEp18wMqrGehjdMqDsFzVe7cV4mOh2neuw==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Cc: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Community Manager <community.manager@xxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Andrii Sultanov <andriy.sultanov@xxxxxxxxxx>, Guillaume Thouvenin <guillaume.thouvenin@xxxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Oleksii Moisieiev <oleksii_moisieiev@xxxxxxxx>, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>
- Delivery-date: Tue, 06 Oct 2026 11:13:33 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 28-Sep-26 14:19, Julian Vetter wrote:
> Now that the toolstack always resolves a concrete GIC_V2 or GIC_V3
> before calling createdomain, nothing on the Xen side needs to resolve
> GIC_NATIVE either:
>
> * A new gic_domctl_hw_version() helper returns the
> XEN_DOMCTL_CONFIG_GIC_* value matching the host's gic_hw_version().
> * arch_sanitise_domain_config() uses it to validate the requested
> version against the hardware, rather than resolving GIC_NATIVE and
> writing the result back into config->arch.gic_version. A guest must
> use the host's GIC version, except that a GICv3 host with the GICv2
> compatibility mode enabled may also run GICv2 guests. This is the
> same information that XEN_SYSCTL_physinfo reports to the toolstack.
> * create_dom0() and arch_parse_dom0less_node(), which both always want
> a vGIC that exactly matches the hardware, use the same helper instead
> of GIC_NATIVE.
>
> With nothing left resolving or relying on it, drop
> XEN_DOMCTL_CONFIG_GIC_NATIVE from the public ABI. Every caller must now
> request a concrete GIC_V2 or GIC_V3.
>
> This is an incompatible change for any toolstack still passing 0
> (formerly GIC_NATIVE) expecting Xen to auto-select a version. Add a
> CHANGELOG.md entry, noting that available GIC versions can be queried
> via XEN_SYSCTL_physinfo.
>
> Signed-off-by: Julian Vetter <julian.vetter@xxxxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
~Michal
|