|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 4/5] libxl: call hotplug scripts from libxl for vif
On 18 Apr 2012, at 10:54, Ian Campbell wrote: On Tue, 2012-04-17 at 16:51 +0100, Roger Pau Monne wrote:As the previous change already introduces most of needed machinery to call hotplug scripts from libxl, this only adds the necessary bits to call thisscripts for vif interfaces also. libxl_device_nic_add has been changed to make use of the new eventfunctionality, and the necessary vif hotplug code has been added. No changes where needed in the teardown part, since it uses exactly the same codeintroduced for vbd.An exception has been introduced for tap devices, since hotplug scripts should be called after the device model has been created, so the hotplug call for those is done in do_domain_create after confirmation of the device model startup. On the other hand, tap devices don't use teardown scripts,so add another exception for that. libxl__device_from_nic was moved to libxl_device.c, so it can be usedin libxl_create.c, and libxl__device_from_disk was also moved to mantainthe simmetry."maintain" and "symmetry" These are pure code motion or did the code actually change too?libxl__initiate_device_remove has been changed a little, to nuke the frontend xenstore path before trying to perform device teardown, this allows for unitialized devices to be closed gracefully, specially vif interfaces added touninitialized (or -ised)HVM machines and not used.PV nic devices are set to LIBXL_NIC_TYPE_VIF, since the default value isLIBXL_NIC_TYPE_IOEMU regardless of the guest type.A new gobal option, called disable_vif_scripts has been added to allow the user int libxl__device_nic_setdefault(libxl__gc *gc, libxl_device_nic *nic) is the prototype, and libxl_device_nic doesn't have a domid, so I'm not sure where should I get it from.
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |