virtio-input: ignore events until the guest driver is ready
Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
26c7be8426
commit
d9460a7557
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user