From 9958be56252abd0d12f4e3bc855b64a4fbe94450 Mon Sep 17 00:00:00 2001 From: Andrew Fasano Date: Sun, 15 Oct 2023 23:02:55 -0400 Subject: [PATCH] Add vhost_user_{init,cleanup} to vhost-stub --- hw/virtio/vhost-stub.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hw/virtio/vhost-stub.c b/hw/virtio/vhost-stub.c index 2d76cdebdc5..4a2aba6ea0b 100644 --- a/hw/virtio/vhost-stub.c +++ b/hw/virtio/vhost-stub.c @@ -1,7 +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) +{ +} \ No newline at end of file