Skip to content

Commit

Permalink
Add vhost_user_{init,cleanup} to vhost-stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fasano committed Oct 16, 2023
1 parent 9e51831 commit c8a6b5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hw/virtio/vhost-stub.c
Original file line number Diff line number Diff line change
@@ -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)
{
}

0 comments on commit c8a6b5d

Please sign in to comment.