|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH 2/2] main: switch qemu_set_fd_handler to g_io_add_watch |
Date: | Mon, 22 Aug 2011 08:45:43 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10 |
On 08/22/2011 08:40 AM, Paolo Bonzini wrote:
On 08/22/2011 03:12 PM, Anthony Liguori wrote:I'm pretty sure that this will work on Win32, but I would appreciate some help testing. I think the semantics of g_io_channel_unix_new() are really just tied to the notion of a "unix fd" and not necessarily unix itself.Almost: in Win32 you need to use g_io_channel_win32_new_socket. But indeed on Windows you can only use qemu_set_fd_handler for sockets too.
I think that's really only for read/write though. If you're just polling on I/O, it shouldn't matter IIUC.
If someone has a Windows box, they can confirm/deny by using qemu -monitor tcp:localhost:1024,socket,nowait with this patch.
Regards, Anthony Liguori
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |