vhost: dirty log should be per backend type
authorSi-Wei Liu <si-wei.liu@oracle.com>
Thu, 14 Mar 2024 20:27:34 +0000 (13:27 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Jul 2024 18:56:23 +0000 (14:56 -0400)
commit51d59a64eed6c2cd2d2f991f44ffbe21eb33c733
tree9235e0fc7691cd8bb84acc614dd3fdfd1537e5d3
parent1152a0414944f03231f3177207d379d58125890e
vhost: dirty log should be per backend type

There could be a mix of both vhost-user and vhost-kernel clients
in the same QEMU process, where separate vhost loggers for the
specific vhost type have to be used. Make the vhost logger per
backend type, and have them properly reference counted.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Message-Id: <1710448055-11709-1-git-send-email-si-wei.liu@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c