]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-user: fix duplicated notifier MR init
authorXueming Li <xuemingl@nvidia.com>
Fri, 8 Oct 2021 08:02:15 +0000 (16:02 +0800)
committerMichael Roth <michael.roth@amd.com>
Tue, 14 Dec 2021 14:57:02 +0000 (08:57 -0600)
commit695c25e167e217aab74f964afe9b93a8a52b4d41
tree04a4d22039cc3915766904324e4ff5864486dcdd
parent23ba9f170feca6ae0d8442aab2c89656f9b01288
vhost-user: fix duplicated notifier MR init

In case of device resume after suspend, VQ notifier MR still valid.
Duplicated registrations explode memory block list and slow down device
resume.

Fixes: 44866521bd6e ("vhost-user: support registering external host notifiers")
Cc: tiwei.bie@intel.com
Cc: qemu-stable@nongnu.org
Cc: Yuwei Zhang <zhangyuwei.9149@bytedance.com>
Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Message-Id: <20211008080215.590292-1-xuemingl@nvidia.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit a1ed9ef1de87c3e86ff68589604298ec90875a14)
Signed-off-by: Michael Roth <michael.roth@amd.com>
hw/virtio/vhost-user.c