All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00 of 14 v4] libxl: add support for hotplug script calling from libxl
@ 2011-12-13  9:26 Roger Pau Monne
  2011-12-13  9:26 ` [PATCH 01 of 14 v4] xenbackendd: pass type of block device to hotplug script Roger Pau Monne
                   ` (13 more replies)
  0 siblings, 14 replies; 44+ messages in thread
From: Roger Pau Monne @ 2011-12-13  9:26 UTC (permalink / raw)
  To: xen-devel

This patch series adds support for hotplug script calling directly
from libxl, instead of relying on xenbackendd. Also some patches
contain general bug fixes.

Currently Linux hotplug script call functions are empty, so Linux
continues to use udev rules to call hotplug scripts.

Patches 1, 7, 8, 9, 10 are NetBSD specific, and basicaly pave the way
for the application of the bigger changes present in this series.

Patch 11 is a trivial update for an error message.

Patch 2 adds support for mounting raw image files using the vnd
device. Since NetBSD doesn't have qdisk or blktap support, the only
way to use raw images with guests is to mount the image and pass the
block device as a "PHY" backend. To check wheter an OS supports raw
images as "PHY" backends two new files are added to the project, to
avoid using #ifdefs, that contain a helper function. The file
to be included is decided during the compilation process.

Patch 3 adds a generic function to fork the current process and
execute a given file, which will be later used to execute hotplug
scripts synchronously.

Patches 4 and 5 add a new function to wait for a device to reach a
certain state, and replace wait_for_dev_destroy with this more generic
implementation. This function is also used to wait for device
initialization before calling hotplug scripts. The added function will
benefit from a rework after event support is added to libxl.

Patch 6 adds the calling of hotplug scripts when devices are
initializated and removed. Two new files are also added to support
hotplug scripts, since Linux and NetBSD hotplug scripts have different
call parameters. The path of the script to execute is retrieved
from xenstore. The file to include is also decided at compile
time.

Patches 12, 13, 14 sets frontend status to 6 when a domain is
destroyed, so devices are disconnected and then execute hotplug
scripts. Also the syntax of the libxl_domain_destroy and 
libxl__devices_destroy has been changed to always force the destruction.

Changes since v3:

 * Merged the destroy fixes with the hotplug series.

Please review, Roger.

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

end of thread, other threads:[~2011-12-19  9:01 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13  9:26 [PATCH 00 of 14 v4] libxl: add support for hotplug script calling from libxl Roger Pau Monne
2011-12-13  9:26 ` [PATCH 01 of 14 v4] xenbackendd: pass type of block device to hotplug script Roger Pau Monne
2011-12-13 15:01   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 02 of 14 v4] libxl: add support for image files for NetBSD Roger Pau Monne
2011-12-13 15:22   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 03 of 14 v4] libxl: add libxl__forkexec function to libxl_exec Roger Pau Monne
2011-12-13 15:14   ` Ian Jackson
2011-12-13 15:45     ` Ian Campbell
2011-12-13 15:48       ` Ian Jackson
2011-12-13  9:26 ` [PATCH 04 of 14 v4] libxl: introduce libxl__wait_for_device_state Roger Pau Monne
2011-12-13 14:59   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 05 of 14 v4] libxl: wait for devices to initialize upon addition to the domain Roger Pau Monne
2011-12-13  9:26 ` [PATCH 06 of 14 v4] libxl: execute hotplug scripts directly from libxl Roger Pau Monne
2011-12-13 15:18   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 07 of 14 v4] hotplug NetBSD: pass an action instead of a state to hotplug scripts Roger Pau Monne
2011-12-13 15:21   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 08 of 14 v4] xenbackendd: pass action to hotplug script Roger Pau Monne
2011-12-13 15:24   ` [PATCH 07 of 14 v4] hotplug NetBSD: pass an action instead of a state to hotplug scripts [and 1 more messages] Ian Jackson
2011-12-13  9:26 ` [PATCH 09 of 14 v4] hotplug: remove debug messages from NetBSD hotplug scripts Roger Pau Monne
2011-12-13 15:00   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 10 of 14 v4] rc.d NetBSD: don't start xenbackendd by default, only when xend needs it Roger Pau Monne
2011-12-13 15:19   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 11 of 14 v4] libxl: fix incorrect log message in libxl_domain_destroy Roger Pau Monne
2011-12-13 15:21   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 12 of 14 v4] libxl: set frontend status to 6 on domain destroy Roger Pau Monne
2011-12-13 15:02   ` Ian Jackson
2011-12-14  9:13     ` Roger Pau Monné
2011-12-14 10:54       ` Ian Campbell
2011-12-14 11:12         ` Roger Pau Monné
2011-12-14 11:58           ` Ian Jackson
2011-12-14 12:12             ` Roger Pau Monné
2011-12-14 12:22               ` Ian Campbell
2011-12-15 17:44                 ` Ian Jackson
2011-12-16 11:12                   ` Ian Campbell
2011-12-19  9:01                     ` Roger Pau Monné
2011-12-14 11:58           ` Ian Campbell
2011-12-14 12:18             ` Roger Pau Monné
2011-12-14 12:25               ` Ian Campbell
2011-12-14 14:04                 ` Roger Pau Monné
2011-12-14 11:54       ` Ian Jackson
2011-12-13  9:26 ` [PATCH 13 of 14 v4] libxl: remove force parameter from libxl_domain_destroy Roger Pau Monne
2011-12-13 15:06   ` Ian Jackson
2011-12-13  9:26 ` [PATCH 14 of 14 v4] libxl: remove force parameter from libxl__devices_destroy Roger Pau Monne
2011-12-13 15:22   ` Ian Jackson

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.