From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrSQT-0004Uj-6c for qemu-devel@nongnu.org; Wed, 28 Oct 2015 11:14:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrSQP-0007AF-Vf for qemu-devel@nongnu.org; Wed, 28 Oct 2015 11:14:09 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:47294 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrSQP-000775-Ij for qemu-devel@nongnu.org; Wed, 28 Oct 2015 11:14:05 -0400 From: "Denis V. Lunev" Date: Wed, 28 Oct 2015 18:13:54 +0300 Message-Id: <1446045237-19532-1-git-send-email-den@openvz.org> Subject: [Qemu-devel] [PATCH v4 for 2.5 0/3] qga: non-blocking fd cleanups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Roth , "Denis V. Lunev" , Yuri Pudgorodskiy , qemu-devel@nongnu.org, Olga Krishtal This patchset is reincarnation of one patch discussed in the scope of QEMU 2.4 and rejected for that time. Actually we should use non-blocking descriptors in QGA on Windows in guest-file-open exactly like was done for Posix. Changes from v3: - handle_set_nonblocking now is local function in qga/commands-win32.c It works only in one way - set handle nonblocking. Changes from v2: - added fix for wrong argument to CloseHandle - switched setting non-block for pipes to use separate function Changes from v1: - call to qemu_fd_register is moved to a proper place - moved declaration of opt to a proper place Signed-off-by: Denis V. Lunev Signed-off-by: Olga Krishtal CC: Yuri Pudgorodskiy CC: Michael Roth Denis V. Lunev (1): qga: drop hand-made guest_file_toggle_flags helper Olga Krishtal (2): qga: fixed CloseHandle in qmp_guest_file_open qga: set file descriptor in qmp_guest_file_open non-blocking on Win32 qga/commands-posix.c | 27 ++------------------------- qga/commands-win32.c | 29 ++++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 26 deletions(-) -- 2.1.4