[prev in list] [next in list] [prev in thread] [next in thread]
List: qemu-devel
Subject: [Qemu-devel] [PATCH v3 0/2] virtio: Move host features to backends
From: shannon.zhao () linaro ! org
Date: 2015-04-21 10:51:09
Message-ID: 1429613471-7944-1-git-send-email-shannon.zhao () linaro ! org
[Download RAW message or body]
From: Shannon Zhao <shannon.zhao@linaro.org>
The reason to do this is that the virtio-net-device can't expose host
features to guest while using virtio-mmio. So the performance is low.
The virtio-*-pci, virtio-*-s390, and virtio-*-ccw already have the ability
to forward property accesses to the backend child, by calling
*_virtio_*_instance_init -> qdev_alias_all_properties. So if we move the
host features to backends, it doesn't break the backwards compatibility
for virtio-*-pci, virtio-*-s390, and virtio-*-ccw.
Here we move the host features to backends, involving
DEFINE_VIRTIO_NET_FEATURES, DEFINE_VIRTIO_SCSI_FEATURES. So the virtio-mmio
devices could have the host freatures, and this has a great performance
improvement to virtio-mmio, especially to virtio-net-device.
changes since v2:
* move virtio_net_set_config_size to virtio-net (Cornelia)
changes since v1:
* drop unnecessary change of adding device_plugged hook for
virtio-ccw and s390-virtio-bus (Cornelia)
Shannon Zhao (2):
hw/net/virtio-net: Move DEFINE_VIRTIO_NET_FEATURES to virtio-net
virtio-scsi: Move DEFINE_VIRTIO_SCSI_FEATURES to virtio-scsi
hw/net/virtio-net.c | 5 +++++
hw/s390x/s390-virtio-bus.c | 3 ---
hw/s390x/virtio-ccw.c | 3 ---
hw/scsi/virtio-scsi.c | 5 +++++
hw/virtio/virtio-pci.c | 3 ---
include/hw/virtio/virtio-net.h | 1 +
include/hw/virtio/virtio-scsi.h | 1 +
7 files changed, 12 insertions(+), 9 deletions(-)
--
2.1.0
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic