From: =?GB2312?B?wO7D9A==?= Subject: problems of 'blktap' Date: Tue, 3 Mar 2009 18:02:47 +0800 Message-ID: <7d98bfeb0903030202t42d92549s59bec572cb011e79@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2037164258==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2037164258== Content-Type: multipart/alternative; boundary=001636e1fbd17c462704643409db --001636e1fbd17c462704643409db Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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@gmail.com --001636e1fbd17c462704643409db Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

when I am studying blktap mechanism , I faced a prob= lem that I can't understand.
In tapdisk.c(xen-3.3.0/tools/blktap/drivers) line 687-689
=A0
page=A0 =3D (char *)MMAP_VADDR(info->vstart,
=A0=A0=A0=A0=A0=A0= =A0=A0 (unsigned long)req->id, i);
=A0=A0=A0page +=3D (req->seg[i]= .first_sect << SECTOR_SHIFT);
=A0
how was the page address caculated?=A0 I am not quite understanding.
thanks a lot!
--
Min Li
School of Computer Science and Techn= ology
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@gmail.com
--001636e1fbd17c462704643409db-- --===============2037164258== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2037164258==--