libxl: hotplug scripts and backend_domid != 0
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.
Signature · 3 lines
Best Regards / Pozdrawiam, Marek Marczykowski Invisible Things Lab
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 4 lines · Marek Marczykowski
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?
Quoted 7 lines
Maybe this can be
changed to:
a) if backend_domid==0, proceed according torun_hotplug_scipts
b) if backend_domid!=0, ignorerun_hotplug_sciptsand 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.
Quoted 1 line
If so, I can provide patches.
Quoted 15 lines · Ian Campbell
Quoted 4 lines · Marek Marczykowski
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?
Quoted 6 lines
Maybe this can be
changed to:
a) if backend_domid==0, proceed according torun_hotplug_scipts
b) if backend_domid!=0, ignorerun_hotplug_sciptsand always use udev ?
Quoted 7 lines
Quoted 1 line
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.
Quoted 21 lines · Roger Pau Monné
Quoted 20 lines · Ian Campbell
Quoted 4 lines · Marek Marczykowski
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?
Quoted 7 lines
Maybe this can be
changed to:
a) if backend_domid==0, proceed according torun_hotplug_scipts
b) if backend_domid!=0, ignorerun_hotplug_sciptsand 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?
Quoted 8 lines
Quoted 2 lines
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_scriptsis a global variable, not per-device, changing it whenbackend_domid!= 0 for a certain device might cause trouble to other devices, or guests launched concurrently. Also udev scripts checkrun_hotplug_scriptsin 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).
Signature · 3 lines
Best Regards / Pozdrawiam, Marek Marczykowski Invisible Things Lab
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel