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

[Xen-devel] [PATCH] minios: permit blkfront to write from mapped memory



minios: permit blkfront to write from mapped memory
Missing call to virtual_to_mfn

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>

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;
     }

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


 


Rackspace

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