From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: mst@redhat.com
Subject: [Qemu-devel] [PATCH v2 00/15] virtio: device configuration and headers cleanup
Date: Mon, 2 Jan 2012 18:59:11 +0100 [thread overview]
Message-ID: <1325527166-23898-1-git-send-email-pbonzini@redhat.com> (raw)
This series cleans up device configuration in virtio:
1) all properties (features and not) are moved to a single macro
DEFINE_VIRTIO_XYZ_PROPERTIES. This makes the definitions
uniform across all three virtio backends.
2) all configuration is moved to a single struct, which embeds
the NICConf/BlockConf for respectively virtio-nic/virtio-blk.
This lets the DEFINE_VIRTIO_XYZ_PROPERTIES include these
pieces as well.
3) virtio-9p had some knowledge of PCI, but there should be
no reason why s390 or mmio backends cannot use it. These bits
are removed and moved back to virtio-pci.[ch]. Also, various
bits were using CONFIG_LINUX to test for virtio-9p availability,
and I changed them uniformly to CONFIG_VIRTFS
4) init and exit functions are moved to the header files.
This removes some of the #ifdef CONFIG_VIRTFS, too.
Tested x86_64, compiled s390x.
v1->v2: new patch 4; use CONFIG_VIRTFS in virtio-pci.*;
new patches 11-15. Dropped syborg-virtio.
Paolo Bonzini (15):
virtio-net: move property declarations to header file
virtio-net: move NICConf into virtio_net_conf
virtio-serial: move property declarations to header file
virtio-9p: use CONFIG_VIRTFS, not CONFIG_LINUX
virtio-9p: remove PCI dependencies from hw/9pfs/
virtio-9p: move property declarations to header file
virtio-blk: define VirtIOBlkConf
virtio-blk: move property declarations to header file
virtio-blk: move BlockConf into VirtIOBlkConf
virtio: move conf fields into an anonymous union
virtio-net: move init function to virtio-net.h
virtio-serial: move init function to virtio-serial.h
virtio-balloon: move init function to virtio-balloon.h
virtio-9p: move init function to virtio-9p-device.h
virtio-blk: move init function to virtio-blk.h
hw/9pfs/virtio-9p-device.c | 36 +---------------------
hw/{9p.h => 9pfs/virtio-9p-device.h} | 11 +++++-
hw/9pfs/virtio-9p.c | 1 -
hw/s390-virtio-bus.c | 18 +++--------
hw/s390-virtio-bus.h | 11 +++---
hw/virtio-balloon.h | 3 ++
hw/virtio-blk.c | 28 ++++++++--------
hw/virtio-blk.h | 15 +++++++++
hw/virtio-net.c | 13 +++----
hw/virtio-net.h | 46 ++++++++++++++++-----------
hw/virtio-pci.c | 57 +++++++++++++++++++++++-----------
hw/virtio-pci.h | 18 ++++++-----
hw/virtio-serial.h | 12 ++++++-
hw/virtio.h | 22 -------------
14 files changed, 145 insertions(+), 146 deletions(-)
rename hw/{9p.h => 9pfs/virtio-9p-device.h} (46%)
--
1.7.7.1
next reply other threads:[~2012-01-02 17:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-02 17:59 Paolo Bonzini [this message]
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 01/15] virtio-net: move property declarations to header file Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 02/15] virtio-net: move NICConf into virtio_net_conf Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 03/15] virtio-serial: move property declarations to header file Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 04/15] virtio-9p: use CONFIG_VIRTFS, not CONFIG_LINUX Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 05/15] virtio-9p: remove PCI dependencies from hw/9pfs/ Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 06/15] virtio-9p: move property declarations to header file Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 07/15] virtio-blk: define VirtIOBlkConf Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 08/15] virtio-blk: move property declarations to header file Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 09/15] virtio-blk: move BlockConf into VirtIOBlkConf Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 10/15] virtio: move conf fields into an anonymous union Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 11/15] virtio-net: move init function to virtio-net.h Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 12/15] virtio-serial: move init function to virtio-serial.h Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 13/15] virtio-balloon: move init function to virtio-balloon.h Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 14/15] virtio-9p: move init function to virtio-9p-device.h Paolo Bonzini
2012-01-02 17:59 ` [Qemu-devel] [PATCH v2 15/15] virtio-blk: move init function to virtio-blk.h Paolo Bonzini
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=1325527166-23898-1-git-send-email-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).