[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] xl shutdown --wait "racy"



On Wed, Apr 16, 2014 at 3:13 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
> On Wed, 2014-04-16 at 16:08 +0200, Sander Eikelenboom wrote:
>> Hi Ian (C|J) Konrad,
>>
>> I'm currently trying to workaround the pci-(detach|assignable-remove) issues 
>> i
>> reported earlier.
>>
>> The workaround i thought of was:
>> - shutting down the guest
>> - starting it without 1 of the original devices passed through
>> - use xl pci-assignable-remove and bind the device to the dom0 driver.
>>
>> But during this i noticed that a "xl shutdown --wait" does wait .. but 
>> returns:
>> - Before the domain is removed from for instance "xl list", it still listed 
>> there in
>> "--ps--" state.
>> - before pciback has done it's restore config space magic.
>>
>> So it seems the wait loop is exiting somewhat prematurely, is this expected ?
>
> It is waiting for the domain to be shutdown (state 's') not for the
> domain to be destroyed. So it's doing what it said it would (I
> appreciate you might not find this distinction helpful under the
> circumstances...)

For any reasonable person's definition of "shutdown", it does *not*
wait until it's shutdown.  "In the shutdown state" is not something
anyone outside of Xen cares about: what they care about is being able
to, for example, start the domain again (or start a domain that
depends on resources currently held by the shutting down domain).

 -George

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.