xref: /openbmc/qemu/hw/virtio/vhost-stub.c (revision cd89c065)
1 #include "qemu/osdep.h"
2 #include "hw/virtio/vhost.h"
3 #include "hw/virtio/vhost-user.h"
4 
vhost_get_max_memslots(void)5 unsigned int vhost_get_max_memslots(void)
6 {
7     return UINT_MAX;
8 }
9 
vhost_get_free_memslots(void)10 unsigned int vhost_get_free_memslots(void)
11 {
12     return UINT_MAX;
13 }
14 
vhost_user_init(VhostUserState * user,CharBackend * chr,Error ** errp)15 bool vhost_user_init(VhostUserState *user, CharBackend *chr, Error **errp)
16 {
17     return false;
18 }
19 
vhost_user_cleanup(VhostUserState * user)20 void vhost_user_cleanup(VhostUserState *user)
21 {
22 }
23 
vhost_toggle_device_iotlb(VirtIODevice * vdev)24 void vhost_toggle_device_iotlb(VirtIODevice *vdev)
25 {
26 }
27