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

[Xen-devel] problems of 'blktap'


  • To: Xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: 李敏 <fly.limin@xxxxxxxxx>
  • Date: Tue, 3 Mar 2009 18:02:47 +0800
  • Cc:
  • Delivery-date: Tue, 03 Mar 2009 02:03:16 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IopqNQmSO1CTRQROiZnocm/cG4ZrXBMp7wTttICIFgnkRn/WHmWqtbNAx6R92HX1AW FddZ46EW0f68izyzp8zapG7qVhmAyXwoyxHFNEQ8l/OHR/CkZ/EcLOpOGyV7aFiff529 F8T5n+mCF4wiC2J+hIjzefPF2ukqo6l9lvVVw=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>


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!
--
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: fly.limin@xxxxxxxxx
_______________________________________________
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®.