[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCHv2 0/5] virtio: cleanup layout assumptions
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCHv2 0/5] virtio: cleanup layout assumptions |
Date: |
Thu, 18 Mar 2010 11:42:22 +0200 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
This patchset helps remove the assumption that vdev must be the 1st
member in any virtio device implementation. Other assumptions (made by
qdev) can be removed in a similar way separately, this patchset does not
do this yet.
We also make it obvious that all of device structure is zero
initialized, which devices seem to rely on, by virtue of
calling mallocz directly in device code.
Note how code is simplified rather than made more complex.
Changes from v1:
Get rid of VIRTIO_COMMON_INIT macro:
simple function call, no magic now.
Michael S. Tsirkin (5):
virtio: add type safe API
virtio-net: remove layout assumptions
virtio-serial: remove struct layout assumptions
virtio-balloon: remove layout assumptions
virtio-blk: remove layout assumption
hw/virtio-balloon.c | 10 ++++------
hw/virtio-blk.c | 9 ++++-----
hw/virtio-net.c | 11 +++++------
hw/virtio-serial-bus.c | 17 ++++++++---------
hw/virtio.c | 7 +++----
hw/virtio.h | 5 +++--
6 files changed, 27 insertions(+), 32 deletions(-)
- [Qemu-devel] [PATCHv2 0/5] virtio: cleanup layout assumptions,
Michael S. Tsirkin <=
- [Qemu-devel] [PATCHv2 1/5] virtio: add type safe API, Michael S. Tsirkin, 2010/03/18
- [Qemu-devel] [PATCHv2 2/5] virtio-net: remove layout assumptions, Michael S. Tsirkin, 2010/03/18
- [Qemu-devel] [PATCHv2 3/5] virtio-serial: remove struct layout assumptions, Michael S. Tsirkin, 2010/03/18
- [Qemu-devel] [PATCHv2 4/5] virtio-balloon: remove layout assumptions, Michael S. Tsirkin, 2010/03/18
- [Qemu-devel] [PATCHv2 5/5] virtio-blk: remove layout assumption, Michael S. Tsirkin, 2010/03/18