libvirt/src/util
Daniel P. Berrange 6510c97bf5 Add some missing hook functions
A core use case of the hook scripts is to be able to do things
to a guest's network configuration. It is possible to hook into
the 'start' operation for a QEMU guest which runs just before
the guest is started. The TAP devices will exist at this point,
but the QEMU process will not. It can be desirable to have a
'started' hook too, which runs once QEMU has started.

If libvirtd is restarted it will re-populate firewall rules,
but there is no QEMU hook to trigger for existing domains.
This is solved with a 'reconnect' hook.

Finally, if attaching to an external QEMU process there needs
to be an 'attach' hook script.

This all also applies to the LXC driver

* docs/hooks.html.in: Document new operations
* src/util/hooks.c, src/util/hooks.c: Add 'started', 'reconnect'
  and 'attach' operations for QEMU. Add 'prepare', 'started',
  'release' and 'reconnect' operations for LXC
* src/lxc/lxc_driver.c: Add hooks for 'prepare', 'started',
  'release' and 'reconnect' operations
* src/qemu/qemu_process.c: Add hooks for 'started', 'reconnect'
  and 'reconnect' operations
2012-06-13 18:23:00 +01:00
..
bitmap.c
bitmap.h
buf.c buf: support peeking at string contents 2012-06-11 09:21:27 -06:00
buf.h buf: support peeking at string contents 2012-06-11 09:21:27 -06:00
cgroup.c Adds support to param 'vcpu_time' in qemu_driver. 2012-05-18 08:53:49 -06:00
cgroup.h build: fix recent syntax-check breakage 2012-05-16 09:52:44 -06:00
command.c command: avoid potential deadlock on handshake 2012-06-07 09:25:38 -06:00
command.h
conf.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
conf.h
dnsmasq.c
dnsmasq.h
ebtables.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
ebtables.h
event_poll.c util: fix a typo 2012-02-29 17:42:18 +08:00
event_poll.h
event.c
event.h
hooks.c Add some missing hook functions 2012-06-13 18:23:00 +01:00
hooks.h Add some missing hook functions 2012-06-13 18:23:00 +01:00
hostusb.c usb: create functions to search usb device accurately 2012-05-07 23:36:22 +08:00
hostusb.h usb: create functions to search usb device accurately 2012-05-07 23:36:22 +08:00
iohelper.c
iptables.c
iptables.h
json.c util: add functions for interating over json object 2012-05-03 09:07:25 -06:00
json.h util: add functions for interating over json object 2012-05-03 09:07:25 -06:00
keymaps.csv
logging.c util: Fix deadlock in virLogReset 2012-06-08 10:09:54 +02:00
logging.h Add a virLogMessage alternative taking va_list args 2012-05-16 17:13:13 +01:00
memory.c
memory.h Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
pci.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
pci.h util: two new pci util functions 2012-03-06 06:03:46 -05:00
processinfo.c qemu: fix memory leak in virDomainGetVcpus 2012-04-02 01:56:02 -04:00
processinfo.h
sexpr.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
sexpr.h
stats_linux.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
stats_linux.h
storage_file.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
storage_file.h
sysinfo.c Implement sysinfo on PowerPC. 2012-03-23 21:56:20 +08:00
sysinfo.h
threadpool.c
threadpool.h
threads-pthread.c
threads-pthread.h
threads-win32.c win32: Properly handle TlsGetValue returning NULL 2012-04-21 19:03:08 +02:00
threads-win32.h
threads.c
threads.h
util.c Add impl of APIs to get user directories on Win32 2012-05-28 10:55:09 +01:00
util.h Add impl of APIs to get user directories on Win32 2012-05-28 10:55:09 +01:00
uuid.c uuid: fix possible non-terminated string 2012-05-04 13:22:22 -04:00
uuid.h
viratomic.h Improve on virAtomic implementation 2012-04-24 11:13:53 -04:00
viraudit.c Consistent style for usage of sizeof operator 2012-03-30 11:47:24 +01:00
viraudit.h
virauth.c Remove uid param from directory lookup APIs 2012-05-28 10:55:06 +01:00
virauth.h Lookup auth credentials in config file before prompting 2012-03-23 13:24:07 +00:00
virauthconfig.c Add helper API for finding auth file path 2012-03-23 13:24:07 +00:00
virauthconfig.h Add helper API for finding auth file path 2012-03-23 13:24:07 +00:00
virdbus.c The policy kit and HAL node device drivers both require a 2012-04-19 17:03:10 +01:00
virdbus.h The policy kit and HAL node device drivers both require a 2012-04-19 17:03:10 +01:00
virfile.c util: Fix deadlock in virLogReset 2012-06-08 10:09:54 +02:00
virfile.h util: Fix deadlock in virLogReset 2012-06-08 10:09:54 +02:00
virhash.c Implement virHashRemoveAll function 2012-04-19 10:21:43 -04:00
virhash.h Implement virHashRemoveAll function 2012-04-19 10:21:43 -04:00
virhashcode.c
virhashcode.h
virkeycode-mapgen.py
virkeycode.c
virkeycode.h
virkeyfile.c Add a virKeyfilePtr object for parsing '.ini' files 2012-03-23 13:24:06 +00:00
virkeyfile.h Add a virKeyfilePtr object for parsing '.ini' files 2012-03-23 13:24:06 +00:00
virmacaddr.c build: avoid strtol and strtod 2012-04-19 17:42:53 -06:00
virmacaddr.h Introduce virMacAddr typedef 2012-05-29 06:25:59 -04:00
virnetdev.c util: set src_pid for virNetlinkCommand when appropriate 2012-05-07 14:26:10 -04:00
virnetdev.h util: set src_pid for virNetlinkCommand when appropriate 2012-05-07 14:26:10 -04:00
virnetdevbandwidth.c
virnetdevbandwidth.h
virnetdevbridge.c
virnetdevbridge.h
virnetdevmacvlan.c util: allow specifying both src and dst pid in virNetlinkCommand 2012-05-07 14:25:48 -04:00
virnetdevmacvlan.h util: fix crash when starting macvtap interfaces 2012-04-25 20:55:26 -04:00
virnetdevopenvswitch.c util: log error on OOM in virNetDevOpenvswitchAddPort 2012-03-08 14:44:24 -05:00
virnetdevopenvswitch.h Attach vm-id to Open vSwitch interfaces. 2012-03-08 14:44:15 -05:00
virnetdevtap.c util: Avoid libvirtd crash in virNetDevTapCreate 2012-04-30 11:49:01 -06:00
virnetdevtap.h Attach vm-id to Open vSwitch interfaces. 2012-03-08 14:44:15 -05:00
virnetdevveth.c
virnetdevveth.h
virnetdevvportprofile.c util: set src_pid for virNetlinkCommand when appropriate 2012-05-07 14:26:10 -04:00
virnetdevvportprofile.h util: Changes to support portprofiles for hostdevs 2012-03-06 06:03:57 -05:00
virnetlink.c Add stub impl of virNetlinkEventServiceLocalPid for Win32 2012-05-24 13:18:01 +01:00
virnetlink.h build: fix virnetlink on glibc 2.11 2012-05-18 09:42:25 -06:00
virnodesuspend.c
virnodesuspend.h
virpidfile.c build: update pid_t type static check 2012-05-02 12:50:00 -06:00
virpidfile.h
virrandom.c util: remove unneeded #include in virrandom.c 2012-03-01 12:44:12 -05:00
virrandom.h
virsocketaddr.c Add new functions to virSocketAddr 2012-04-25 09:53:29 -04:00
virsocketaddr.h Add new functions to virSocketAddr 2012-04-25 09:53:29 -04:00
virterror_internal.h Santize the reporting of VIR_ERR_INVALID_ERROR 2012-05-28 16:47:25 +01:00
virterror.c Add sentinel for virErrorDomain enum 2012-05-24 16:20:55 +01:00
virtime.c
virtime.h
virtypedparam.c
virtypedparam.h cpustats: report user and sys times 2012-03-12 08:46:56 -06:00
viruri.c virURIParse: don't forget to copy the user part 2012-04-06 11:26:52 +08:00
viruri.h Store parsed query parameters directly in the virURIPtr struct 2012-03-23 13:23:12 +00:00
xml.c conf: tighten up XML integer parsing 2012-04-19 17:42:53 -06:00
xml.h