]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/vhost.h
Rename target_phys_addr_t to hwaddr
[mirror_qemu.git] / hw / vhost.h
index d1824ec9d9aa572c6f3ca78aaaf521f70122f401..0c47229f91b0cb14409e321cc5f3819d7e45bad9 100644 (file)
@@ -30,6 +30,8 @@ struct vhost_dev {
     MemoryListener memory_listener;
     int control;
     struct vhost_memory *mem;
+    int n_mem_sections;
+    MemoryRegionSection *mem_sections;
     struct vhost_virtqueue *vqs;
     int nvqs;
     unsigned long long features;
@@ -42,7 +44,8 @@ struct vhost_dev {
     bool force;
 };
 
-int vhost_dev_init(struct vhost_dev *hdev, int devfd, bool force);
+int vhost_dev_init(struct vhost_dev *hdev, int devfd, const char *devpath,
+                   bool force);
 void vhost_dev_cleanup(struct vhost_dev *hdev);
 bool vhost_dev_query(struct vhost_dev *hdev, VirtIODevice *vdev);
 int vhost_dev_start(struct vhost_dev *hdev, VirtIODevice *vdev);