From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paul Brook <paul@codesourcery.com>, Avi Kivity <avi@redhat.com>,
qemu-devel@nongnu.org, Carsten Otte <cotte@de.ibm.com>,
kvm@vger.kernel.org, Rusty Russell <rusty@rustcorp.com.au>,
vi
Subject: [PATCHv6 00/12] qemu: MSI-X support
Date: Sun, 21 Jun 2009 19:44:57 +0300 [thread overview]
Message-ID: <20090621164457.GA10164@redhat.com> (raw)
Here is the port of MSI-X support patches to upstream qemu.
Please comment or commit.
This patchset adds generic support for MSI-X, adds implementation in
APIC, and uses MSI-X in virtio-net.
Changelog:
- since v5
make sure that load does not modify registers that guest can not change
replace global msix disable flag with a per-device flag to control the number of vectors
- since v4
rebased to latest bits
- since v3
call to resize_region on load
split patches a bit differently to address style comments by Glauber
update commit message to clarify what msix_support flag does
- since v2
rename mask -> wmask to avoid conflict with work by Yamahata
- since v1
At Paul's suggestion, use stl_phy to decouple APIC and MSI-X implementation
This uses the mask table patch that I posted previously, and which is
included in the series. That patch has been slightly updated due
to mask -> wmask rename. Isaku Yamahata, maybe you want to
update your patch series with that.
--
MST
Michael S. Tsirkin (12):
qemu/pci: make default_write_config use mask table
qemu/pci: helper routines for pci access
qemu/pci: add routines to manage PCI capabilities
qemu/pci: check constant registers on load
qemu/pci: MSI-X support functions
qemu/apic: minimal MSI/MSI-X implementation for PC
qemu/virtio: virtio support for many interrupt vectors
qemu/virtio: MSI-X support in virtio PCI
qemu/virtio: virtio save/load bindings
qemu/pci: add pci_get/set_byte
qemu/net: request 3 vectors in virtio-net
qemu/net: flag to control the number of vectors a nic has
Makefile.target | 2 +-
hw/apic.c | 43 ++++++-
hw/msix.c | 378 ++++++++++++++++++++++++++++++++++++++++++++++++++++
hw/msix.h | 34 +++++
hw/pci.c | 245 ++++++++++++++++++----------------
hw/pci.h | 106 ++++++++++++++-
hw/syborg_virtio.c | 13 ++-
hw/virtio-net.c | 4 +
hw/virtio-pci.c | 212 +++++++++++++++++++++++------
hw/virtio.c | 70 +++++++---
hw/virtio.h | 14 ++-
net.c | 18 +++-
net.h | 4 +
qemu-options.hx | 14 +-
rules.mak | 2 +-
15 files changed, 956 insertions(+), 203 deletions(-)
create mode 100644 hw/msix.c
create mode 100644 hw/msix.h
next reply other threads:[~2009-06-21 16:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-21 16:44 Michael S. Tsirkin [this message]
2009-06-22 3:03 ` [Qemu-devel] [PATCHv6 00/12] qemu: MSI-X support Isaku Yamahata
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090621164457.GA10164@redhat.com \
--to=mst@redhat.com \
--cc=avi@redhat.com \
--cc=cotte@de.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox