mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
vhost-user: send log shm fd along with log_base
Send the shm for the dirty pages logging if the backend supports VHOST_USER_PROTOCOL_F_LOG_SHMFD. Wait for a reply to make sure the old log is no longer used. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
This commit is contained in:
parent
15324404f6
commit
9a78a5dd27
4 changed files with 33 additions and 6 deletions
|
@ -21,6 +21,7 @@ typedef enum VhostBackendType {
|
|||
} VhostBackendType;
|
||||
|
||||
struct vhost_dev;
|
||||
struct vhost_log;
|
||||
|
||||
typedef int (*vhost_call)(struct vhost_dev *dev, unsigned long int request,
|
||||
void *arg);
|
||||
|
@ -30,7 +31,8 @@ typedef int (*vhost_backend_get_vq_index)(struct vhost_dev *dev, int idx);
|
|||
typedef int (*vhost_backend_set_vring_enable)(struct vhost_dev *dev, int enable);
|
||||
typedef int (*vhost_backend_memslots_limit)(struct vhost_dev *dev);
|
||||
|
||||
typedef int (*vhost_set_log_base_op)(struct vhost_dev *dev, uint64_t base);
|
||||
typedef int (*vhost_set_log_base_op)(struct vhost_dev *dev, uint64_t base,
|
||||
struct vhost_log *log);
|
||||
typedef bool (*vhost_requires_shm_log_op)(struct vhost_dev *dev);
|
||||
|
||||
typedef struct VhostOps {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue