From: fanliang Subject: Re: some questions about the new blktap2 module Date: Mon, 21 Dec 2009 20:49:24 +0800 Message-ID: <001001ca823c$063362c0$e538a60a@china.huawei.com> References: <20091221122536.GN16033@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-reply-to: <20091221122536.GN16033@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?utf-8?Q?'Pasi_K=C3=A4rkk=C3=A4inen'?= Cc: 'Jeremy Fitzhardinge' , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I see.=20 >From /pub/scm / linux/kernel/git/jeremy/xen.git / tree I can see = that the new kernel tree discard the old blktap source files , instead = by the new blktap2 files.=20 Thanks again. -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- =E5=8F=91=E4=BB=B6=E4=BA=BA: Pasi K=C3=A4rkk=C3=A4inen = [mailto:pasik@iki.fi]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: = 2009=E5=B9=B412=E6=9C=8821=E6=97=A5 20:26 =E6=94=B6=E4=BB=B6=E4=BA=BA: fanliang =E6=8A=84=E9=80=81: xen-devel@lists.xensource.com; 'Jeremy Fitzhardinge' =E4=B8=BB=E9=A2=98: Re: ??????: [Xen-devel] some questions about the new = blktap2 module On Mon, Dec 21, 2009 at 08:10:30PM +0800, fanliang wrote: > Thank you a lot for your attention .=20 > I got the dom0 kernel source code from xensource.com, and I don't know = whether it's the same with pv_ops dom0 source tree . I'm wondering = that how can people use VHD devices under the new blktap2 if he use = SUSE11 as dom0 , whose kernel is 2.6.27 . In my mind, the new blktap2 = module is developed matching with kernel 2.6.18 . For example, blktap2 = includes lots header files from linux-2.6.18. Is this right ?=20 >=20 pv_ops dom0 changelog is here: http://git.kernel.org/?p=3Dlinux/kernel/git/jeremy/xen.git;a=3Dshortlog;h= =3Dxen/master That's the tree xen-unstable automatically fetches/uses. SLES11 2.6.27 Xen dom0 kernel is forward-ported from 2.6.18-xen.=20 I'm not sure if Novell ported blktap2 aswell. -- Pasi >=20 > =20 >=20 > -----????????????----- > ?????????: Pasi K=C3=A4rkk=C3=A4inen [mailto:pasik@iki.fi] > ????????????: 2009???12???21??? 17:17 > ?????????: fanliang > ??????: xen-devel@lists.xensource.com; Jeremy Fitzhardinge > ??????: Re: [Xen-devel] some questions about the new blktap2 module >=20 > On Mon, Dec 21, 2009 at 05:00:56PM +0800, fanliang wrote: > > Hi, all: > > I have some questions when read the code of the new blktap2 = module. > > One is in function tapdisk_vbd_map_device ( ) . In this function = , the > > userspace proccess tapdisk2 used ioctl like this : > > ioctl(ring->fd, BLKTAP_IOCTL_SETMODE, = BLKTAP_MODE_INTERPOSE); > > From the context , we can get that "ring->fd " is the file handle = of the > > ring-device [/dev/xen/blktap-2/blktap[minor] ] . In the blktap2 = driver > > codes , I find that blktap_ring_ioctl() didn't implement the > > BLKTAP_IOCTL_SETMODE ioctl case . I used xen-unstable code = package and > > linux-2.6.18-xen-3.4.2 code package. > > So my question is : > > 1, Is blktap2 code in xen-unstable not match with = linux-2.6.18-xen-3.4.2 > > ? > > 2, Any body used VHD disk with blktap2 ? > >=20 >=20 > Hello, >=20 > Afaik blktap2 is not yet ready/working on pv_ops dom0 tree = (xen-unstable uses pv_ops dom0). >=20 > Jeremy can possibly comment more about the status of blktap2. >=20 > -- Pasi >=20 >=20 >=20