* some questions about the new blktap2 module
@ 2009-12-21 9:00 fanliang
0 siblings, 0 replies; 10+ messages in thread
From: fanliang @ 2009-12-21 9:00 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1749 bytes --]
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 ?
Thanks ,
Lyman Van
_____
发件人: fanliang [mailto:fanliang@huawei.com]
发送时间: 2009年12月21日 16:44
收件人: 'xen-devel@lists.xensource.com'
抄送: 'cqj@huawei.com'
主题: some questions about the new blktap2 module
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 ?
Thanks ,
Lyman Van
[-- Attachment #1.2: Type: text/html, Size: 3992 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* some questions about the new blktap2 module
@ 2009-12-21 9:00 fanliang
2009-12-21 9:16 ` Pasi Kärkkäinen
0 siblings, 1 reply; 10+ messages in thread
From: fanliang @ 2009-12-21 9:00 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 751 bytes --]
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 ?
Thanks ,
Lyman Van
[-- Attachment #1.2: Type: text/html, Size: 1883 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: some questions about the new blktap2 module
2009-12-21 9:00 some questions about the new blktap2 module fanliang
@ 2009-12-21 9:16 ` Pasi Kärkkäinen
2009-12-21 12:10 ` 答复: [Xen-devel] " fanliang
2009-12-21 19:06 ` Jeremy Fitzhardinge
0 siblings, 2 replies; 10+ messages in thread
From: Pasi Kärkkäinen @ 2009-12-21 9:16 UTC (permalink / raw)
To: fanliang; +Cc: Jeremy Fitzhardinge, xen-devel
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 ?
>
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* 答复: [Xen-devel] some questions about the new blktap2 module
2009-12-21 9:16 ` Pasi Kärkkäinen
@ 2009-12-21 12:10 ` fanliang
2009-12-21 12:25 ` ??????: " Pasi Kärkkäinen
2009-12-21 19:06 ` Jeremy Fitzhardinge
1 sibling, 1 reply; 10+ messages in thread
From: fanliang @ 2009-12-21 12:10 UTC (permalink / raw)
To: 'Pasi Kärkkäinen'
Cc: 'Jeremy Fitzhardinge', xen-devel
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: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
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 ?
>
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ??????: some questions about the new blktap2 module
2009-12-21 12:10 ` 答复: [Xen-devel] " fanliang
@ 2009-12-21 12:25 ` Pasi Kärkkäinen
2009-12-21 12:48 ` Jan Beulich
2009-12-21 12:49 ` fanliang
0 siblings, 2 replies; 10+ messages in thread
From: Pasi Kärkkäinen @ 2009-12-21 12:25 UTC (permalink / raw)
To: fanliang; +Cc: 'Jeremy Fitzhardinge', xen-devel
On Mon, Dec 21, 2009 at 08:10:30PM +0800, fanliang wrote:
> 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
>
>
>
> -----????????????-----
> ?????????: Pasi Kärkkäinen [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
>
> 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 ?
> >
>
> 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
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ??????: some questions about the new blktap2 module
2009-12-21 12:25 ` ??????: " Pasi Kärkkäinen
@ 2009-12-21 12:48 ` Jan Beulich
2009-12-21 21:01 ` Ian Pratt
2009-12-21 12:49 ` fanliang
1 sibling, 1 reply; 10+ messages in thread
From: Jan Beulich @ 2009-12-21 12:48 UTC (permalink / raw)
To: fanliang, Pasi Kärkkäinen; +Cc: Jeremy Fitzhardinge, xen-devel
>>> Pasi Kärkkäinen<pasik@iki.fi> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: some questions about the new blktap2 module
2009-12-21 12:25 ` ??????: " Pasi Kärkkäinen
2009-12-21 12:48 ` Jan Beulich
@ 2009-12-21 12:49 ` fanliang
1 sibling, 0 replies; 10+ messages in thread
From: fanliang @ 2009-12-21 12:49 UTC (permalink / raw)
To: 'Pasi Kärkkäinen'
Cc: 'Jeremy Fitzhardinge', xen-devel
I see.
>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:pasik@iki.fi]
发送时间: 2009年12月21日 20:26
收件人: fanliang
抄送: xen-devel@lists.xensource.com; 'Jeremy Fitzhardinge'
主题: 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 .
> 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
>
>
>
> -----????????????-----
> ?????????: Pasi Kärkkäinen [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
>
> 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 ?
> >
>
> 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
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: some questions about the new blktap2 module
2009-12-21 9:16 ` Pasi Kärkkäinen
2009-12-21 12:10 ` 答复: [Xen-devel] " fanliang
@ 2009-12-21 19:06 ` Jeremy Fitzhardinge
1 sibling, 0 replies; 10+ messages in thread
From: Jeremy Fitzhardinge @ 2009-12-21 19:06 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: fanliang, xen-devel
On 12/21/2009 01:16 AM, Pasi Kärkkäinen wrote:
> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: ??????: some questions about the new blktap2 module
2009-12-21 12:48 ` Jan Beulich
@ 2009-12-21 21:01 ` Ian Pratt
2009-12-21 21:10 ` Pasi Kärkkäinen
0 siblings, 1 reply; 10+ messages in thread
From: Ian Pratt @ 2009-12-21 21:01 UTC (permalink / raw)
To: Jan Beulich, fanliang, Pasi Kärkkäinen
Cc: Jeremy Fitzhardinge, xen-devel@lists.xensource.com, Ian Pratt
[-- Attachment #1: Type: text/plain, Size: 379 bytes --]
> >>> Pasi Kärkkäinen<pasik@iki.fi> 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
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ??????: some questions about the new blktap2 module
2009-12-21 21:01 ` Ian Pratt
@ 2009-12-21 21:10 ` Pasi Kärkkäinen
0 siblings, 0 replies; 10+ messages in thread
From: Pasi Kärkkäinen @ 2009-12-21 21:10 UTC (permalink / raw)
To: Ian Pratt
Cc: Jeremy Fitzhardinge, fanliang, xen-devel@lists.xensource.com,
Jan Beulich
On Mon, Dec 21, 2009 at 09:01:26PM +0000, Ian Pratt wrote:
> > >>> Pasi Kärkkäinen<pasik@iki.fi> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-12-21 21:10 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21 9:00 some questions about the new blktap2 module fanliang
2009-12-21 9:16 ` Pasi Kärkkäinen
2009-12-21 12:10 ` 答复: [Xen-devel] " fanliang
2009-12-21 12:25 ` ??????: " Pasi Kärkkäinen
2009-12-21 12:48 ` Jan Beulich
2009-12-21 21:01 ` Ian Pratt
2009-12-21 21:10 ` Pasi Kärkkäinen
2009-12-21 12:49 ` fanliang
2009-12-21 19:06 ` Jeremy Fitzhardinge
-- strict thread matches above, loose matches on Subject: below --
2009-12-21 9:00 fanliang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.