Re: [PATCH] vdpa: Avoid reset when stop device

2022-03-30 Thread Michael Qiu
On 2022/3/30 16:52, Jason Wang wrote: On Sat, Mar 26, 2022 at 3:59 AM Si-Wei Liu wrote: On 3/25/2022 12:18 AM, Michael Qiu wrote: On 2022/3/25 14:32, Si-Wei Liu Wrote: On 3/23/2022 2:20 AM, Jason Wang wrote: Adding Eugenio, and Ling Shan. On Wed, Mar 23, 2022 at 4:58 PM <08005...

Re: [PATCH] vdpa: Avoid reset when stop device

2022-03-30 Thread Jason Wang
On Sat, Mar 26, 2022 at 3:59 AM Si-Wei Liu wrote: > > > > On 3/25/2022 12:18 AM, Michael Qiu wrote: > > > > > > On 2022/3/25 14:32, Si-Wei Liu Wrote: > >> > >> > >> On 3/23/2022 2:20 AM, Jason Wang wrote: > >>> Adding Eugenio, and Ling Shan. > >>> > >>> On Wed, Mar 23, 2022 at 4:58 PM <08005...@1

Re: [PATCH] vdpa: Avoid reset when stop device

2022-03-25 Thread Si-Wei Liu
On 3/25/2022 12:18 AM, Michael Qiu wrote: On 2022/3/25 14:32, Si-Wei Liu Wrote: On 3/23/2022 2:20 AM, Jason Wang wrote: Adding Eugenio,  and Ling Shan. On Wed, Mar 23, 2022 at 4:58 PM <08005...@163.com> wrote: From: Michael Qiu Currently, when VM poweroff, it will trigger vdpa device

Re: [PATCH] vdpa: Avoid reset when stop device

2022-03-25 Thread Si-Wei Liu
On 3/25/2022 2:00 AM, Michael Qiu wrote: On 2022/3/25 14:32, Si-Wei Liu wrote: On 3/23/2022 2:20 AM, Jason Wang wrote: Adding Eugenio,  and Ling Shan. On Wed, Mar 23, 2022 at 4:58 PM <08005...@163.com> wrote: From: Michael Qiu Currently, when VM poweroff, it will trigger vdpa device(

Re: [PATCH] vdpa: Avoid reset when stop device

2022-03-24 Thread Si-Wei Liu
On 3/23/2022 2:20 AM, Jason Wang wrote: Adding Eugenio, and Ling Shan. On Wed, Mar 23, 2022 at 4:58 PM <08005...@163.com> wrote: From: Michael Qiu Currently, when VM poweroff, it will trigger vdpa device(such as mlx bluefield2 VF) reset twice, this leads to below issue: vhost VQ 2 ring r

Re: [PATCH] vdpa: Avoid reset when stop device

2022-03-23 Thread Jason Wang
Adding Eugenio, and Ling Shan. On Wed, Mar 23, 2022 at 4:58 PM <08005...@163.com> wrote: > > From: Michael Qiu > > Currently, when VM poweroff, it will trigger vdpa > device(such as mlx bluefield2 VF) reset twice, this leads > to below issue: > > vhost VQ 2 ring restore failed: -22: Invalid argu

[PATCH] vdpa: Avoid reset when stop device

2022-03-23 Thread 08005325
From: Michael Qiu Currently, when VM poweroff, it will trigger vdpa device(such as mlx bluefield2 VF) reset twice, this leads to below issue: vhost VQ 2 ring restore failed: -22: Invalid argument (22) This because in vhost_dev_stop(), qemu tries to stop the device, then stop the queue: vhost_vi