]> git.proxmox.com Git - mirror_qemu.git/blobdiff - backends/vhost-user.c
Merge tag 'pull-20231230' of https://gitlab.com/rth7680/qemu into staging
[mirror_qemu.git] / backends / vhost-user.c
index 0596223ac468ca302c96a0a3097b9b67f365ec10..94c6a82d526da18a69ae0a49569eab5aeda07eda 100644 (file)
 #include "io/channel-command.h"
 #include "hw/virtio/virtio-bus.h"
 
-static bool
-ioeventfd_enabled(void)
-{
-    return kvm_enabled() && kvm_eventfds_enabled();
-}
-
 int
 vhost_user_backend_dev_init(VhostUserBackend *b, VirtIODevice *vdev,
                             unsigned nvqs, Error **errp)
@@ -34,11 +28,6 @@ vhost_user_backend_dev_init(VhostUserBackend *b, VirtIODevice *vdev,
 
     assert(!b->vdev && vdev);
 
-    if (!ioeventfd_enabled()) {
-        error_setg(errp, "vhost initialization failed: requires kvm");
-        return -1;
-    }
-
     if (!vhost_user_init(&b->vhost_user, &b->chr, errp)) {
         return -1;
     }