All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 00/14] xen: add systemd support
@ 2014-05-20 12:31 Luis R. Rodriguez
  2014-05-20 12:31 ` [PATCH v5 01/14] xenstored: enable usage of config.h on both xenstored and oxenstored Luis R. Rodriguez
                   ` (13 more replies)
  0 siblings, 14 replies; 71+ messages in thread
From: Luis R. Rodriguez @ 2014-05-20 12:31 UTC (permalink / raw)
  To: xen-devel; +Cc: Luis R. Rodriguez

From: "Luis R. Rodriguez" <mcgrof@suse.com>

This is v5 on the xen systemd integration series. It addresses all
concerns raised. I've also taken the time to run time test this
with systems without systemd, and also built binaries with systemd
enabled and tested these on non systemd systemd even with and
without systemd libraries present. The trick was to use the dynamic
link loader. Since the dynamic link loader is used, since ocaml
lacks systemd support, and since it makes sense to share as much
code as possible I've piggy backed systemd support into libxenstore.so
and made oxenstored link to that. This series enables systemd on build time
if you have what it takes to build systemd support, after all binaries with
the dynamic link loader support won't require folks on systems to actually
have systemd libraries present unless they actually *booted with systemd*
as their init. Folks that don't like that approach can toy around and
replace usage of AX_AVAILABLE_SYSTEMD() with AX_ALLOW_SYSTEMD() or
AX_ENABLE_SYSTEMD() and enabling the CFLAG and LDFLAG as I had done
in previous patches, the current approach however is the most flexible,
and less intrusive.

This series also goes with sd_notify() support, thereby
simplfying the systemd init even further. I generated this series
using the latest unstable version of git to ensure we get proper
review through simple renames with git format-patch -M --B.

I've dropped the retries stuff, I actually have a fix for that but
I don't have the time to test, if some folks might be interested
I can provide RFTs but I really want to get this out of the way
first.

