• Q
    virtio-scsi-ccw: use ioeventfd even when KVM is disabled · cda3c19f
    QingFeng Hao 提交于
    This patch is based on a similar patch from Stefan Hajnoczi -
    commit c324fd0a ("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 8c56c1a5
    ("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: NQingFeng Hao <haoqf@linux.vnet.ibm.com>
    Reviewed-by: NCornelia Huck <cohuck@redhat.com>
    Message-Id: <20170704132350.11874-2-haoqf@linux.vnet.ibm.com>
    Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
    cda3c19f
cpu.h 44.7 KB