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



Reply via email to