>From dom0 I can do xm block-detach to remove a device from a DomU, whichmanages the state transition to closing/closed etc then removes the device Can a DomU initiate the transition to closed too, or is that not expected to work? Thanks James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, 2011-07-15 at 02:24 +0100, James Harper wrote:> >From dom0 I can do xm block-detach to remove a device from a DomU, which > manages the state transition to closing/closed etc then removes the > device > > Can a DomU initiate the transition to closed too, or is that not > expected to work?I reckon that ought to work, by switching the frontend to Closing, although I''m not aware of any existing frontends which actually do that (maybe it happens on kexec? e.g. pvgrub->kernel) Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
James, Yes, if the frontend sets state to CLOSING the backend should follow suit and then the frontend can go CLOSED. I haven''t tried it for a while but it certainly worked a few months back. Paul> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > bounces@lists.xensource.com] On Behalf Of James Harper > Sent: 15 July 2011 02:25 > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] removing a block device from windows > > >From dom0 I can do xm block-detach to remove a device from a DomU, > >which > manages the state transition to closing/closed etc then removes the > device > > Can a DomU initiate the transition to closed too, or is that not > expected to work? > > Thanks > > James > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
The Citrix Windows PV drivers will initiate a ->closing->closed sequence if the user invokes a 'safe remove'; i.e. a device eject. Paul> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel- > bounces@lists.xensource.com] On Behalf Of Ian Campbell > Sent: 15 July 2011 09:03 > To: James Harper > Cc: xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] removing a block device from windows > > On Fri, 2011-07-15 at 02:24 +0100, James Harper wrote: > > >From dom0 I can do xm block-detach to remove a device from a > DomU, > > >which > > manages the state transition to closing/closed etc then removes > the > > device > > > > Can a DomU initiate the transition to closed too, or is that not > > expected to work? > > I reckon that ought to work, by switching the frontend to Closing, > although I'm not aware of any existing frontends which actually do > that (maybe it happens on kexec? e.g. pvgrub->kernel) > > Ian. > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> > The Citrix Windows PV drivers will initiate a ->closing->closed sequence if > the user invokes a 'safe remove'; i.e. a device eject. >Thanks. That's what I'm doing too but once that is done a xm block-detach and a subsequent block-attach don't seem to work properly, but at least now I can assume that the bug is mine :) James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel