WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] minios: permit blkfront to write from mapped memory
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Jan 2008 07:10:12 -0800
Delivery-date: Thu, 24 Jan 2008 07:11:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>