mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-05 02:06:40 +00:00
91cb1c9b56
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 a global mutex context, such as those functions to start, stop and setting the iothread property. Upon start, we set up guest/host event notifiers, in a same way as virtio-blk does. The handlers then pop request from vring and call into virtio-scsi.c functions to process it. So we need to make sure make all those called functions work with iothread, too. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
14 lines
464 B
Makefile
14 lines
464 B
Makefile
common-obj-y += scsi-disk.o
|
|
common-obj-y += scsi-generic.o scsi-bus.o
|
|
common-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
|
|
common-obj-$(CONFIG_MEGASAS_SCSI_PCI) += megasas.o
|
|
common-obj-$(CONFIG_VMW_PVSCSI_SCSI_PCI) += vmw_pvscsi.o
|
|
common-obj-$(CONFIG_ESP) += esp.o
|
|
common-obj-$(CONFIG_ESP_PCI) += esp-pci.o
|
|
obj-$(CONFIG_PSERIES) += spapr_vscsi.o
|
|
|
|
ifeq ($(CONFIG_VIRTIO),y)
|
|
obj-y += virtio-scsi.o virtio-scsi-dataplane.o
|
|
obj-$(CONFIG_VHOST_SCSI) += vhost-scsi.o
|
|
endif
|