[Qemu-devel] [PATCH 0/2] virtio-input: eventq batching fixes

Ladi Prosek posted 2 patches 7 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1490365490-4854-1-git-send-email-lprosek@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
hw/input/virtio-input.c          | 33 +++++++++++++++++----------------
include/hw/virtio/virtio-input.h |  5 ++++-
2 files changed, 21 insertions(+), 17 deletions(-)
[Qemu-devel] [PATCH 0/2] virtio-input: eventq batching fixes
Posted by Ladi Prosek 7 years ago
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