[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list |
Date: |
Mon, 18 Dec 2017 20:29:46 +0000 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
* Michael S. Tsirkin (address@hidden) wrote:
> On Thu, Dec 14, 2017 at 04:27:31PM +0100, Igor Mammedov wrote:
> > Also it seems that we have a race in current code where
> > region_del() unrefs memory region first and then by the
> > commit time memory region could be gone since old flatview
> > is unreffed before commit callback is called, but guest still
> > uses old memory map until vhost_set_mem_table() is complete.
> > We probably should unref deleted(old) sections after
> > guest gets new memmap.
>
> Care trying to post a patch for stable? Might be a good idea
> to merge before this rework, for the sake of downstreams.
I think the 1st patch of my v5 might be suitable for that; please
have a look.
Dave
> >
> > > }
> > >
> > > static int vhost_virtqueue_set_addr(struct vhost_dev *dev,
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK
- Re: [Qemu-devel] [PATCH v4 2/6] vhost: Simplify ring verification checks, (continued)
- [Qemu-devel] [PATCH v4 3/6] vhost: Add temporary memory structure, Dr. David Alan Gilbert (git), 2017/12/13
- [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list, Dr. David Alan Gilbert (git), 2017/12/13
- Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list, Paolo Bonzini, 2017/12/13
- Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list, Igor Mammedov, 2017/12/14
- Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list, Dr. David Alan Gilbert, 2017/12/15
- Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list, Paolo Bonzini, 2017/12/15
- Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list, Dr. David Alan Gilbert, 2017/12/15
[Qemu-devel] [PATCH v4 5/6] vhost: compare and flip in new memory region list, Dr. David Alan Gilbert (git), 2017/12/13
[Qemu-devel] [PATCH v4 6/6] vhost: Clean out old vhost_set_memory and friends, Dr. David Alan Gilbert (git), 2017/12/13