diff options
| author | Xuan Zhuo <[email protected]> | 2022-08-01 06:38:52 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2022-08-11 08:06:40 +0000 |
| commit | 04ca0b0b16f11faf74fa92468dab51b8372586cd (patch) | |
| tree | 65e01fe0d2f5b41896d883b97087cda6b6562aa9 /arch/um/drivers/virtio_uml.c | |
| parent | virtio_pci: extract the logic of active vq for modern pci (diff) | |
| download | kernel-04ca0b0b16f11faf74fa92468dab51b8372586cd.tar.gz kernel-04ca0b0b16f11faf74fa92468dab51b8372586cd.zip | |
virtio_pci: support VIRTIO_F_RING_RESET
This patch implements virtio pci support for QUEUE RESET.
Performing reset on a queue is divided into these steps:
1. notify the device to reset the queue
2. recycle the buffer submitted
3. reset the vring (may re-alloc)
4. mmap vring to device, and enable the queue
This patch implements virtio_reset_vq(), virtio_enable_resetq() in the
pci scenario.
Signed-off-by: Xuan Zhuo <[email protected]>
Acked-by: Jason Wang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'arch/um/drivers/virtio_uml.c')
0 files changed, 0 insertions, 0 deletions
