* Shouldn't XendDomainInfo.py: _releaseDevices call destroyDevice?
@ 2007-05-16 12:04 Petersson, Mats
2007-05-16 12:33 ` Keir Fraser
0 siblings, 1 reply; 6+ messages in thread
From: Petersson, Mats @ 2007-05-16 12:04 UTC (permalink / raw)
To: xen-devel
It seems like something is missing in the _releaseDevices, and I think
the correct way to fix it would be to call destroyDevice - is there any
reason I shouldn't use that function, rather than the current method of
removing (some of) the device info from XenStore in _releaseDevices?
--
Mats
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Shouldn't XendDomainInfo.py: _releaseDevices call destroyDevice?
2007-05-16 12:04 Shouldn't XendDomainInfo.py: _releaseDevices call destroyDevice? Petersson, Mats
@ 2007-05-16 12:33 ` Keir Fraser
2007-05-16 12:37 ` Tom Wilkie
2007-05-16 13:23 ` Petersson, Mats
0 siblings, 2 replies; 6+ messages in thread
From: Keir Fraser @ 2007-05-16 12:33 UTC (permalink / raw)
To: Petersson, Mats, xen-devel
This is how it looks to me too! Unless Ewan or Tom knows better, this is
probably worth trying out. It would be a neater solution for the console
backend cleanup than your hacky patch, if it works.
-- Keir
On 16/5/07 13:04, "Petersson, Mats" <Mats.Petersson@amd.com> wrote:
> It seems like something is missing in the _releaseDevices, and I think
> the correct way to fix it would be to call destroyDevice - is there any
> reason I shouldn't use that function, rather than the current method of
> removing (some of) the device info from XenStore in _releaseDevices?
>
> --
> Mats
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Shouldn't XendDomainInfo.py: _releaseDevices call destroyDevice?
2007-05-16 12:33 ` Keir Fraser
@ 2007-05-16 12:37 ` Tom Wilkie
2007-05-16 13:23 ` Petersson, Mats
1 sibling, 0 replies; 6+ messages in thread
From: Tom Wilkie @ 2007-05-16 12:37 UTC (permalink / raw)
To: Keir Fraser; +Cc: Petersson, Mats, xen-devel, Tom Wilkie
It would make sense, I was going to give it a test but never got
round to it. Feel free to try it out
Tom
On 16 May 2007, at 13:33, Keir Fraser wrote:
> This is how it looks to me too! Unless Ewan or Tom knows better,
> this is
> probably worth trying out. It would be a neater solution for the
> console
> backend cleanup than your hacky patch, if it works.
>
> -- Keir
>
> On 16/5/07 13:04, "Petersson, Mats" <Mats.Petersson@amd.com> wrote:
>
>> It seems like something is missing in the _releaseDevices, and I
>> think
>> the correct way to fix it would be to call destroyDevice - is
>> there any
>> reason I shouldn't use that function, rather than the current
>> method of
>> removing (some of) the device info from XenStore in _releaseDevices?
>>
>> --
>> Mats
>>
>>
>>
>> _______________________________________________
>> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Shouldn't XendDomainInfo.py: _releaseDevices call destroyDevice?
2007-05-16 12:33 ` Keir Fraser
2007-05-16 12:37 ` Tom Wilkie
@ 2007-05-16 13:23 ` Petersson, Mats
2007-05-16 13:42 ` Keir Fraser
1 sibling, 1 reply; 6+ messages in thread
From: Petersson, Mats @ 2007-05-16 13:23 UTC (permalink / raw)
To: Keir Fraser, xen-devel
> -----Original Message-----
> From: Keir Fraser [mailto:keir@xensource.com]
> Sent: 16 May 2007 13:34
> To: Petersson, Mats; xen-devel@lists.xensource.com
> Subject: Re: [Xen-devel] Shouldn't XendDomainInfo.py:
> _releaseDevices call destroyDevice?
>
> This is how it looks to me too! Unless Ewan or Tom knows
> better, this is
> probably worth trying out. It would be a neater solution for
> the console
> backend cleanup than your hacky patch, if it works.
Yes, particularly since my hacky patch doesn't actually work for all the
cases, which is why I started looking at it again [the xenstore still
grows, but not quite as quickly]. :-(
Now, this brings a question: The _releaseDevices attempts to remove all
devices as one transaction, but calling destroyDevices for each device
would of course make it into multiple transactions. Is there any reason
why this would make it a problem?
--
Mats
>
> -- Keir
>
> On 16/5/07 13:04, "Petersson, Mats" <Mats.Petersson@amd.com> wrote:
>
> > It seems like something is missing in the _releaseDevices,
> and I think
> > the correct way to fix it would be to call destroyDevice -
> is there any
> > reason I shouldn't use that function, rather than the
> current method of
> > removing (some of) the device info from XenStore in _releaseDevices?
> >
> > --
> > Mats
> >
> >
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
>
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Shouldn't XendDomainInfo.py: _releaseDevices call destroyDevice?
2007-05-16 13:23 ` Petersson, Mats
@ 2007-05-16 13:42 ` Keir Fraser
2007-05-16 14:57 ` Petersson, Mats
0 siblings, 1 reply; 6+ messages in thread
From: Keir Fraser @ 2007-05-16 13:42 UTC (permalink / raw)
To: Petersson, Mats, xen-devel
On 16/5/07 14:23, "Petersson, Mats" <Mats.Petersson@amd.com> wrote:
> Now, this brings a question: The _releaseDevices attempts to remove all
> devices as one transaction, but calling destroyDevices for each device
> would of course make it into multiple transactions. Is there any reason
> why this would make it a problem?
No. I'm pretty certain not.
K.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Shouldn't XendDomainInfo.py: _releaseDevices call destroyDevice?
2007-05-16 13:42 ` Keir Fraser
@ 2007-05-16 14:57 ` Petersson, Mats
0 siblings, 0 replies; 6+ messages in thread
From: Petersson, Mats @ 2007-05-16 14:57 UTC (permalink / raw)
To: Keir Fraser, xen-devel
> -----Original Message-----
> From: Keir Fraser [mailto:keir@xensource.com]
> Sent: 16 May 2007 14:42
> To: Petersson, Mats; xen-devel@lists.xensource.com
> Subject: Re: [Xen-devel] Shouldn't XendDomainInfo.py:
> _releaseDevices call destroyDevice?
>
>
>
>
> On 16/5/07 14:23, "Petersson, Mats" <Mats.Petersson@amd.com> wrote:
>
> > Now, this brings a question: The _releaseDevices attempts
> to remove all
> > devices as one transaction, but calling destroyDevices for
> each device
> > would of course make it into multiple transactions. Is
> there any reason
> > why this would make it a problem?
>
> No. I'm pretty certain not.
Ok, so I hacked up a changed version, but it seems like the
destroyDevice() function in XendDomainInfo.py isn't working right - it's
trying to read an entry called "dev" in the backend info, and there's no
such thing in my store. Anyone have an idea of what it SHOULD read?
"frontend-id" seems a likely candidate, but I'm not sure if that's the
right thing or not.
--
Mats
>
> K.
>
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-16 14:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-16 12:04 Shouldn't XendDomainInfo.py: _releaseDevices call destroyDevice? Petersson, Mats
2007-05-16 12:33 ` Keir Fraser
2007-05-16 12:37 ` Tom Wilkie
2007-05-16 13:23 ` Petersson, Mats
2007-05-16 13:42 ` Keir Fraser
2007-05-16 14:57 ` Petersson, Mats
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.