qemu-irix/hw/usb
Roger Pau Monne e02bc6de30 serial: poll the serial console with G_IO_HUP
On FreeBSD polling a master pty while the other end is not connected
with G_IO_OUT only results in an endless wait. This is different from
the Linux behaviour, that returns immediately. In order to demonstrate
this, I have the following example code:

http://xenbits.xen.org/people/royger/test_poll.c

When executed on Linux:

$ ./test_poll
In callback

On FreeBSD instead, the callback never gets called:

$ ./test_poll

So, in order to workaround this, poll the source with G_IO_HUP (which
makes the code behave the same way on both Linux and FreeBSD).

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>
Cc: "Andreas Färber" <afaerber@suse.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: xen-devel@lists.xenproject.org
[Add hw/char/cadence_uart.c too. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-06-30 15:04:34 +02:00
..
Makefile.objs
bus.c
ccid-card-emulated.c
ccid-card-passthru.c
ccid.h
combined-packet.c
core.c usb: add usb_pick_speed 2014-06-02 16:29:00 +02:00
desc-msos.c
desc.c usb: add usb_pick_speed 2014-06-02 16:29:00 +02:00
desc.h
dev-audio.c
dev-bluetooth.c
dev-hid.c usb: add input routing support for tablet and keyboard 2014-05-26 08:42:43 +02:00
dev-hub.c
dev-mtp.c
dev-network.c
dev-serial.c
dev-smartcard-reader.c
dev-storage.c blockdev: Rename drive_init(), drive_uninit() to drive_new(), drive_del() 2014-06-16 17:23:19 +08:00
dev-uas.c
dev-wacom.c
hcd-ehci-pci.c
hcd-ehci-sysbus.c
hcd-ehci.c usb: move ehci register defines to header file 2014-06-02 16:28:59 +02:00
hcd-ehci.h
hcd-musb.c
hcd-ohci.c migration: Remove unneeded minimum_version_id_old 2014-06-23 19:14:52 +02:00
hcd-uhci.c usb: move uhci register defines to header file 2014-06-02 16:28:59 +02:00
hcd-xhci.c xhci: order superspeed ports first 2014-06-02 16:38:09 +02:00
host-legacy.c
host-libusb.c usb-host: add range checks for usb-host parameters 2014-06-13 12:34:57 +02:00
host-stub.c
host.h
libhw.c
quirks-ftdi-ids.h
quirks-pl2303-ids.h
quirks.c
quirks.h
redirect.c serial: poll the serial console with G_IO_HUP 2014-06-30 15:04:34 +02:00