mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue