summaryrefslogtreecommitdiff
path: root/subprojects/libvhost-user/libvhost-user.h
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/libvhost-user/libvhost-user.h')
-rw-r--r--subprojects/libvhost-user/libvhost-user.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/subprojects/libvhost-user/libvhost-user.h b/subprojects/libvhost-user/libvhost-user.h
index cde9f07bb3..66d4de9996 100644
--- a/subprojects/libvhost-user/libvhost-user.h
+++ b/subprojects/libvhost-user/libvhost-user.h
@@ -119,6 +119,9 @@ typedef enum VhostUserSlaveRequest {
VHOST_USER_SLAVE_VRING_HOST_NOTIFIER_MSG = 3,
VHOST_USER_SLAVE_VRING_CALL = 4,
VHOST_USER_SLAVE_VRING_ERR = 5,
+ VHOST_USER_SLAVE_VRING_NUM = 6,
+ VHOST_USER_SLAVE_VRING_ADDR = 7,
+ VHOST_USER_SLAVE_DRIVER_STATE = 8,
VHOST_USER_SLAVE_MAX
} VhostUserSlaveRequest;
@@ -492,6 +495,7 @@ bool vu_dispatch(VuDev *dev);
* Translate a guest address to a pointer. Returns NULL on failure.
*/
void *vu_gpa_to_va(VuDev *dev, uint64_t *plen, uint64_t guest_addr);
+void *vu_qva_to_gpa(VuDev *dev, uint64_t mmap_addr);
/**
* vu_get_queue:
@@ -530,6 +534,13 @@ void vu_set_queue_handler(VuDev *dev, VuVirtq *vq,
bool vu_set_queue_host_notifier(VuDev *dev, VuVirtq *vq, int fd,
int size, int offset);
+bool vu_set_queue_host_num(VuDev *dev, unsigned int qidx, int fd,
+ int num);
+bool vu_set_queue_host_addr(VuDev *dev, unsigned int qidx, int fd,
+ struct vhost_vring_addr *vring);
+bool vu_set_queue_host_state(VuDev *dev, unsigned int qidx, int fd,
+ int num);
+
/**
* vu_queue_set_notification:
* @dev: a VuDev context