[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding MSI support for virtio-pci to QEMU as Xen backend on ARM


  • To: "qemu-devel@xxxxxxxxxx" <qemu-devel@xxxxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Fri, 8 Dec 2023 09:59:49 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=L1Z4NGrVxo/17WzJ6qKz8BIGrjuk3RC2hZ4XhSwzyzc=; b=b+Qybmq0ZxUqVx6dG7cFw/9gd6R8AcsN/bKAeebJfd5LfPU2AlWJfLwZir6L/vGufOspYuh066YNWpuPFPvqcZ42y3+Q+DdQpmlbOAEZiZmdfIP9dnhQJGfEpEdPouzJF89J/clokNPmcJpagedDo75hESG3VkX6Lm/TOGrFLJYLHA04u7oTU+5U/0hD7gJaYoFXqIGVhd0vzNllhMxkxZ1MK6M7Agd9WKBD0wtjVvTNkyqN4gN2rpY1SQcWAwpaj17jyalQPiHzzhuWPriM6uhELSA57LAxhvNMhDhTQVVEHBHO5tWzR2x827yz0a2qoG62aor2tHf7HMFHhack7A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lEBWixT5L1lAKLEg8afPhdSltDQ30e14FFJXorHIpA8NZo+IOALeV+NJzMZsLi/JY4V7159FNw2twS9//7lSIKptZeB1lkLtgatk4ogWBSro+72K9mg8eXU/NJRF3HxYPr9O+F1yRdtfjGeGbmzfufI9BrIGrqPI83MZ3QKgEdYq8lho3v29YTCEp9/zFHK04TF9jJrmg9lO9cj7MEpNdH/aVH1zbsIF9/NuTIVJW58NUKrgI/tzvmX9yGXVr9W3xuTQktau5jnw23JfeaFCxruo+0PA9Ndz2cAQ1aHM5C11FB0B8atrV6l0a0vX1vfDB+M4Vtty43OSUk7yNN7qvw==
  • Cc: David Woodhouse <dwmw@xxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Vikram Garhwal <vikram.garhwal@xxxxxxx>, Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Delivery-date: Fri, 08 Dec 2023 10:00:08 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels:
  • Thread-index: AQHaKbww0FY6S40rbUa5Jf3nCF0vTg==
  • Thread-topic: Adding MSI support for virtio-pci to QEMU as Xen backend on ARM

Hello everyone,

I am currently working on adding MSI support to virtio-pci on ARM with Xen.
As far as I understand QEMU Xen ARM machine that is used for virtio-pci device 
emulation does not initialize any interrupt controllers. And that makes it 
somewhat unclear what is the best approach to adding the MSI support. So, I 
would appreciate some thoughts on this.
To trigger the MSI interrupt in Xen guests we basically need to call a single 
DMOP, which I am also implementing.

So far, I have come up with 3 possible approaches:
1. Hooking up the existing GIC code to the Xen Arm machine and extending it 
with the DMOP call.
2. Writing some new barebones GIC implementation with only the required methods 
(something similar to xen_apic.c).
3. Just hooking up the DMOP call to the existing PCI code based on 
xen_enabled() check.

Maybe there is something else that is better that I have missed.

Best regards
Mykyta



 


Rackspace

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