qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] msix: couple fixes
@ 2010-10-22 20:31 Alex Williamson
  2010-10-22 20:40 ` [Qemu-devel] [PATCH 1/2] msix: Allow msix_init on a device with existing MSI-X capability Alex Williamson
  2010-10-22 20:40 ` [Qemu-devel] [PATCH 2/2] msix: Pull in config.h for CONFIG_KVM Alex Williamson
  0 siblings, 2 replies; 15+ messages in thread
From: Alex Williamson @ 2010-10-22 20:31 UTC (permalink / raw)
  To: mst; +Cc: alex.williamson, qemu-devel, kvm

I've been porting the qemu vfio driver to use the common msix
infrastructure and hit a couple issues.  The first patch addresses
the problem that a device may already have MSI-X capability setup
and non-adjustable BARs, so msix_init should be able to use the
existing capability instead of adding it's own.

I'm surprised we need the second patch, as I'm not sure how things
work today without it.  We allocate msix_irq_entries within a
KVM_CAP_IRQCHIP #ifdef.  This should be pulled in from kvm.h, if we
have CONFIG_KVM, but that's pulled in from config-target.h, which
we don't include.  We can add config.h to msix.c, but that only
works if the msix object is in Makefile.target instead of
Makefile.objs.  Feel free to fix this differently, but I think
something is wrong there.  Thanks,

Alex

---

Alex Williamson (2):
      msix: Pull in config.h for CONFIG_KVM
      msix: Allow msix_init on a device with existing MSI-X capability


 Makefile.objs   |    2 --
 Makefile.target |    1 +
 hw/msix.c       |   68 ++++++++++++++++++++++++++++++++-----------------------
 3 files changed, 40 insertions(+), 31 deletions(-)

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

end of thread, other threads:[~2010-11-01 15:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22 20:31 [Qemu-devel] [PATCH 0/2] msix: couple fixes Alex Williamson
2010-10-22 20:40 ` [Qemu-devel] [PATCH 1/2] msix: Allow msix_init on a device with existing MSI-X capability Alex Williamson
2010-10-23 16:18   ` [Qemu-devel] " Michael S. Tsirkin
2010-10-23 16:55     ` Alex Williamson
2010-10-28 15:00       ` Avi Kivity
2010-11-01 15:56         ` Alex Williamson
2010-10-22 20:40 ` [Qemu-devel] [PATCH 2/2] msix: Pull in config.h for CONFIG_KVM Alex Williamson
2010-10-23  1:50   ` [Qemu-devel] " Alex Williamson
2010-10-23  7:41     ` Paolo Bonzini
2010-10-23 16:16   ` Michael S. Tsirkin
2010-10-23 16:52     ` Alex Williamson
2010-10-23 17:29       ` Michael S. Tsirkin
2010-10-23 18:42         ` Alex Williamson
2010-10-23 20:38           ` Michael S. Tsirkin
2010-10-23 21:01             ` Alex Williamson

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).