[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/7] implementation of vm_start() BH
|
From: |
Peter Xu |
|
Subject: |
Re: [PATCH v3 5/7] implementation of vm_start() BH |
|
Date: |
Thu, 19 Nov 2020 13:46:24 -0500 |
On Thu, Nov 19, 2020 at 03:59:38PM +0300, Andrey Gruzdev wrote:
> To avoid saving updated versions of memory pages we need
> to start tracking RAM writes before we resume operation of
> vCPUs. This sequence is especially critical for virtio device
> backends whos VQs are mapped to main memory and accessed
> directly not using MMIO callbacks.
>
> One problem is that vm_start() routine makes calls state
> change notifier callbacks directly from itself. Virtio drivers
> do some stuff with syncing/flusing VQs in its notifier routines.
> Since we poll UFFD and process faults on the same thread, that
> leads to the situation when the thread locks in vm_start()
> if we try to call it from the migration thread.
There's a nice comment in previous patch about this before the bottom half
created, thanks, that's helpful. Though IMHO this patch can directly be
squashed into previous one, since it's confusing with the comment there but
without doing anything about it.
--
Peter Xu
- Re: [PATCH v3 3/7] support UFFD write fault processing in ram_save_iterate(), (continued)
- Re: [PATCH v3 3/7] support UFFD write fault processing in ram_save_iterate(), Andrey Gruzdev, 2020/11/20
- Re: [PATCH v3 3/7] support UFFD write fault processing in ram_save_iterate(), Peter Xu, 2020/11/20
- Re: [PATCH v3 3/7] support UFFD write fault processing in ram_save_iterate(), Andrey Gruzdev, 2020/11/20
- Re: [PATCH v3 3/7] support UFFD write fault processing in ram_save_iterate(), Peter Xu, 2020/11/23
- Re: [PATCH v3 3/7] support UFFD write fault processing in ram_save_iterate(), Andrey Gruzdev, 2020/11/24
- Re: [PATCH v3 3/7] support UFFD write fault processing in ram_save_iterate(), Peter Xu, 2020/11/24
[PATCH v3 4/7] implementation of write-tracking migration thread, Andrey Gruzdev, 2020/11/19
[PATCH v3 5/7] implementation of vm_start() BH, Andrey Gruzdev, 2020/11/19
- Re: [PATCH v3 5/7] implementation of vm_start() BH,
Peter Xu <=
[PATCH v3 6/7] the rest of write tracking migration code, Andrey Gruzdev, 2020/11/19
[PATCH v3 7/7] introduce simple linear scan rate limiting mechanism, Andrey Gruzdev, 2020/11/19
Re: [PATCH v3 0/7] UFFD write-tracking migration/snapshots, Dr. David Alan Gilbert, 2020/11/24