RE: [PATCH v2] vfio/migration: Refactor and fix print of "Migration disabled"

2023-06-20 Thread Duan, Zhenzhong
u.org >>> Cc: alex.william...@redhat.com; c...@redhat.com; Peng, Chao P >>> >>> Subject: Re: [PATCH v2] vfio/migration: Refactor and fix print of >>> "Migration disabled" >>> >>> On 20/06/2023 04:04, Duan, Zhenzhong wrote: >>>&g

Re: [PATCH v2] vfio/migration: Refactor and fix print of "Migration disabled"

2023-06-20 Thread Joao Martins
Chao P >> >> Subject: Re: [PATCH v2] vfio/migration: Refactor and fix print of "Migration >> disabled" >> >> On 20/06/2023 04:04, Duan, Zhenzhong wrote: >>>> -Original Message- >>>> From: Avihai Horon >>>> Sent:

RE: [PATCH v2] vfio/migration: Refactor and fix print of "Migration disabled"

2023-06-20 Thread Duan, Zhenzhong
>-Original Message- >From: Joao Martins >Sent: Tuesday, June 20, 2023 4:23 PM >To: Duan, Zhenzhong ; Avihai Horon >; qemu-devel@nongnu.org >Cc: alex.william...@redhat.com; c...@redhat.com; Peng, Chao P > >Subject: Re: [PATCH v2] vfio/migration: Refactor and

Re: [PATCH v2] vfio/migration: Refactor and fix print of "Migration disabled"

2023-06-20 Thread Joao Martins
On 20/06/2023 04:04, Duan, Zhenzhong wrote: >> -Original Message- >> From: Avihai Horon >> Sent: Monday, June 19, 2023 7:14 PM > ... >>> a/hw/vfio/migration.c b/hw/vfio/migration.c index >>> 6b58dddb8859..bc51aa765cb8 100644 >>> --- a/hw/vfio/migration.c >>> +++ b/hw/vfio/migration.c >>> @

RE: [PATCH v2] vfio/migration: Refactor and fix print of "Migration disabled"

2023-06-19 Thread Duan, Zhenzhong
>-Original Message- >From: Avihai Horon >Sent: Monday, June 19, 2023 7:14 PM ... >> a/hw/vfio/migration.c b/hw/vfio/migration.c index >> 6b58dddb8859..bc51aa765cb8 100644 >> --- a/hw/vfio/migration.c >> +++ b/hw/vfio/migration.c >> @@ -632,42 +632,41 @@ int64_t vfio_mig_bytes_transferred

Re: [PATCH v2] vfio/migration: Refactor and fix print of "Migration disabled"

2023-06-19 Thread Avihai Horon
Hi Zhenzhong, On 19/06/2023 11:44, Zhenzhong Duan wrote: External email: Use caution opening links or attachments This patch refactors vfio_migration_realize() and its dependend code as follows: 1. Change vfio_block_*_migration() to be only a checker. 2. It's redundant in vfio_migration_reali