OSDN Git Service

virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 7 Dec 2021 13:23:34 +0000 (13:23 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 12 Jan 2022 17:09:39 +0000 (17:09 +0000)
commitf34e8d8b8d48d73f36a67b6d5e492ef9784b5012
treef2309bcfe5e8c0fe49a3fc672ad02e8f0796bd6c
parent186b9691730ca4d3d59fa135d7d24467a3254c9a
virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane

Prepare virtio_scsi_handle_cmd() to be used by both dataplane and
non-dataplane by making the condition for starting ioeventfd more
specific. This way it won't trigger when dataplane has already been
started.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20211207132336.36627-5-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/scsi/virtio-scsi.c