From patchwork Mon Apr 30 12:01:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 906674 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=citrix.com Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40ZPBv48sgz9s0W for ; Mon, 30 Apr 2018 22:35:15 +1000 (AEST) Received: from localhost ([::1]:59536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD813-0005Hu-K2 for incoming@patchwork.ozlabs.org; Mon, 30 Apr 2018 08:34:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD80R-0005Dv-Fa for qemu-devel@nongnu.org; Mon, 30 Apr 2018 08:34:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fD80Q-0000jU-Ma for qemu-devel@nongnu.org; Mon, 30 Apr 2018 08:34:11 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:34961) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fD80M-0000fC-3c; Mon, 30 Apr 2018 08:34:06 -0400 X-IronPort-AV: E=Sophos;i="5.49,346,1520899200"; d="scan'208";a="53202001" From: Paul Durrant To: , , Date: Mon, 30 Apr 2018 13:01:35 +0100 Message-ID: <1525089699-13411-1-git-send-email-paul.durrant@citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 162.221.156.55 Subject: [Qemu-devel] [PATCH 0/4] block/xen_disk: legacy code removal and cleanup X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anthony Perard , Kevin Wolf , Paul Durrant , Stefano Stabellini , Max Reitz Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" The grant copy operation was added to libxengnttab in Xen 4.8.0 (released nearly 18 months ago) but the xen_disk PV backend QEMU is still carrying a significant amount of code purely to remain compatible with older versions of Xen. As can be inferred from the diff stats below, removing this support for older versions of Xen from QEMU reduces the size of the xen_disk source by more than 350 lines (~25%). The majority of this is done in patches #1 and #2. Further simplifications are made in patch #3 and then some cosmetic work is done in patch #4. Paul Durrant (4): block/xen_disk: remove persistent grant code block/xen_disk: remove use of grant map/unmap block/xen_disk: use a single entry iovec block/xen_disk: be consistent with use of xendev and blkdev->xendev hw/block/xen_disk.c | 590 ++++++++++------------------------------------------ 1 file changed, 109 insertions(+), 481 deletions(-) --- Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz