* xm block-attach DomID tap:aio:/...
@ 2008-12-26 11:03 Wayne Gong
2008-12-26 16:05 ` Andrew Lyon
2008-12-27 2:05 ` James Harper
0 siblings, 2 replies; 4+ messages in thread
From: Wayne Gong @ 2008-12-26 11:03 UTC (permalink / raw)
To: xen-devel
Hi folks,
I meet a problem when developing windows PV drivers for Xen. Now my
drivers can support adding a 'file' type backend media as a VBD device
using 'xm block-attach' command. With the same code, 'xm block-attach' a
'tap:aio' type backend media cannot works fine on my PV drivers. But if
I add a 'file' type backend media to windows VM and set set it to
'tap:aio' type, it works fine. Since my driver didn't get WHQL digital
signature, when adding a new device VM, windows will pops up a 'Find new
hardware' dialog to install drivers for it even there is a device object
represents for it. When installing driver for new storage class device,
windows PnP manager will remove the device object and add a new one
represents for the new device. In this progress, I will set device
backend state to XenbusStateClosing->XenbusStateClosed
->XenbusStateInitWait and then reinitialize the device. If it's a 'file'
type, all these progress works fine, but it's a 'type:aio' type, my
drivers cannot get any response from ring buffer for Read/Write scsi
command.
So does anybody can give me some brief guide on difference between
'file' type and 'tap:aio' type as a backend media for a frontend PV
drivers? And I want to confirm that a 'tap:aio' type backend can work
well when backend state changed as
XenbusStateInitWait->XenbusStateConnected->
XenbusStateClosing->XenbusStateClosed
->XenbusStateInitWait->XenbusStateConnected. I know that a 'file' type
backend is Yes, I think 'tap:aio' type is Yes either, just want to conform.
James, any suggestion?
BTW, I use OVM 2.1.2 based on Xen 3.1 series.
Merry Christmas and Happy New Year!
Thanks
Wayne
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xm block-attach DomID tap:aio:/...
2008-12-26 11:03 xm block-attach DomID tap:aio:/ Wayne Gong
@ 2008-12-26 16:05 ` Andrew Lyon
2008-12-27 2:04 ` James Harper
2008-12-27 2:05 ` James Harper
1 sibling, 1 reply; 4+ messages in thread
From: Andrew Lyon @ 2008-12-26 16:05 UTC (permalink / raw)
To: Wayne Gong; +Cc: xen-devel
On Fri, Dec 26, 2008 at 11:03 AM, Wayne Gong <wayne.gong@oracle.com> wrote:
> Hi folks,
>
> I meet a problem when developing windows PV drivers for Xen. Now my drivers
> can support adding a 'file' type backend media as a VBD device using 'xm
> block-attach' command. With the same code, 'xm block-attach' a 'tap:aio'
> type backend media cannot works fine on my PV drivers. But if I add a 'file'
> type backend media to windows VM and set set it to 'tap:aio' type, it works
> fine. Since my driver didn't get WHQL digital signature, when adding a new
> device VM, windows will pops up a 'Find new hardware' dialog to install
> drivers for it even there is a device object represents for it. When
> installing driver for new storage class device, windows PnP manager will
> remove the device object and add a new one represents for the new device. In
> this progress, I will set device backend state to
> XenbusStateClosing->XenbusStateClosed ->XenbusStateInitWait and then
> reinitialize the device. If it's a 'file' type, all these progress works
> fine, but it's a 'type:aio' type, my drivers cannot get any response from
> ring buffer for Read/Write scsi command.
>
> So does anybody can give me some brief guide on difference between 'file'
> type and 'tap:aio' type as a backend media for a frontend PV drivers? And I
> want to confirm that a 'tap:aio' type backend can work well when backend
> state changed as XenbusStateInitWait->XenbusStateConnected->
> XenbusStateClosing->XenbusStateClosed
> ->XenbusStateInitWait->XenbusStateConnected. I know that a 'file' type
> backend is Yes, I think 'tap:aio' type is Yes either, just want to conform.
>
> James, any suggestion?
Why don't you help James to improve his drivers instead of writing yet
another closed source set of drivers? it seems a bit rude to ask for
help with your closed source drivers from the only developer of gpl
drivers.
Closed source drivers are available from xensource, novell/suse,
halsign, and now oracle as well?
It seems like such a waste of effort, especially as James's gplpv
drivers are already very good and in time will probably outperform all
of the closed source drivers.
Andy
>
> BTW, I use OVM 2.1.2 based on Xen 3.1 series.
>
> Merry Christmas and Happy New Year!
>
> Thanks
> Wayne
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: xm block-attach DomID tap:aio:/...
2008-12-26 16:05 ` Andrew Lyon
@ 2008-12-27 2:04 ` James Harper
0 siblings, 0 replies; 4+ messages in thread
From: James Harper @ 2008-12-27 2:04 UTC (permalink / raw)
To: Andrew Lyon, Wayne Gong; +Cc: xen-devel
> >
> > James, any suggestion?
>
> Why don't you help James to improve his drivers instead of writing yet
> another closed source set of drivers? it seems a bit rude to ask for
> help with your closed source drivers from the only developer of gpl
> drivers.
>
> Closed source drivers are available from xensource, novell/suse,
> halsign, and now oracle as well?
>
> It seems like such a waste of effort, especially as James's gplpv
> drivers are already very good and in time will probably outperform all
> of the closed source drivers.
>
Andy,
Wayne's version of the drivers are forked from an earlier version of
mine, and are therefore GPL. I believe Wayne has slightly different
objectives but the info sharing and assistance goes both ways.
James
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: xm block-attach DomID tap:aio:/...
2008-12-26 11:03 xm block-attach DomID tap:aio:/ Wayne Gong
2008-12-26 16:05 ` Andrew Lyon
@ 2008-12-27 2:05 ` James Harper
1 sibling, 0 replies; 4+ messages in thread
From: James Harper @ 2008-12-27 2:05 UTC (permalink / raw)
To: Wayne Gong, xen-devel
> Hi folks,
>
> I meet a problem when developing windows PV drivers for Xen. Now my
> drivers can support adding a 'file' type backend media as a VBD device
> using 'xm block-attach' command. With the same code, 'xm block-attach'
a
> 'tap:aio' type backend media cannot works fine on my PV drivers. But
if
> I add a 'file' type backend media to windows VM and set set it to
> 'tap:aio' type, it works fine. Since my driver didn't get WHQL digital
> signature, when adding a new device VM, windows will pops up a 'Find
new
> hardware' dialog to install drivers for it even there is a device
object
> represents for it. When installing driver for new storage class
device,
> windows PnP manager will remove the device object and add a new one
> represents for the new device. In this progress, I will set device
> backend state to XenbusStateClosing->XenbusStateClosed
> ->XenbusStateInitWait and then reinitialize the device. If it's a
'file'
> type, all these progress works fine, but it's a 'type:aio' type, my
> drivers cannot get any response from ring buffer for Read/Write scsi
> command.
>
> So does anybody can give me some brief guide on difference between
> 'file' type and 'tap:aio' type as a backend media for a frontend PV
> drivers? And I want to confirm that a 'tap:aio' type backend can work
> well when backend state changed as
> XenbusStateInitWait->XenbusStateConnected->
> XenbusStateClosing->XenbusStateClosed
> ->XenbusStateInitWait->XenbusStateConnected. I know that a 'file' type
> backend is Yes, I think 'tap:aio' type is Yes either, just want to
> conform.
>
> James, any suggestion?
>
> BTW, I use OVM 2.1.2 based on Xen 3.1 series.
>
I have tried tap:aio before and also had no success, but I haven't
looked into why. If you do find out then please let me know.
Thanks
James
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-27 2:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-26 11:03 xm block-attach DomID tap:aio:/ Wayne Gong
2008-12-26 16:05 ` Andrew Lyon
2008-12-27 2:04 ` James Harper
2008-12-27 2:05 ` James Harper
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.