Two bugs found when reviewing the code against the candidate spec: * memory leak: the event queue is never freed * incorrect virtqueue check: virtqueue_get_avail_bytes does not guarantee number of available buffers
Ladi Prosek (2): virtio-input: free event queue when finalizing virtio-input: fix eventq batching hw/input/virtio-input.c | 33 +++++++++++++++++---------------- include/hw/virtio/virtio-input.h | 5 ++++- 2 files changed, 21 insertions(+), 17 deletions(-) Thanks! Ladi