Received: from eggs.gnu.org ([208.118.235.92]:36870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTcLy-00084v-Cc for qemu-devel@nongnu.org; Wed, 31 Oct 2012 13:45:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTcLs-0006OI-Kc for qemu-devel@nongnu.org; Wed, 31 Oct 2012 13:45:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTcLs-0006Ns-CX for qemu-devel@nongnu.org; Wed, 31 Oct 2012 13:45:16 -0400 From: Luiz Capitulino Date: Wed, 31 Oct 2012 15:45:15 -0200 Message-Id: <1351705520-24589-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 0/5] qemu-ga: add isa-serial support to win32 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mdroth@linux.vnet.ibm.com Hi, This series adds isa-serial support to qemu-ga. This is done by opening the serial port in "non-blocking" mode and using the GSourceFuncs API (full details in patch 5/5). I've tried two other simpler ways of implementing this w/o success: 1. By more or less doing what we do in qemu-ga POSIX, but opening the serial port with g_io_channel_new_file() 2. By doing exactly what we do in qemu-ga POSIX (using open() inclusive), but using g_io_channel_win32_new_fd() instead of g_io_channel_unix_new() Both tries failed with an assertion in g_io_channel_read_chars(), saying that the channel wasn't readable... Finally, I've tested this series on Windows 2008 (virtio-serial and isa-serial) and Windows Vista (isa-serial only). Luiz Capitulino (5): configure: link qemu-ga.exe in default make target qemu-ga: win32: add _ov suffix to current GSource functions qemu-ga: win32: GAChannel: store GAChannelMethod being used qemu-ga: win32: isolate virtio-serial specific code qemu-ga: win32: add isa-serial support configure | 2 +- qga/channel-win32.c | 170 +++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 135 insertions(+), 37 deletions(-) -- 1.7.12.315.g682ce8b