Skip to contentSkip to conversation

virtio-input: ignore events until the guest driver is ready

GIT PULL Applied Gerd Hoffmann 2 participants 3 messages Oct 20, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

One more pretty small queue, input with a single bugfix.

please pull,
Gerd

The following changes since commit 26c7be842637ee65a79cd77f96a99c23ddcd90ad:

Merge remote-tracking branch 'remotes/sstabellini/tags/2015-10-19-tag' into staging (2015-10-19 12:13:27 +0100)

are available in the git repository at:

git://git.kraxel.org/qemu tags/pull-input-20151020-1

for you to fetch changes up to d9460a7557672af9c4d9d4f153200d1075ed5a78:

virtio-input: ignore events until the guest driver is ready (2015-10-20 08:53:40 +0200)

----------------------------------------------------------------
virtio-input: ignore events until the guest driver is ready

----------------------------------------------------------------
Gerd Hoffmann (1):
virtio-input: ignore events until the guest driver is ready

 hw/input/virtio-input.c | 4 ++++
 1 file changed, 4 insertions(+)
#1 lore raw
---
 hw/input/virtio-input.c | 4 ++++
 1 file changed, 4 insertions(+)
hw/input/virtio-input.c +4 -0
index 7b25d27..1f5a40d 100644
@@ -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++;
Signature · 1 line
1.8.3.1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 14 lines · Gerd Hoffmann

Hi,

One more pretty small queue, input with a single bugfix.

please pull,
Gerd

The following changes since commit 26c7be842637ee65a79cd77f96a99c23ddcd90ad:

Merge remote-tracking branch 'remotes/sstabellini/tags/2015-10-19-tag' into staging (2015-10-19 12:13:27 +0100)

are available in the git repository at:

Quoted 9 lines

git://git.kraxel.org/qemu tags/pull-input-20151020-1

for you to fetch changes up to d9460a7557672af9c4d9d4f153200d1075ed5a78:

virtio-input: ignore events until the guest driver is ready (2015-10-20 08:53:40 +0200)

----------------------------------------------------------------
virtio-input: ignore events until the guest driver is ready

Applied, thanks.

-- PMM