aboutsummaryrefslogtreecommitdiff
path: root/blockdev-nbd.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-07-04 11:42:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-07-12 09:24:31 +0200
commit57a4e3b92b6e87158c1e5192fb99a5ac3b82dd5a (patch)
treeb30fb1ce19e7243ec2367b0804684cf32cb5f4dd /blockdev-nbd.c
parentcde8dcbc926d9b960a96c7d637b9c23515e06c0b (diff)
msmouse: fix buffer handling
The msmouse chardev backend writes data without checking whenever there is enough space. That happens to work with linux guests, probably by pure luck because the linux driver enables the fifo and the serial port emulation accepts more data than announced via qemu_chr_be_can_write() in that case. Handle this properly by adding a buffer to MouseState. Hook up a CharDriverState->accept_input() handler which feeds the buffer to the serial port. msmouse_event() only fills the buffer now, and calls the accept_input handler too to kick off the transmission. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1467625375-31774-3-git-send-email-kraxel@redhat.com
Diffstat (limited to 'blockdev-nbd.c')
0 files changed, 0 insertions, 0 deletions