From: David Vrabel Subject: [RFC PATCH 00/12] xen: fix many long-standing grant mapping bugs Date: Tue, 6 Jan 2015 18:57:25 +0000 Message-ID: <1420570657-8203-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Y8ZKf-0006Fo-EV for xen-devel@lists.xenproject.org; Tue, 06 Jan 2015 18:58:21 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Boris Ostrovsky , Stefano Stabellini , Jenny Herbert , David Vrabel List-Id: xen-devel@lists.xenproject.org This series fixes a number of long-standing bugs in the handling of grant maps. Refer to the following for all the details. http://xenbits.xen.org/people/dvrabel/grant-improvements-B.pdf In summary, the important uses that this enables are: 1. Block backends can use networked storage safely. 2. Block backends can use network storage provided by other guests on the same host. 3. User space block backends can use direct I/O or asynchronous I/O. The first two patches are the core MM changes necessary. I shall be sending these to the MM maintainers seperately. Patches #3 and #4 remove existing (broken) mechanisms. This does temporarily break some previously working use cases, but it does make the subsequent additions much easier to review. As a happy side effect, performance is also likely to be improved in some areas (but I've not got any measurements yet). User space backends using grant mapping should see some good improvements from reduced overheads and better unmap batching. VIF to VIF network traffic may also see a small improvement. This is RFC because: - It needs more testing. - I've not checked what changes (if any) are needed for ARM. Finally, thanks to Jenny who did much of the implementation. David