summaryrefslogtreecommitdiffstats
path: root/hw/misc/ivshmem.c
diff options
context:
space:
mode:
authorJason Andryuk2020-03-16 18:46:10 +0100
committerGerd Hoffmann2020-03-17 09:05:34 +0100
commit647ee9877272d4359659e2595262db0e062c8ffc (patch)
tree922bf0353aa1b648dd7fe84cb08b1c4598000ef4 /hw/misc/ivshmem.c
parentusb-serial: Increase receive buffer to 496 (diff)
downloadqemu-647ee9877272d4359659e2595262db0e062c8ffc.tar.gz
qemu-647ee9877272d4359659e2595262db0e062c8ffc.tar.xz
qemu-647ee9877272d4359659e2595262db0e062c8ffc.zip
usb-serial: Fix timeout closing the device
Linux guests wait ~30 seconds when closing the emulated /dev/ttyUSB0. During that time, the kernel driver is sending many control URBs requesting GetModemStat (5). Real hardware returns a status with FTDI_THRE (Transmitter Holding Register) and FTDI_TEMT (Transmitter Empty) set. QEMU leaves them clear, and it seems Linux is waiting for FTDI_TEMT to be set to indicate the tx queue is empty before closing. Set the bits when responding to a GetModemStat query and avoid the shutdown delay. Signed-off-by: Jason Andryuk <jandryuk@gmail.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Message-id: 20200316174610.115820-5-jandryuk@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/misc/ivshmem.c')
0 files changed, 0 insertions, 0 deletions