Luis R. Rodriguez (14):
  xenstored: enable usage of config.h on both xenstored and oxenstored
  libxenstore.so: add support for systemd
  cxenstored: add support for systemd active sockets
  oxenstored: add support for systemd active sockets
  oxenstored: force FD_CLOEXEC with Unix.set_close_on_exec on LSB init
  tools/xendomains: make xl the default
  tools/xendomains: do space cleanups
  tools/xendomains: move to libexec and use a smaller init helper
  autoconf: xen: force a refresh with autoconf
  autoconf: update m4/pkg.m4
  autoconf: xen: move standard variables to a generic place
  autoconf: xen: enable explicit preference option for xenstored
    preference
  xencommons: move module list into a generic place
  systemd: add xen systemd service and module files

 .gitignore                                         |   7 +
 Config.mk                                          |  13 -
 Makefile                                           |   6 +-
 README                                             |  96 ++++
 autogen.sh                                         |   8 +-
 config/StdGNU.mk                                   |  28 +-
 config/Tools.mk.in                                 |   6 +
 config/Toplevel.mk.in                              |  27 +
 config/defaults.mk                                 |  21 +
 config/modules                                     |  16 +
 config/xen-environment-header.in                   |  16 +
 config/xen-environment-scripts.in                  |  18 +
 configure.ac                                       |  10 +-
 m4/README.source                                   |  35 ++
 m4/expand_config.m4                                | 122 ++++
 m4/pkg.m4                                          |  88 ++-
 m4/systemd.m4                                      | 120 ++++
 stubdom/Makefile                                   |  17 +-
 stubdom/configure.ac                               |   4 +
 tools/configure.ac                                 |  17 +-
 tools/hotplug/Linux/Makefile                       |  45 +-
 .../Linux/init.d/{xencommons => xencommons.in}     |  22 +-
 tools/hotplug/Linux/init.d/xendomains              | 635 ++-------------------
 tools/hotplug/Linux/systemd/Makefile               |  70 +++
 tools/hotplug/Linux/systemd/proc-xen.mount.in      |   9 +
 .../Linux/systemd/var-lib-xenstored.mount.in       |  13 +
 .../systemd/xen-qemu-dom0-disk-backend.service.in  |  22 +
 .../hotplug/Linux/systemd/xen-watchdog.service.in  |  13 +
 tools/hotplug/Linux/systemd/xenconsoled.service.in |  20 +
 tools/hotplug/Linux/systemd/xendomains.service.in  |  16 +
 tools/hotplug/Linux/systemd/xenstored.service.in   |  27 +
 tools/hotplug/Linux/systemd/xenstored.socket.in    |  11 +
 tools/hotplug/Linux/{init.d => }/xendomains        |  70 +--
 tools/hotplug/common/Makefile                      |   6 +-
 tools/libxl/Makefile                               |  11 +-
 tools/ocaml/xenstored/Makefile                     |  13 +-
 tools/ocaml/xenstored/systemd.ml                   |  17 +
 tools/ocaml/xenstored/systemd.mli                  |  24 +
 tools/ocaml/xenstored/systemd_stubs.c              | 132 +++++
 tools/ocaml/xenstored/utils.ml                     |  21 +-
 tools/ocaml/xenstored/xenstored.ml                 |   2 +
 tools/python/Makefile                              |   6 +-
 tools/xenstore/Makefile                            |   8 +-
 tools/xenstore/xenstore.h                          |  11 +
 tools/xenstore/xenstored_core.c                    |  49 +-
 tools/xenstore/xs_systemd.c                        | 321 +++++++++++
 46 files changed, 1549 insertions(+), 720 deletions(-)
 create mode 100644 config/defaults.mk
 create mode 100644 config/modules
 create mode 100644 config/xen-environment-header.in
 create mode 100644 config/xen-environment-scripts.in
 create mode 100644 m4/README.source
 create mode 100644 m4/expand_config.m4
 create mode 100644 m4/systemd.m4
 rename tools/hotplug/Linux/init.d/{xencommons => xencommons.in} (82%)
 rewrite tools/hotplug/Linux/init.d/xendomains (95%)
 create mode 100644 tools/hotplug/Linux/systemd/Makefile
 create mode 100644 tools/hotplug/Linux/systemd/proc-xen.mount.in
 create mode 100644 tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in
 create mode 100644 tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in
 create mode 100644 tools/hotplug/Linux/systemd/xen-watchdog.service.in
 create mode 100644 tools/hotplug/Linux/systemd/xenconsoled.service.in
 create mode 100644 tools/hotplug/Linux/systemd/xendomains.service.in
 create mode 100644 tools/hotplug/Linux/systemd/xenstored.service.in
 create mode 100644 tools/hotplug/Linux/systemd/xenstored.socket.in
 rename tools/hotplug/Linux/{init.d => }/xendomains (94%)
 create mode 100644 tools/ocaml/xenstored/systemd.ml
 create mode 100644 tools/ocaml/xenstored/systemd.mli
 create mode 100644 tools/ocaml/xenstored/systemd_stubs.c
 create mode 100644 tools/xenstore/xs_systemd.c

-- 
2.0.0.rc3.18.g00a5b79

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

end of thread, other threads:[~2014-06-10  1:16 UTC | newest]

