ia64/xen-unstable
changeset 16867:ed540d61339e
minios: permit blkfront to write from mapped memory
Missing call to virtual_to_mfn
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Missing call to virtual_to_mfn
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Wed Jan 23 18:05:27 2008 +0000 (2008-01-23) |
parents | 79497be10105 |
children | 05e36e506c09 |
files | extras/mini-os/blkfront.c |
line diff
1.1 --- a/extras/mini-os/blkfront.c Wed Jan 23 18:05:12 2008 +0000 1.2 +++ b/extras/mini-os/blkfront.c Wed Jan 23 18:05:27 2008 +0000 1.3 @@ -275,7 +275,7 @@ void blkfront_aio(struct blkfront_aiocb 1.4 for (j = 0; j < n; j++) { 1.5 uintptr_t data = start + j * PAGE_SIZE; 1.6 aiocbp->gref[j] = req->seg[j].gref = 1.7 - gnttab_grant_access(0, virt_to_mfn(data), write); 1.8 + gnttab_grant_access(0, virtual_to_mfn(data), write); 1.9 req->seg[j].first_sect = 0; 1.10 req->seg[j].last_sect = PAGE_SIZE / dev->sector_size - 1; 1.11 }