Re: [PATCH 2/6] virtio: pci: Tear down VQs in virtio_pci_reset()

2023-03-31 Thread Simon Glass
On Thu, 30 Mar 2023 at 03:26, Ying-Chun Liu (PaulLiu) wrote: > > From: Will Deacon > > The pages backing the virtqueues for virtio PCI devices are not freed > on reset, despite the virtqueue structure being freed as part of the > driver '->priv_auto' destruction at ->remove() time. > > Call virti

[PATCH 2/6] virtio: pci: Tear down VQs in virtio_pci_reset()

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
From: Will Deacon The pages backing the virtqueues for virtio PCI devices are not freed on reset, despite the virtqueue structure being freed as part of the driver '->priv_auto' destruction at ->remove() time. Call virtio_pci_del_vqs() from virtio_pci_reset() to free the virtqueue pages before f