All of lore.kernel.org
 help / color / mirror / Atom feed
* libxl: hotplug scripts and backend_domid != 0
@ 2013-04-04 15:45 Marek Marczykowski
  2013-04-10 11:14 ` Ian Campbell
  0 siblings, 1 reply; 4+ messages in thread
From: Marek Marczykowski @ 2013-04-04 15:45 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 453 bytes --]

Hi,

Currently when using backend outside of dom0 (for at least one device) libxl
force udev call method of hotplug scripts for entire system. Maybe this can be
changed to:
a) if backend_domid==0, proceed according to run_hotplug_scipts
b) if backend_domid!=0, ignore run_hotplug_scipts and always use udev
?

Does it sound sensible? If so, I can provide patches.

-- 
Best Regards / Pozdrawiam,
Marek Marczykowski
Invisible Things Lab


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 553 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

* Re: libxl: hotplug scripts and backend_domid != 0
  2013-04-04 15:45 libxl: hotplug scripts and backend_domid != 0 Marek Marczykowski
@ 2013-04-10 11:14 ` Ian Campbell
  2013-04-10 11:22   ` Roger Pau Monné
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2013-04-10 11:14 UTC (permalink / raw)
  To: Marek Marczykowski
  Cc: George Dunlap, Roger Pau Monne, xen-devel@lists.xen.org

On Thu, 2013-04-04 at 16:45 +0100, Marek Marczykowski wrote:
> Hi,
> 
> Currently when using backend outside of dom0 (for at least one device) libxl
> force udev call method of hotplug scripts for entire system.

Roger, do you remember why? Was it just because this change was
relatively late in the 4.2 cycle and we were being conservative?

>  Maybe this can be
> changed to:
> a) if backend_domid==0, proceed according to run_hotplug_scipts
> b) if backend_domid!=0, ignore run_hotplug_scipts and always use udev
> ?
> 
> Does it sound sensible?

It does, although we are now relatively late in the 4.3 cycle so I'm not
sure it would be appropriate. George?

I think Roger is intending to implement a new scheme for driver domains
etc in 4.4, which may make this particular issue disappear anyway.

>  If so, I can provide patches.

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

* Re: libxl: hotplug scripts and backend_domid != 0
  2013-04-10 11:14 ` Ian Campbell
@ 2013-04-10 11:22   ` Roger Pau Monné
  2013-04-10 11:36     ` Marek Marczykowski
  0 siblings, 1 reply; 4+ messages in thread
From: Roger Pau Monné @ 2013-04-10 11:22 UTC (permalink / raw)
  To: Ian Campbell; +Cc: George Dunlap, Marek Marczykowski, xen-devel@lists.xen.org

On 10/04/13 13:14, Ian Campbell wrote:
> On Thu, 2013-04-04 at 16:45 +0100, Marek Marczykowski wrote:
>> Hi,
>>
>> Currently when using backend outside of dom0 (for at least one device) libxl
>> force udev call method of hotplug scripts for entire system.
> 
> Roger, do you remember why? Was it just because this change was
> relatively late in the 4.2 cycle and we were being conservative?
> 
>>  Maybe this can be
>> changed to:
>> a) if backend_domid==0, proceed according to run_hotplug_scipts
>> b) if backend_domid!=0, ignore run_hotplug_scipts and always use udev
>> ?
>>
>> Does it sound sensible?
> 
> It does, although we are now relatively late in the 4.3 cycle so I'm not
> sure it would be appropriate. George?
> 
> I think Roger is intending to implement a new scheme for driver domains
> etc in 4.4, which may make this particular issue disappear anyway.

Since run_hotplug_scripts is a global variable, not per-device, changing
it when backend_domid != 0 for a certain device might cause trouble to
other devices, or guests launched concurrently. Also udev scripts check
run_hotplug_scripts in xenstore, so changing it while there are guests
being created or destroyed might also cause trouble.

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

* Re: libxl: hotplug scripts and backend_domid != 0
  2013-04-10 11:22   ` Roger Pau Monné
@ 2013-04-10 11:36     ` Marek Marczykowski
  0 siblings, 0 replies; 4+ messages in thread
From: Marek Marczykowski @ 2013-04-10 11:36 UTC (permalink / raw)
  To: Roger Pau Monné; +Cc: George Dunlap, Ian Campbell, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 1544 bytes --]

On 10.04.2013 13:22, Roger Pau Monné wrote:
> On 10/04/13 13:14, Ian Campbell wrote:
>> On Thu, 2013-04-04 at 16:45 +0100, Marek Marczykowski wrote:
>>> Hi,
>>>
>>> Currently when using backend outside of dom0 (for at least one device) libxl
>>> force udev call method of hotplug scripts for entire system.
>>
>> Roger, do you remember why? Was it just because this change was
>> relatively late in the 4.2 cycle and we were being conservative?
>>
>>>  Maybe this can be
>>> changed to:
>>> a) if backend_domid==0, proceed according to run_hotplug_scipts
>>> b) if backend_domid!=0, ignore run_hotplug_scipts and always use udev
>>> ?
>>>
>>> Does it sound sensible?
>>
>> It does, although we are now relatively late in the 4.3 cycle so I'm not
>> sure it would be appropriate. George?
>>
>> I think Roger is intending to implement a new scheme for driver domains
>> etc in 4.4, which may make this particular issue disappear anyway.
> 
> Since run_hotplug_scripts is a global variable, not per-device, changing
> it when backend_domid != 0 for a certain device might cause trouble to
> other devices, or guests launched concurrently. Also udev scripts check
> run_hotplug_scripts in xenstore, so changing it while there are guests
> being created or destroyed might also cause trouble.

So this is the reason why I don't want to change it's value, but ignore for
non-dom0 backends (for which it wouldn't change anything anyway).

-- 
Best Regards / Pozdrawiam,
Marek Marczykowski
Invisible Things Lab


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 553 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

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

end of thread, other threads:[~2013-04-10 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04 15:45 libxl: hotplug scripts and backend_domid != 0 Marek Marczykowski
2013-04-10 11:14 ` Ian Campbell
2013-04-10 11:22   ` Roger Pau Monné
2013-04-10 11:36     ` Marek Marczykowski

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.