Re: [PATCH 1/1] vhost: do not reset used_memslots when destroying vhost dev

2025-03-03 Thread yuanminghao
tcp_chr_accept(listener, cioc, opaque) at chardev/char-socket.c:961 > > > > So we skip the update of used_memslots and used_shared_memslots when > > destroying > > vhost devices, and it should work event if all vhost devices are removed. > > > > Signed-o

[PATCH 1/1] vhost: do not reset used_memslots when destroying vhost dev

2025-02-25 Thread yuanminghao
event if all vhost devices are removed. Signed-off-by: yuanminghao --- hw/virtio/vhost.c | 14 +- include/hw/virtio/vhost.h | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 6aa72fd434..2258a12066 100644 --- a