[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file i
From: |
Peter Xu |
Subject: |
Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread |
Date: |
Tue, 23 Mar 2021 14:35:37 -0400 |
On Tue, Mar 23, 2021 at 08:21:43PM +0300, Andrey Gruzdev wrote:
> > For the long term I think we'd better have a helper:
> >
> > qemu_put_qio_channel_buffer(QEMUFile *file, QIOChannelBuffer *bioc)
> >
> > So as to hide this flush operation, which is tricky. We'll have two users so
> > far:
> >
> > bg_migration_completion
> > colo_do_checkpoint_transaction
> >
> > IMHO it'll be nicer if you'd do it in this patch altogether!
> >
> > Thanks,
> >
> Sorry, can't get the idea, what's wrong with the fix.
I'm fine with the fix, but I've got one patch attached just to show what I
meant, so without any testing for sure..
Looks more complicated than I thought, but again I think we should hide that
buffer flush into another helper to avoid overlooking it.
Thanks,
--
Peter Xu
0001-migration-Introduce-qemu_put_qio_channel_buffer.patch
Description: Text document
- [PATCH v1 0/3] migration: Fixes to the 'background-snapshot' code, Andrey Gruzdev, 2021/03/19
- [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread, Andrey Gruzdev, 2021/03/19
- Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread, Peter Xu, 2021/03/22
- Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread, Andrey Gruzdev, 2021/03/23
- Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread, Peter Xu, 2021/03/23
- Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread, Andrey Gruzdev, 2021/03/23
- Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread,
Peter Xu <=
- Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread, Andrey Gruzdev, 2021/03/24
- Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread, Dr. David Alan Gilbert, 2021/03/24
- Re: [PATCH v1 1/3] migration: Fix missing qemu_fflush() on buffer file in bg_migration_thread, Peter Xu, 2021/03/24
[PATCH v1 3/3] migration: Pre-fault memory before starting background snasphot, Andrey Gruzdev, 2021/03/19
[PATCH v1 2/3] migration: Inhibit virtio-balloon for the duration of background snapshot, Andrey Gruzdev, 2021/03/19
Re: [PATCH v1 0/3] migration: Fixes to the 'background-snapshot' code, Peter Xu, 2021/03/23