All of lore.kernel.org
 help / color / mirror / Atom feed
* removing a block device from windows
@ 2011-07-15  1:24 James Harper
  2011-07-15  8:03 ` Ian Campbell
  2011-07-15  8:08 ` Paul Durrant
  0 siblings, 2 replies; 5+ messages in thread
From: James Harper @ 2011-07-15  1:24 UTC (permalink / raw)
  To: xen-devel

>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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: removing a block device from windows
  2011-07-15  1:24 removing a block device from windows James Harper
@ 2011-07-15  8:03 ` Ian Campbell
  2011-07-15  8:09   ` Paul Durrant
  2011-07-15  8:08 ` Paul Durrant
  1 sibling, 1 reply; 5+ messages in thread
From: Ian Campbell @ 2011-07-15  8:03 UTC (permalink / raw)
  To: James Harper; +Cc: 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: removing a block device from windows
  2011-07-15  1:24 removing a block device from windows James Harper
  2011-07-15  8:03 ` Ian Campbell
@ 2011-07-15  8:08 ` Paul Durrant
  1 sibling, 0 replies; 5+ messages in thread
From: Paul Durrant @ 2011-07-15  8:08 UTC (permalink / raw)
  To: James Harper, 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: removing a block device from windows
  2011-07-15  8:03 ` Ian Campbell
@ 2011-07-15  8:09   ` Paul Durrant
  2011-07-15  8:38     ` James Harper
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Durrant @ 2011-07-15  8:09 UTC (permalink / raw)
  To: Ian Campbell, James Harper; +Cc: xen-devel

[-- Attachment #1: Type: text/plain, Size: 1159 bytes --]

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

[-- 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] 5+ messages in thread

* RE: removing a block device from windows
  2011-07-15  8:09   ` Paul Durrant
@ 2011-07-15  8:38     ` James Harper
  0 siblings, 0 replies; 5+ messages in thread
From: James Harper @ 2011-07-15  8:38 UTC (permalink / raw)
  To: Paul Durrant, Ian Campbell; +Cc: xen-devel

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]

> 
> 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

[-- 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] 5+ messages in thread

end of thread, other threads:[~2011-07-15  8:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-15  1:24 removing a block device from windows James Harper
2011-07-15  8:03 ` Ian Campbell
2011-07-15  8:09   ` Paul Durrant
2011-07-15  8:38     ` James Harper
2011-07-15  8:08 ` Paul Durrant

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.