[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 00/19] GICv4 Support for Xen
- To: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Tue, 3 Feb 2026 10:01:31 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=epam.com smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; 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=A79W+o0/IRzyFjpGKaukQWZL32KI18czLLJ7WebtV/g=; b=cbisBeq2QEPWWbsDz/K8dAghu0xfW7LBaTNxid+WoZ/u6LkPukSK38NFNaNzZlDae0/IBXspolE0fjRABPNt3B+hsMvjOC5DxDmh0VNj4eZlBIamOQVLkZx0Dm/lZ63EeHegFFdWs0zak/6f02LYaQIuIcV+j36PxTWkYLsTpFxgq9YMGpngXpKzkrxlqtIogTkgjlTm2fbFGoYq7XjsQdefv3AMrVihL/+pr+iOKkj77kjqchwucWqsYtWq660Ydp6Kw1GtyH31RY959baCtKIWbt1FKhJIECU1S195M/W2jl4lOmi/36t9FZbLeLFacfo0OwcIMZjEx/i+kpGm+g==
- 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=A79W+o0/IRzyFjpGKaukQWZL32KI18czLLJ7WebtV/g=; b=LzxIxZDL+JvILJWAVnExvTz5BW7899MyBkEXHeJ9hqwa2MKHFl2pRmY7m1eF3GNph8j4baWWtap2o2hg1C7C8C1ssi1E7Eysk5xf3ql2SCMo7kNnmujLZ2zSvu5Z1sA0cPxtmXGGif3rScCJ5c16DPnGNhnXIDJV34Lth+wGipg262qCk4SExv8rdypbaEQCt3jqIYKcpcTb2w0+OetBCUTZ9l4nyCgm9mKKrjmRUxjMmXaxivcIu3xWV4icJ3jBv1uXHGgaQhK0EyG6A6hU8TzoHfOADbzufp3qRChY6FitLCe+0Y7xEk5dEx1QYTXOg6qrCm/AGSp2T0tCmXdWvQ==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=uo6w3/HZpvnZFZI74c65jCiqLGY+Rp3Qw5N85jANnBzlP2RpQFc94Q0GQ7D1DgYH9S3+PwHSWpjS3lgspkZ9wB9lpsozvp4UdZPxJ5qdozIn0xnEOutA6LIboPS7lbBDGnBMMRpFa8mYDBSv88G8I7sUgAv5th5EeTWgufE2dMvC3ztHsuHnWCzBUHpfKNt1H5BiALCXXmEUEM4iU587on9CI8ynw9V0AcPa1saqlrhx21lH0vTmx8x4/yJwUzmWJsgicZchInTmiVonbVNk1am08lVNCd3i3/qGSsHI3HRElvgWPDjWuBFP7VPfo83eCC0Ip0wOb+P87/zVzbC9zA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KGZLhtFvHIlLojvz6sYm3kSILVfeBSpAljQb7op+cKB6gJo4n9lPH3tlfDGLOXzUb/yieU74jarv/pFiilzj7a3iaLVK9eH1Ltpq+5chuwkcorBGVYsHlqY4yiZ/Wl8xOeb2+ImoNSArulI+f7PuPLCIWicvMnAHMSydXG1poW2pTek7MW+Ay9HFgDxoXPq9o5DyQpjwILz1sXwU15mIGaeg8jrWpXMzqwqZaB7baGyy07M+Y1360GJVyfnoUKla6g5HUIqMgKQWWj2R2gW7kO3uaF+HMpWeuzO+H2V1YfDtex++GZGASOi0Z70OZTr9qyh3aPXADxq2rSROnZwtlQ==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "xakep.amatop@xxxxxxxxx" <xakep.amatop@xxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Tue, 03 Feb 2026 10:03:07 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Thread-index: AQHclF8GgI2Kr/X/QEO5wnP/6sbdXbVwv1qA
- Thread-topic: [RFC PATCH 00/19] GICv4 Support for Xen
Hi Mykyta,
We have a number of series from you which have not been merged yet and
reviewing them all in parallel might be challenging.
Would you mind giving us a status and maybe priorities on them.
I could list the following series:
- GICv4
- CPU Hotplug on arm
- PCI enumeration on arm
- IPMMU for pci on arm
- dom0less for pci passthrough on arm
- SR-IOV for pvh
- SMMU for pci on arm
- MSI injection on arm
- suspend to ram on arm
There might be others feel free to complete the list.
On GICv4...
> On 2 Feb 2026, at 17:14, Mykyta Poturai <Mykyta_Poturai@xxxxxxxx> wrote:
>
> This series introduces GICv4 direct LPI injection for Xen.
>
> Direct LPI injection relies on the GIC tracking the mapping between physical
> and
> virtual CPUs. Each VCPU requires a VPE that is created and registered with the
> GIC via the `VMAPP` ITS command. The GIC is then informed of the current
> VPE-to-PCPU placement by programming `VPENDBASER` and `VPROPBASER` in the
> appropriate redistributor. LPIs are associated with VPEs through the `VMAPTI`
> ITS command, after which the GIC handles delivery without trapping into the
> hypervisor for each interrupt.
>
> When a VPE is not scheduled but has pending interrupts, the GIC raises a
> per-VPE
> doorbell LPI. Doorbells are owned by the hypervisor and prompt rescheduling so
> the VPE can drain its pending LPIs.
>
> Because GICv4 lacks a native doorbell invalidation mechanism, this series
> includes a helper that invalidates doorbell LPIs via synthetic “proxy”
> devices,
> following the approach used until GICv4.1.
>
> All of this work is mostly based on the work of Penny Zheng
> <penny.zheng@xxxxxxx> and Luca Fancellu <luca.fancellu@xxxxxxx>. And also from
> Linux patches by Mark Zyngier.
>
> Some patches are still a little rough and need some styling fixes and more
> testing, as all of them needed to be carved line by line from a giant ~4000
> line
> patch. This RFC is directed mostly to get a general idea if the proposed
> approach is suitable and OK with everyone. And there is still an open question
> of how to handle Signed-off-by lines for Penny and Luca, since they have not
> indicated their preference yet.
I would like to ask how much performance benefits you could
have with this.
Adding GICv4 support is adding a lot of code which will have to be maintained
and tested and there should be a good improvement to justify this.
Did you do some benchmarks ? what are the results ?
At the time where we started to work on that at Arm, we ended up in the
conclusion
that the complexity in Xen compared to the benefit was not justifying it hence
why
this work was stopped in favor of other features that we thought would be more
beneficial to Xen (like PCI passthrough or SMMUv3).
Cheers
Bertrand
|