]> Git Repo - qemu.git/commitdiff
virtio-input: ignore events until the guest driver is ready
authorGerd Hoffmann <[email protected]>
Fri, 16 Oct 2015 11:33:07 +0000 (13:33 +0200)
committerGerd Hoffmann <[email protected]>
Tue, 20 Oct 2015 06:53:40 +0000 (08:53 +0200)
Cc: [email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/input/virtio-input.c

index 7b25d27693189c292c5547e8d6af15392b81e73f..1f5a40de359aff6f1ffeecbdfa2fcef012b94900 100644 (file)
@@ -20,6 +20,10 @@ void virtio_input_send(VirtIOInput *vinput, virtio_input_event *event)
     unsigned have, need;
     int i, len;
 
+    if (!vinput->active) {
+        return;
+    }
+
     /* queue up events ... */
     if (vinput->qindex == vinput->qsize) {
         vinput->qsize++;
This page took 0.026427 seconds and 4 git commands to generate.