8c49951c4a
Let's return the number of free slots instead of only checking if there is a free slot. Required to support memory devices that consume multiple memslots. This is a preparation for memory devices that consume multiple memslots. Message-ID: <20230926185738.277351-6-david@redhat.com> Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com>
22 lines
361 B
C
22 lines
361 B
C
#include "qemu/osdep.h"
|
|
#include "hw/virtio/vhost.h"
|
|
#include "hw/virtio/vhost-user.h"
|
|
|
|
unsigned int vhost_get_free_memslots(void)
|
|
{
|
|
return UINT_MAX;
|
|
}
|
|
|
|
bool vhost_user_init(VhostUserState *user, CharBackend *chr, Error **errp)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void vhost_user_cleanup(VhostUserState *user)
|
|
{
|
|
}
|
|
|
|
void vhost_toggle_device_iotlb(VirtIODevice *vdev)
|
|
{
|
|
}
|