From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: [PATCH] minios: permit blkfront to write from mapped memory Date: Wed, 23 Jan 2008 17:45:29 +0000 Message-ID: <20080123174529.GJ5188@implementation.uk.xensource.com> References: <20080122140853.GD5592@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20080122140853.GD5592@implementation.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org minios: permit blkfront to write from mapped memory Missing call to virtual_to_mfn Signed-off-by: Samuel Thibault diff -r 9e92672385a5 extras/mini-os/blkfront.c --- a/extras/mini-os/blkfront.c Wed Jan 23 13:37:03 2008 +0000 +++ b/extras/mini-os/blkfront.c Wed Jan 23 17:44:23 2008 +0000 @@ -275,7 +275,7 @@ void blkfront_aio(struct blkfront_aiocb for (j = 0; j < n; j++) { uintptr_t data = start + j * PAGE_SIZE; aiocbp->gref[j] = req->seg[j].gref = - gnttab_grant_access(0, virt_to_mfn(data), write); + gnttab_grant_access(0, virtual_to_mfn(data), write); req->seg[j].first_sect = 0; req->seg[j].last_sect = PAGE_SIZE / dev->sector_size - 1; }