virtio: Add reset() callback
When the guest writes a status of 0, the device should be reset. Add a reset() callback for the transport layer to reset all queues and their ioeventfd. Signed-off-by:Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Signed-off-by:
Julien Thierry <julien.thierry@arm.com> Signed-off-by:
Will Deacon <will.deacon@arm.com>
Showing
- include/kvm/virtio-mmio.h 1 addition, 0 deletionsinclude/kvm/virtio-mmio.h
- include/kvm/virtio-pci.h 1 addition, 0 deletionsinclude/kvm/virtio-pci.h
- include/kvm/virtio.h 1 addition, 0 deletionsinclude/kvm/virtio.h
- virtio/core.c 9 additions, 0 deletionsvirtio/core.c
- virtio/mmio.c 12 additions, 4 deletionsvirtio/mmio.c
- virtio/pci.c 13 additions, 7 deletionsvirtio/pci.c
Please register or sign in to comment