summary refs log tree commit diff stats
path: root/qemu-file-unix.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-09-23 15:49:24 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-30 11:11:20 +0200
commit91cb1c9b56064e7cba27ab310c9c4c477694589e (patch)
treeb1e5db41309b50daaa96801e0a751408e9cf651f /qemu-file-unix.c
parent244e2898b7a7735b3da114c120abe206af56a167 (diff)
downloadfocaccia-qemu-91cb1c9b56064e7cba27ab310c9c4c477694589e.tar.gz
focaccia-qemu-91cb1c9b56064e7cba27ab310c9c4c477694589e.zip
virtio-scsi-dataplane: Code to run virtio-scsi on iothread
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>
Diffstat (limited to 'qemu-file-unix.c')
0 files changed, 0 insertions, 0 deletions