From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xqgqf-0002fW-D0 for qemu-devel@nongnu.org; Tue, 18 Nov 2014 06:21:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqgqZ-0002ad-9f for qemu-devel@nongnu.org; Tue, 18 Nov 2014 06:21:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqgqZ-0002aZ-0G for qemu-devel@nongnu.org; Tue, 18 Nov 2014 06:21:23 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAIBLLlS011423 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 18 Nov 2014 06:21:22 -0500 From: Max Reitz Date: Tue, 18 Nov 2014 12:21:13 +0100 Message-Id: <1416309679-333-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/6] nbd: Use BlockBackend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , Markus Armbruster , Stefan Hajnoczi , Max Reitz >>From the block layer's perspective, the nbd server is pretty similar to a guest device. Therefore, it should use BlockBackend to access block devices, just like any other guest device does. This series consequently makes the nbd server use BlockBackend for referencing block devices. v2: - Added patch 6, which converts qemu-nbd to BlockBackend as far as reasonable [Paolo] git-backport-diff against v1: Key: [----] : patches are identical [####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively 001/6:[----] [--] 'block: Lift more functions into BlockBackend' 002/6:[----] [--] 'block: Add AioContextNotifier functions to BB' 003/6:[----] [--] 'block: Add blk_add_close_notifier() for BB' 004/6:[----] [--] 'nbd: Change external interface to BlockBackend' 005/6:[----] [--] 'nbd: Use BlockBackend internally' 006/6:[down] 'qemu-nbd: Use BlockBackend where reasonable' Max Reitz (6): block: Lift more functions into BlockBackend block: Add AioContextNotifier functions to BB block: Add blk_add_close_notifier() for BB nbd: Change external interface to BlockBackend nbd: Use BlockBackend internally qemu-nbd: Use BlockBackend where reasonable block/block-backend.c | 38 +++++++++++++++++++++++++ blockdev-nbd.c | 15 +++++----- include/block/nbd.h | 7 ++--- include/sysemu/block-backend.h | 12 ++++++++ nbd.c | 63 +++++++++++++++++++++--------------------- qemu-nbd.c | 12 ++++---- 6 files changed, 99 insertions(+), 48 deletions(-) -- 1.9.3