[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 14/14] migration: Fix return-path thread exit
From: |
Peter Xu |
Subject: |
Re: [RFC PATCH 14/14] migration: Fix return-path thread exit |
Date: |
Fri, 23 Feb 2024 12:25:19 +0800 |
On Mon, Feb 12, 2024 at 05:04:28PM +0100, Cédric Le Goater wrote:
> and then, in background we have open questions regarding :
>
> * the QEMUfile implementation and its QIOChannel usage for migration
> streams
> * qemu_file_set_error* vs. migrate_set_error. It is confusing, at least
> for me. Do we have some documentation on best practices ?
Right it is confusing.. It can all boil down to the acient qemufile api
that Fabiano also mentioned in the other reply. IMHO ideally iochannel
errors should be reported through the stack (rather than kept within the
object) from the channel's API and stored with migrate_set_error() if
necessary, and the channel itself may not need to maintain its own errors.
Right now it's needed because many qemufile APIs do not return errors.
Thanks,
--
Peter Xu
- Re: [PATCH 13/14] migration: Use migrate_has_error() in close_return_path_on_source(), (continued)
- Re: [PATCH 13/14] migration: Use migrate_has_error() in close_return_path_on_source(), Fabiano Rosas, 2024/02/08
- Re: [PATCH 13/14] migration: Use migrate_has_error() in close_return_path_on_source(), Cédric Le Goater, 2024/02/08
- Re: [PATCH 13/14] migration: Use migrate_has_error() in close_return_path_on_source(), Fabiano Rosas, 2024/02/08
- Re: [PATCH 13/14] migration: Use migrate_has_error() in close_return_path_on_source(), Cédric Le Goater, 2024/02/12
- Re: [PATCH 13/14] migration: Use migrate_has_error() in close_return_path_on_source(), Fabiano Rosas, 2024/02/14
- Re: [PATCH 13/14] migration: Use migrate_has_error() in close_return_path_on_source(), Cédric Le Goater, 2024/02/16
- Re: [PATCH 13/14] migration: Use migrate_has_error() in close_return_path_on_source(), Peter Xu, 2024/02/22
[RFC PATCH 14/14] migration: Fix return-path thread exit, Cédric Le Goater, 2024/02/07
Re: [RFC PATCH 14/14] migration: Fix return-path thread exit, Fabiano Rosas, 2024/02/08
- Re: [RFC PATCH 14/14] migration: Fix return-path thread exit, Cédric Le Goater, 2024/02/12
- Re: [RFC PATCH 14/14] migration: Fix return-path thread exit, Fabiano Rosas, 2024/02/14
- Re: [RFC PATCH 14/14] migration: Fix return-path thread exit, Cédric Le Goater, 2024/02/16
- Re: [RFC PATCH 14/14] migration: Fix return-path thread exit, Fabiano Rosas, 2024/02/16
- Re: [RFC PATCH 14/14] migration: Fix return-path thread exit, Peter Xu, 2024/02/22
- Re: [RFC PATCH 14/14] migration: Fix return-path thread exit, Fabiano Rosas, 2024/02/23
- Re: [RFC PATCH 14/14] migration: Fix return-path thread exit, Cédric Le Goater, 2024/02/26
[PATCH 12/14] migration: Report error when shutdown fails, Cédric Le Goater, 2024/02/07