Files
qemu/hw
QingFeng Hao cda3c19ff5 virtio-scsi-ccw: use ioeventfd even when KVM is disabled
This patch is based on a similar patch from Stefan Hajnoczi -
commit c324fd0a39 ("virtio-pci: use ioeventfd even when KVM is disabled")

Do not check kvm_eventfds_enabled() when KVM is disabled since it
always returns 0.  Since commit 8c56c1a592
("memory: emulate ioeventfd") it has been possible to use ioeventfds in
qtest or TCG mode.

This patch makes -device virtio-scsi-ccw,iothread=iothread0 work even
when KVM is disabled.
Currently we don't have an equivalent to "memory: emulate ioeventfd"
for ccw yet, but that this doesn't hurt and qemu-iotests 068 can pass with
skipping iothread arguments.

I have tested that virtio-scsi-ccw works under tcg both with and without
iothread.

This patch fixes qemu-iotests 068, which was accidentally merged early
despite the dependency on ioeventfd.

Signed-off-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20170704132350.11874-2-haoqf@linux.vnet.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2017-07-05 19:45:02 +02:00
..
2016-10-04 13:28:07 +01:00
2017-06-02 11:33:53 +04:00
2017-06-02 05:54:43 +01:00
2016-05-18 15:04:27 +03:00
2017-01-27 18:07:59 +01:00
2017-06-20 14:31:32 +02:00
2017-07-03 22:29:49 +03:00
2016-01-29 15:07:25 +00:00
2017-06-04 18:42:55 +03:00
2017-06-27 15:09:15 +02:00
2016-10-28 18:17:24 +03:00
2017-07-03 22:29:49 +03:00
2017-06-28 11:18:39 +02:00