Re: why vdev->config->reset(vdev) is not called in virtinput_freeze

From: Jie Deng
Date: Thu Jul 26 2018 - 21:16:38 EST


Hi Gerd,

Do you have any comments ?


On 2018/7/23 16:56, Chen, Jian Jun wrote:
> Hi Gerd Hoffmann,
>
> vdev->config->reset(vdev) is not called before vdev->config->del_vqs(vdev) in virtinput_freeze.
> Backend driver cannot receive notification about the suspend.
> Is it possible that backend driver tries to write a buffer pointed by a desc which has been freed by frontend driver?
>
> Can you please explain why vdev->config->reset(vdev) is not called in virtinput_freeze?
> Virtio_net/virtio_block/virtio_rng... all have the reset in their pm suspend callback.
>
> Best regards,
> Chen Jian Jun
>

Regards,
Jie