summaryrefslogtreecommitdiffstats
path: root/hw/virtio/vhost-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/virtio/vhost-stub.c')
-rw-r--r--hw/virtio/vhost-stub.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/hw/virtio/vhost-stub.c b/hw/virtio/vhost-stub.c
new file mode 100644
index 00000000..c175148f
--- /dev/null
+++ b/hw/virtio/vhost-stub.c
@@ -0,0 +1,17 @@
+#include "qemu/osdep.h"
+#include "hw/virtio/vhost.h"
+#include "hw/virtio/vhost-user.h"
+
+bool vhost_has_free_slot(void)
+{
+ return true;
+}
+
+bool vhost_user_init(VhostUserState *user, CharBackend *chr, Error **errp)
+{
+ return false;
+}
+
+void vhost_user_cleanup(VhostUserState *user)
+{
+}