From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Paul Durrant Date: Mon, 30 Apr 2018 13:01:35 +0100 Message-ID: <1525089699-13411-1-git-send-email-paul.durrant@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/4] block/xen_disk: legacy code removal and cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xen-devel@lists.xenproject.org, qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: Paul Durrant , Stefano Stabellini , Anthony Perard , Kevin Wolf , Max Reitz 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 -- 2.1.4