qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] s390x/pci: set kvm_msi_via_irqfd_allowed
@ 2025-10-07 20:56 Matthew Rosato
  2025-10-07 22:14 ` Farhan Ali
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Matthew Rosato @ 2025-10-07 20:56 UTC (permalink / raw)
  To: qemu-s390x
  Cc: farman, thuth, pasic, borntraeger, richard.henderson, david, iii,
	qemu-devel

Allow irqfd to be used for virtio-pci on s390x if the kernel supports
it.  This improves s390x virtio-pci performance when using kvm
acceleration by allowing kvm to deliver interrupts instead of QEMU.

Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
---
v2:
 - add review tag
 - tweak commit message (David)
---
 hw/s390x/s390-pci-bus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c
index e8e41c8a9a..88852acf45 100644
--- a/hw/s390x/s390-pci-bus.c
+++ b/hw/s390x/s390-pci-bus.c
@@ -900,6 +900,7 @@ static void s390_pcihost_realize(DeviceState *dev, Error **errp)
     s390_pci_init_default_group();
     css_register_io_adapters(CSS_IO_ADAPTER_PCI, true, false,
                              S390_ADAPTER_SUPPRESSIBLE, errp);
+    kvm_msi_via_irqfd_allowed = kvm_irqfds_enabled();
 }
 
 static void s390_pcihost_unrealize(DeviceState *dev)
-- 
2.51.0



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-08 13:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-07 20:56 [PATCH v2] s390x/pci: set kvm_msi_via_irqfd_allowed Matthew Rosato
2025-10-07 22:14 ` Farhan Ali
2025-10-08  8:49 ` David Hildenbrand
2025-10-08 10:23 ` Halil Pasic
2025-10-08 12:51 ` Thomas Huth
2025-10-08 13:19   ` Matthew Rosato
2025-10-08 13:44     ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).