[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] minios: permit blkfront to write from mapped memory



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1201111527 0
# Node ID ed540d61339ef01d557aa76d3fb2b3bd54cc788b
# Parent  79497be10105d565227c25ab2e767d165ae5dce3
minios: permit blkfront to write from mapped memory
Missing call to virtual_to_mfn

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
 extras/mini-os/blkfront.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 79497be10105 -r ed540d61339e extras/mini-os/blkfront.c
--- a/extras/mini-os/blkfront.c Wed Jan 23 18:05:12 2008 +0000
+++ b/extras/mini-os/blkfront.c Wed Jan 23 18:05:27 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;
     }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.