Re: [RFC 5/5] libvhost-user: handle removal of identical regions

2022-01-05 Thread Raphael Norwitz
On Wed, Jan 05, 2022 at 11:18:52AM +, Stefan Hajnoczi wrote: > On Wed, Dec 15, 2021 at 10:29:55PM +, Raphael Norwitz wrote: > > diff --git a/subprojects/libvhost-user/libvhost-user.c > > b/subprojects/libvhost-user/libvhost-user.c > > index 74a9980194..2f465a4f0e 100644 > > --- a/subprojec

Re: [RFC 5/5] libvhost-user: handle removal of identical regions

2022-01-05 Thread Stefan Hajnoczi
On Wed, Dec 15, 2021 at 10:29:55PM +, Raphael Norwitz wrote: > diff --git a/subprojects/libvhost-user/libvhost-user.c > b/subprojects/libvhost-user/libvhost-user.c > index 74a9980194..2f465a4f0e 100644 > --- a/subprojects/libvhost-user/libvhost-user.c > +++ b/subprojects/libvhost-user/libvhost

[RFC 5/5] libvhost-user: handle removal of identical regions

2021-12-15 Thread Raphael Norwitz
Today if QEMU (or any other VMM) has sent multiple copies of the same region to a libvhost-user based backend and then attempts to remove the region, only one instance of the region will be removed, leaving stale copies of the region in dev->regions[]. This change resolves this by having vu_rem_me