From patchwork Wed Oct 10 14:02:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 190644 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2CFE12C0087 for ; Thu, 11 Oct 2012 01:03:56 +1100 (EST) Received: from localhost ([::1]:35536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLwt8-0001hc-7U for incoming@patchwork.ozlabs.org; Wed, 10 Oct 2012 10:03:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLwsf-0001QW-NN for qemu-devel@nongnu.org; Wed, 10 Oct 2012 10:03:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLwsX-000260-5r for qemu-devel@nongnu.org; Wed, 10 Oct 2012 10:03:25 -0400 Received: from mail-da0-f45.google.com ([209.85.210.45]:46951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLwsW-00025i-VE for qemu-devel@nongnu.org; Wed, 10 Oct 2012 10:03:17 -0400 Received: by mail-da0-f45.google.com with SMTP id n15so189690dad.4 for ; Wed, 10 Oct 2012 07:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=h9vswGaGn2n49LS+UfUbNXrr07pKAVIVwKidlYz+3Pk=; b=S3SE4k2ORMOcMMR2yBdFwq6RCik3DrR45/GGb2dZWV8/P+Pnu4ncvQbIzlxw3zCxNE r0+mLrB0pKTScxyS7oXj5JBCiGAII9++2T7j78ldzWY4F6YKRIGpAX+Rdts5gxcGp4Hl UfL505pSy7qXaYIvWs/OldYWHRB9BCewT81cKMUbHs9PAvjUmJyRqmNCvispJN4v+Xlh 0xN6u4PWE7pdrxqtrJNSbGwpP7qHYsWgXRpcYXfYE/1w7zdukiMlppumpVynMjJjHikT LxXlK4Y4CH5FGBLzkccGFt9xVIENAWVpU4yCDo2io8QaGv5EeFQO6Fzla+B/mwSvY40B S8DQ== Received: by 10.68.135.168 with SMTP id pt8mr75492246pbb.24.1349877796013; Wed, 10 Oct 2012 07:03:16 -0700 (PDT) Received: from yakj.usersys.redhat.com (93-34-169-1.ip50.fastwebnet.it. [93.34.169.1]) by mx.google.com with ESMTPS id n7sm905723pav.26.2012.10.10.07.03.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Oct 2012 07:03:15 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 10 Oct 2012 16:02:41 +0200 Message-Id: <1349877786-23514-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.12.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.45 Cc: lcapitulino@redhat.com Subject: [Qemu-devel] [PULL for Luiz 00/25] Combined qemu-sockets cleanup v2 + NBD server X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Luiz, The following changes since commit b4ae3cfa57b8c1bdbbd7b7d420971e9171203ade: ssi: Add slave autoconnect helper (2012-10-10 11:13:32 +1000) are available in the git repository at: git://github.com/bonzini/qemu.git nbd-next for you to fetch changes up to 7a057978b8b8f7578c03a470ffd8c486a778497a: hmp: add NBD server commands (2012-10-10 13:44:09 +0200) The following patches changed from v1: 04/25 qemu-sockets: add nonblocking connect for Unix sockets v1->v2: fixed connect_state memory leaks 05/25 migration: avoid using error_is_set and thus relying on errp != NULL v1->v2: changed summary line of the commit message 08/25 migration (outgoing): add error propagation for all protocols v1->v2: turn bizarre DPRINTF into an assertion failure or just drop it for the failure test of O_NONBLOCK. Clean up after this change. 13/25 vnc: add error propagation to vnc_display_open v1->v2: small cleanup for the if(reverse) case, do not use qerror_report_err. The following patches are unreviewed: 07/25 migration: use qemu-sockets to establish Unix sockets 17/25 qemu-sockets: add error propagation to inet_parse Plus 11/25 is not reviewed, but that's NBD so it's my own turf. :) Paolo Paolo Bonzini (25): error: add error_set_errno and error_setg_errno qemu-sockets: add Error ** to all functions qemu-sockets: unix_listen and unix_connect are portable qemu-sockets: add nonblocking connect for Unix sockets migration: avoid using error_is_set and thus relying on errp != NULL migration: centralize call to migrate_fd_error() migration: use qemu-sockets to establish Unix sockets migration (outgoing): add error propagation for all protocols migration (incoming): add error propagation to fd and exec protocols qemu-char: ask and print error information from qemu-sockets nbd: ask and print error information from qemu-sockets qemu-ga: ask and print error information from qemu-sockets vnc: add error propagation to vnc_display_open qemu-sockets: include strerror or gai_strerror output in error messages qemu-sockets: add error propagation to inet_connect_addr qemu-sockets: add error propagation to inet_dgram_opts qemu-sockets: add error propagation to inet_parse qemu-sockets: add error propagation to Unix socket functions build: add QAPI files to the tools qapi: add socket address types qemu-sockets: return IPSocketAddress from inet_parse qemu-sockets: add socket_listen, socket_connect, socket_parse block: add close notifiers qmp: add NBD server commands hmp: add NBD server commands Makefile | 2 +- Makefile.objs | 9 +- block.c | 19 ++- block.h | 1 + block_int.h | 2 + blockdev-nbd.c | 119 +++++++++++++++ console.h | 2 +- error.c | 28 ++++ error.h | 9 ++ hmp-commands.hx | 29 ++++ hmp.c | 55 +++++++ hmp.h | 2 + migration-exec.c | 26 +--- migration-fd.c | 27 +--- migration-tcp.c | 19 +-- migration-unix.c | 95 ++---------- migration.c | 34 ++--- migration.h | 19 ++- nbd.c | 39 ++++- qapi-schema.json | 96 ++++++++++++ qemu-char.c | 24 ++- qemu-sockets.c | 422 ++++++++++++++++++++++++++++++++++------------------ qemu-tool.c | 6 + qemu_socket.h | 19 ++- qga/channel-posix.c | 8 +- qmp-commands.hx | 16 ++ qmp.c | 6 +- ui/vnc.c | 91 ++++++----- vl.c | 25 ++-- 29 file modificati, 842 inserzioni(+), 407 rimozioni(-) create mode 100644 blockdev-nbd.c