Skip to contentSkip to conversation

some questions about the new blktap2 module

DISCUSSION fanliang 5 participants 9 messages Dec 21, 2009

lore
Share & tools
lore

fanliang

author
#0 lore raw

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);
Quoted 1 line

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 ?

Thanks ,
Lyman Van

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

#1 lore raw
Quoted 5 lines · fanliang

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);
Quoted 10 lines

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 ?

Hello,

Afaik blktap2 is not yet ready/working on pv_ops dom0 tree (xen-unstable uses pv_ops dom0).

Jeremy can possibly comment more about the status of blktap2.

-- Pasi

author
#2 lore raw

Thank you a lot for your attention .
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 ?

-----邮件原件-----
发件人: Pasi Kärkkäinen [mailto:[email protected]]
发送时间: 2009年12月21日 17:17
收件人: fanliang
抄送: [email protected]; Jeremy Fitzhardinge 主题: Re: [Xen-devel] some questions about the new blktap2 module

Quoted 5 lines · fanliang

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);
Quoted 10 lines

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 ?

Hello,

Afaik blktap2 is not yet ready/working on pv_ops dom0 tree (xen-unstable uses pv_ops dom0).

Jeremy can possibly comment more about the status of blktap2.

-- Pasi

#3 lore raw

Re: ??????: some questions about the new blktap2 module

Quoted 3 lines · fanliang

Thank you a lot for your attention .
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 ?

pv_ops dom0 changelog is here:
http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=shortlog;h=xen/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. I'm not sure if Novell ported blktap2 aswell.

-- Pasi

Quoted 37 lines

-----????????????-----
?????????: Pasi Kärkkäinen [mailto:[email protected]] ????????????: 2009???12???21??? 17:17
?????????: fanliang
??????: [email protected]; Jeremy Fitzhardinge ??????: Re: [Xen-devel] some questions about the new blktap2 module

Quoted 5 lines · fanliang

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);
Quoted 10 lines

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 ?

Hello,

Afaik blktap2 is not yet ready/working on pv_ops dom0 tree (xen-unstable uses pv_ops dom0).

Jeremy can possibly comment more about the status of blktap2.

-- Pasi

#4 lore raw

Re: ??????: some questions about the new blktap2 module

Quoted 3 lines
Quoted 1 line
Quoted 1 line

Pasi Kärkkäinen<[email protected]> 21.12.09 13:25 >>>

SLES11 2.6.27 Xen dom0 kernel is forward-ported from 2.6.18-xen. I'm not sure if Novell ported blktap2 aswell.

No, that tree pre-dates blktap2. Newer kernels of ours have it, but the 2.6.27 tree isn't expected to ever get it added.

Jan

author
#7 lore raw
In reply to Pasi Kärkkäinen

I see.

Quoted 1 line

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.

Thanks again.

-----邮件原件-----
发件人: Pasi Kärkkäinen [mailto:[email protected]]
发送时间: 2009年12月21日 20:26
收件人: fanliang
抄送: [email protected]; 'Jeremy Fitzhardinge'
主题: Re: ??????: [Xen-devel] some questions about the new blktap2 module

Quoted 3 lines · fanliang

Thank you a lot for your attention .
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 ?

pv_ops dom0 changelog is here:
http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=shortlog;h=xen/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. I'm not sure if Novell ported blktap2 aswell.

-- Pasi

Quoted 37 lines

-----????????????-----
?????????: Pasi Kärkkäinen [mailto:[email protected]] ????????????: 2009???12???21??? 17:17
?????????: fanliang
??????: [email protected]; Jeremy Fitzhardinge ??????: Re: [Xen-devel] some questions about the new blktap2 module

Quoted 5 lines · fanliang

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);
Quoted 10 lines

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 ?

Hello,

Afaik blktap2 is not yet ready/working on pv_ops dom0 tree (xen-unstable uses pv_ops dom0).

Jeremy can possibly comment more about the status of blktap2.

-- Pasi

#8 lore raw
In reply to Pasi Kärkkäinen
Quoted 5 lines · Pasi Kärkkäinen

Afaik blktap2 is not yet ready/working on pv_ops dom0 tree (xen-unstable uses pv_ops dom0).

Jeremy can possibly comment more about the status of blktap2.

I've got it to the stage where I can start a domain and it can access its disk, but the tapdisk process consumes 100% of the CPU and throws kernel oopses when you terminate the domain...

J

#5 lore raw

RE: ??????: some questions about the new blktap2 module

In reply to Jan Beulich
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Pasi Kärkkäinen<[email protected]> 21.12.09 13:25 >>>

SLES11 2.6.27 Xen dom0 kernel is forward-ported from 2.6.18-xen. I'm not sure if Novell ported blktap2 aswell.

No, that tree pre-dates blktap2. Newer kernels of ours have it, but the 2.6.27 tree isn't expected to ever get it added.

The 2.6.27 XCP and XCI trees on xenbits both have blktap2.

Ian

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

#6 lore raw

Re: ??????: some questions about the new blktap2 module

Quoted 9 lines · Ian Pratt
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Pasi Kärkkäinen<[email protected]> 21.12.09 13:25 >>>

SLES11 2.6.27 Xen dom0 kernel is forward-ported from 2.6.18-xen. I'm not sure if Novell ported blktap2 aswell.

No, that tree pre-dates blktap2. Newer kernels of ours have it, but the 2.6.27 tree isn't expected to ever get it added.

The 2.6.27 XCP and XCI trees on xenbits both have blktap2.

Oh, XCP tree is now online?

-- Pasi