[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 16:27:05 +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=ndlUJPM5U2si1CrqH2NSJdSjz7TP+nLjnAauemSgZW4=; b=zEHohvpvT8EgHqYEwOVRK8gX4D+yROcanA8EPJh77gdfbBMajOkHBF8G9ogU/IPlKkqCuQgPDFRWsqc+UFZwBQDVd1yojiYB05ipkiPDwnday+/qGudVgMVu3E4ToZLbx4lv0FwWJDbF3X1BwU3cvEsT+3Tfhmm6Y1XaMHbOoIFBrW9JhG9WzggAwhConzpYjv2ZZvxdzDbDgbU/ntj3i/swCo/HrYBpdRqLJ1tMSiT6zN7My4eJPcE8n9lB19QXoo8z3OWVvI7RNsw2UYRiV6wBF+MaKz9IZ0+qrl/tf4HhUr4gpNiLhDCV+j4fhm1swMcARCPpw0rf9yF7F0vt6w==
  • 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=ndlUJPM5U2si1CrqH2NSJdSjz7TP+nLjnAauemSgZW4=; b=t0T/625Z5RxWI7O/8FldVL8coM2vqYPRw7y2CdZsnoTrqvg+PW3mhgxucxtz/abtCzxPgB3UttRaACN1r+lfDMTDxAJ3X1nVkC4ErGaChLxQiHi8uulKAYqP/3IyHJ5uY3Pxh1zVggHujS5CnMaSmnzHUGNvE/TSk5UvZTYy9RqHSU+9151UmpRwjMK/ZaDHQQ2I8vEke6RlUgm0xRaqiPmQ55DB7+9J3uKNOl5ZwGGv4vBKVnNdnWSu/fdOqRzG7lrTsL8zl1SesIg0zTMIECU/fDqLYJeEcExZQDynmXlt4HME1Nr98Wzmp/2DzpsLpbU6TapUAaP+S042S/zSfQ==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=YTZgPIEz75NBIuHqZ56+MFKjsrtmsycwemvk7Js9LK8HQfIuIQTp4Rs5h9sKmerheqaCBb8ZacsJ6jk7CD4h4UBnPB+b6d0ii7ngplqoi9UlV0uYu9RwE+wyQeiA1XiQUh+MigrFBSykwmdmBjetZcTexyGI34BzE83cZd81o9C9vGNL9Is5TX5gRveNRKkBxmkcx/ntc5lVQlsKWggGdENbwSH3UODh+njMYz10YkobqUP1O5q3kHGTseL1GU6l5aaDUIjavwc10XN2QAhcYpTuqRyJGK9tkYM18iLrtlJhMsvf2ThWFN7g7x0qnsTkrF8b5/Eh7ppJDhD517q4ww==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ejY2T1rYT/WJ7yxxJyxRO8yb3hLZrdivNQy1X9d7Ic1R3IYj8/8fm6mcYxRaVZCSlzy+36JHRGp0f6hnk8GbzJK8f77VtNqYGCUqPM9XnIgykwtFN0214FYOigpOxg4ou3RqQUbIv+TCKNyOwQWRKH8Xm4qbMs66ZPJIx0aNIDQuVK47bhza7u2Q33WBMuSWPgE1nkM/oZr7su+VO6TXxL4Hds/9n24lbsnLhxbCMN2xhZQmcugys89+NDmLC+4vliOV3wi90ucyhuO4fcTpD4mo/fkgE79iTHr92u22UBOguVb6q/9PIVOTkkBzm7X2NTrOSLEozsekGCGT5km9+g==
  • 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 16:28:29 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHclF8GgI2Kr/X/QEO5wnP/6sbdXbVwv1qAgAAn3QCAAEPbAA==
  • Thread-topic: [RFC PATCH 00/19] GICv4 Support for Xen

Hi Mykyta,

> On 3 Feb 2026, at 13:24, Mykyta Poturai <Mykyta_Poturai@xxxxxxxx> wrote:
> 
> On 03.02.26 12:01, Bertrand Marquis wrote:
>> 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
>> 
> 
> Hi Bertrand
> 
> Current priorities are:
> 
> - CPU hotplug
> - Suspend to RAM
> - GICv4 (we will follow up with benchmarks)
> - SR-IOV
> 

Ok Let's focus on what is already there and being reviewed before GICv4.

I will follow up and your CPU hotplug review and suspend to RAM is already 
advanced so
we should focus on finishing those first.

Cheers
Bertrand

> 
> MSI injection, dom0less for pci and PCI enumeration are low priority for now
> 
> Suspend to RAM is handled by Mykola Kvach
> 
> SMMU and IPMMU support are merged already AFAIU
> 
> -- 
> Mykyta



 


Rackspace

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