qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

chardev: Add macOS to list of OSes that support -chardev serial

macOS API for dealing with serial ports/ttys is identical to BSDs.

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200426210956.17324-1-dottedmag@dottedmag.net>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

authored by

Mikhail Gusarov and committed by
Laurent Vivier
949da1eb 8261cc17

+2 -2
+1 -1
chardev/char-serial.c
··· 53 53 54 54 #elif defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \ 55 55 || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) \ 56 - || defined(__GLIBC__) 56 + || defined(__GLIBC__) || defined(__APPLE__) 57 57 58 58 static void tty_serial_init(int fd, int speed, 59 59 int parity, int data_bits, int stop_bits)
+1 -1
include/qemu/osdep.h
··· 379 379 #define HAVE_CHARDEV_SERIAL 1 380 380 #elif defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \ 381 381 || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) \ 382 - || defined(__GLIBC__) 382 + || defined(__GLIBC__) || defined(__APPLE__) 383 383 #define HAVE_CHARDEV_SERIAL 1 384 384 #endif 385 385