This is version 2 of the vhost fixes for kvmtool posted here: https://lore.kernel.org/all/20230419132119.124457-1-jean-philippe@xxxxxxxxxx/ Since v1: * Added review tags from Andre * Fixed issues reported by Andre, and the max_target size found while rebasing patch 8 * Added patch 14 (warn and disable an unsupported configuration) Jean-Philippe Brucker (17): virtio: Factor vhost initialization virtio/vhost: Factor vring operation virtio/vhost: Factor notify_vq_eventfd() virtio/vhost: Factor notify_vq_gsi() virtio/scsi: Move VHOST_SCSI_SET_ENDPOINT to device start virtio/scsi: Fix and simplify command-line disk/core: Fix segfault on exit with SCSI virtio/scsi: Initialize max_target virtio/scsi: Fix feature selection virtio/vsock: Fix feature selection virtio/net: Fix feature selection virtio: Document how to test the devices virtio: Fix messages about missing Linux config virtio/net: Warn about enabling multiqueue with vhost Factor epoll thread virtio/vhost: Support line interrupt signaling virtio/vhost: Clear VIRTIO_F_ACCESS_PLATFORM Makefile | 2 + Documentation/io-testing.txt | 141 +++++++++++++++++++++++ include/kvm/disk-image.h | 7 +- include/kvm/epoll.h | 17 +++ include/kvm/virtio.h | 16 +++ disk/core.c | 15 +-- epoll.c | 91 +++++++++++++++ ioeventfd.c | 94 +++------------- kvm-ipc.c | 103 +++++------------ virtio/core.c | 1 + virtio/net.c | 129 +++++---------------- virtio/scsi.c | 118 ++++++-------------- virtio/vhost.c | 209 +++++++++++++++++++++++++++++++++++ virtio/vsock.c | 134 +++++----------------- 14 files changed, 611 insertions(+), 466 deletions(-) create mode 100644 Documentation/io-testing.txt create mode 100644 include/kvm/epoll.h create mode 100644 epoll.c create mode 100644 virtio/vhost.c -- 2.40.1