On Fri, 09/19 11:29, Paolo Bonzini wrote:
Il 06/08/2014 07:35, Fam Zheng ha scritto:
+void virtio_scsi_dataplane_start(VirtIOSCSICommon *s)
+{
+int i;
+int rc;
+BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s)));
+VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);
+
Il 22/09/2014 07:56, Fam Zheng ha scritto:
Please add these to VirtIOSCSI rather than VirtIOSCSICommon. Same for
the new functions you declare below.
What's the rationale, please? Asking because especially the VirtIOSCSIVring
fields are the dataplane counterparts of VirtQueue fields, so
On Mon, 09/22 10:09, Paolo Bonzini wrote:
Il 22/09/2014 07:56, Fam Zheng ha scritto:
Please add these to VirtIOSCSI rather than VirtIOSCSICommon. Same for
the new functions you declare below.
What's the rationale, please? Asking because especially the VirtIOSCSIVring
fields are the
On Fri, 09/19 11:29, Paolo Bonzini wrote:
Il 06/08/2014 07:35, Fam Zheng ha scritto:
diff --git a/include/hw/virtio/virtio-scsi.h
b/include/hw/virtio/virtio-scsi.h
index 6f92c29..b9f2197 100644
--- a/include/hw/virtio/virtio-scsi.h
+++ b/include/hw/virtio/virtio-scsi.h
@@ -174,6
Il 06/08/2014 07:35, Fam Zheng ha scritto:
This implements the core part of dataplane feature of virtio-scsi.
A few fields are added in VirtIOSCSICommon to maintain the dataplane
status. These fields are managed by a new source file:
virtio-scsi-dataplane.c.
Most code in this file will
Il 06/08/2014 07:35, Fam Zheng ha scritto:
ifeq ($(CONFIG_VIRTIO),y)
-obj-y += virtio-scsi.o
+obj-y += virtio-scsi.o virtio-scsi-dataplane.o
obj-$(CONFIG_VHOST_SCSI) += vhost-scsi.o
endif
I first thought that this must be conditional on
CONFIG_VIRTIO_BLK_DATA_PLANE. However,
On Wed, 08/06 10:45, Paolo Bonzini wrote:
Il 06/08/2014 07:35, Fam Zheng ha scritto:
ifeq ($(CONFIG_VIRTIO),y)
-obj-y += virtio-scsi.o
+obj-y += virtio-scsi.o virtio-scsi-dataplane.o
obj-$(CONFIG_VHOST_SCSI) += vhost-scsi.o
endif
I first thought that this must be conditional on
This implements the core part of dataplane feature of virtio-scsi.
A few fields are added in VirtIOSCSICommon to maintain the dataplane
status. These fields are managed by a new source file:
virtio-scsi-dataplane.c.
Most code in this file will run on an iothread, unless otherwise
commented as in