Thread overview: 71+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-20 12:31 [PATCH v5 00/14] xen: add systemd support Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 01/14] xenstored: enable usage of config.h on both xenstored and oxenstored Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 02/14] libxenstore.so: add support for systemd Luis R. Rodriguez
2014-05-21 14:35   ` Ian Campbell
2014-05-21 14:56     ` Ian Campbell
2014-05-21 16:32       ` Luis R. Rodriguez
2014-05-21 16:48         ` Ian Campbell
2014-05-21 17:15           ` Luis R. Rodriguez
2014-05-22  9:36             ` Ian Campbell
2014-05-22  9:59               ` Luis R. Rodriguez
2014-05-21 16:24     ` Luis R. Rodriguez
2014-05-21 16:39       ` Ian Campbell
2014-05-21 17:29         ` Luis R. Rodriguez
2014-05-22  9:39           ` Ian Campbell
2014-05-22 10:01             ` Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 03/14] cxenstored: add support for systemd active sockets Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 04/14] oxenstored: " Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 05/14] oxenstored: force FD_CLOEXEC with Unix.set_close_on_exec on LSB init Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 06/14] tools/xendomains: make xl the default Luis R. Rodriguez
2014-05-21 15:05   ` Ian Campbell
2014-05-21 17:29     ` Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 07/14] tools/xendomains: do space cleanups Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 08/14] tools/xendomains: move to libexec and use a smaller init helper Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 09/14] autoconf: xen: force a refresh with autoconf Luis R. Rodriguez
2014-05-21 15:07   ` Ian Campbell
2014-05-21 17:35     ` Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 10/14] autoconf: update m4/pkg.m4 Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 11/14] autoconf: xen: move standard variables to a generic place Luis R. Rodriguez
2014-05-20 13:37   ` Jan Beulich
     [not found]   ` <537B76D1020000780001422C@suse.com>
2014-05-20 17:54     ` Luis R. Rodriguez
2014-05-21  7:32       ` Jan Beulich
2014-05-21  8:03         ` Luis R. Rodriguez
2014-05-21  8:11           ` Jan Beulich
2014-05-21  8:27             ` Luis R. Rodriguez
2014-05-21 10:33             ` Ian Campbell
2014-05-21 13:54               ` Jan Beulich
2014-05-21 15:14               ` Ian Campbell
2014-05-21 15:20                 ` Jan Beulich
2014-05-21 15:26   ` Ian Campbell
2014-05-21 21:54     ` Luis R. Rodriguez
2014-05-22  9:46       ` Ian Campbell
2014-05-20 12:31 ` [PATCH v5 12/14] autoconf: xen: enable explicit preference option for xenstored preference Luis R. Rodriguez
2014-05-21 15:44   ` Ian Campbell
2014-05-21 23:02     ` Luis R. Rodriguez
2014-05-22 10:05       ` Ian Campbell
2014-05-23 23:20         ` Luis R. Rodriguez
2014-05-28  9:30           ` Ian Campbell
2014-05-29 16:09             ` Don Koch
2014-05-29 23:29             ` Luis R. Rodriguez
2014-06-01  6:15               ` [systemd-devel] " Lennart Poettering
2014-06-01  6:15               ` Lennart Poettering
2014-06-05  0:31                 ` Luis R. Rodriguez
2014-06-05  2:52                   ` Cameron Norman
2014-06-10  1:15                     ` Luis R. Rodriguez
2014-06-10  1:15                     ` Luis R. Rodriguez
2014-06-05  2:52                   ` Cameron Norman
2014-06-05 11:22                   ` Lennart Poettering
2014-06-05 11:22                   ` Lennart Poettering
2014-06-05 18:01                     ` Luis R. Rodriguez
2014-06-05 19:24                       ` Lennart Poettering
2014-06-05 19:24                       ` Lennart Poettering
2014-06-05 19:26                         ` Andrew Lutomirski
2014-06-05 19:26                         ` Andrew Lutomirski
2014-06-05 18:01                     ` Luis R. Rodriguez
2014-06-05  0:31                 ` Luis R. Rodriguez
2014-05-29 23:29             ` Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 13/14] xencommons: move module list into a generic place Luis R. Rodriguez
2014-05-20 13:40   ` Jan Beulich
     [not found]   ` <537B776D020000780001425E@suse.com>
2014-05-20 18:03     ` Luis R. Rodriguez
2014-05-20 12:31 ` [PATCH v5 14/14] systemd: add xen systemd service and module files Luis R. Rodriguez
2014-05-20 12:48   ` Luis R. Rodriguez

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.