mirror of https://github.com/proxmox/mirror_qemu
virtio-input: ignore events until the guest driver is ready
Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>master
parent
26c7be8426
commit
d9460a7557
|
@ -20,6 +20,10 @@ void virtio_input_send(VirtIOInput *vinput, virtio_input_event *event)
|
||||||
unsigned have, need;
|
unsigned have, need;
|
||||||
int i, len;
|
int i, len;
|
||||||
|
|
||||||
|
if (!vinput->active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* queue up events ... */
|
/* queue up events ... */
|
||||||
if (vinput->qindex == vinput->qsize) {
|
if (vinput->qindex == vinput->qsize) {
|
||||||
vinput->qsize++;
|
vinput->qsize++;
|
||||||
|
|
Loading…
Reference in New Issue