Skip to contentSkip to conversation

problems of 'blktap'

DISCUSSION 李敏 1 participant 1 message Mar 3, 2009

lore
Share & tools
lore

李敏

author
#0 lore raw

when I am studying blktap mechanism , I faced a problem that I can't understand.
In tapdisk.c(xen-3.3.0/tools/blktap/drivers) line 687-689

page = (char *)MMAP_VADDR(info->vstart,

         (unsigned long)req->id, i);

page += (req->seg[i].first_sect << SECTOR_SHIFT);

how was the page address caculated? I am not quite understanding. thanks a lot!

Signature · 8 lines
Min Li
School of Computer Science and Technology
Cluster and Grid Computing Lab
Services Computing Technology and System Lab
Huazhong University of Science and Technology
Wuhan, 430074, China
Tel: 13986251431 027-65236831
Email: [email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel