On 3/6/24 14:34, Cédric Le Goater wrote: > vfio_save_complete_precopy() currently returns before doing the trace > event. Change that. > > Signed-off-by: Cédric Le Goater <c...@redhat.com> > --- > hw/vfio/migration.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c > index > bd48f2ee472a5230c2c84bff829dae1e217db33f..c8aeb43b4249ec76ded2542d62792e8c469d5f97 > 100644 > --- a/hw/vfio/migration.c > +++ b/hw/vfio/migration.c > @@ -580,9 +580,6 @@ static int vfio_save_complete_precopy(QEMUFile *f, void > *opaque) > > qemu_put_be64(f, VFIO_MIG_FLAG_END_OF_STATE); > ret = qemu_file_get_error(f); > - if (ret) { > - return ret; > - } > > trace_vfio_save_complete_precopy(vbasedev->name, ret); it is arguable if you want to trace if an error occured. If you want to unconditionally trace the function entry, want don't we put the trace at the beginning of the function? Eric >
- Re: [PATCH v4 23/25] vfio: Add Error** a... Eric Auger
- [PATCH v4 10/25] migration: Add Error** argum... Cédric Le Goater
- Re: [PATCH v4 10/25] migration: Add Erro... Fabiano Rosas
- [PATCH v4 11/25] migration: Add Error** argum... Cédric Le Goater
- Re: [PATCH v4 11/25] migration: Add Erro... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v4 11/25] migration: Add ... Cédric Le Goater
- Re: [PATCH v4 11/25] migration: ... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v4 11/25] migrati... Peter Xu
- Re: [PATCH v4 11/25] mi... Peter Xu
- [PATCH v4 24/25] vfio: Also trace event failu... Cédric Le Goater
- Re: [PATCH v4 24/25] vfio: Also trace ev... Eric Auger
- Re: [PATCH v4 24/25] vfio: Also trac... Cédric Le Goater
- Re: [PATCH v4 24/25] vfio: Also ... Eric Auger
- [PATCH v4 01/25] migration: Report error when... Cédric Le Goater
- [PATCH v4 05/25] s390/stattrib: Add Error** a... Cédric Le Goater
- Re: [PATCH v4 05/25] s390/stattrib: Add ... Fabiano Rosas
- Re: [PATCH v4 05/25] s390/stattrib: Add ... Peter Xu
- Re: [PATCH v4 05/25] s390/stattrib: Add ... Thomas Huth
- [PATCH v4 03/25] migration: Add documentation... Cédric Le Goater
- [PATCH v4 16/25] vfio: Add Error** argument t... Cédric Le Goater
- Re: [PATCH v4 16/25] vfio: Add Error** a... Eric Auger