[PATCH v5 0/4] Support of auto-dump on watchdog event in libvirtd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series adds a new watchdog action `dump' which lets libvirtd
can do auto-dump when receiving a watchdog event from qemu guest.

In order to make the function work, there must be a watchdog device
added to guest, and guest must have a watchdog daemon running, for
example, /etc/init.d/watchdog start or auto-started on boot.

Changes:

v5:

- qemu_driver is passed into threadpool as opaque parameter rather than
  visit the global qemu_driver in worker function
- same situation as above of server in libvirtd.c
- also list auto_dump_path in src/qemu/libvirtd_qemu.aug and
  src/qemu/test_libvirtd_qemu.aug
- check return value of qemuDomainObjEndJob for safety

v4:

- updated threadpool to follow libvirt naming style, use appropriate
  internals APIs, and hide the struct definitions from the header
  (by Daniel)
- fix an error that qemuDomainObjBeginJobWithDriver() get lost in
  qemuDomainCoreDump()
- use thread pool in libvirtd (qemud worker)

v3:

- let default auto-dump dir be /var/lib/libvirt/qemu/dump


Hu Tao (4):
  threadpool impl
  Add a new function doCoreDump
  Add a watchdog action `dump'
  Using threadpool API to manage qemud worker

 cfg.mk                          |    1 +
 daemon/libvirtd.c               |  172 +++++------------------------
 daemon/libvirtd.h               |    2 +
 src/Makefile.am                 |    1 +
 src/conf/domain_conf.c          |    1 +
 src/conf/domain_conf.h          |    1 +
 src/libvirt_private.syms        |    6 +
 src/qemu/libvirtd_qemu.aug      |    1 +
 src/qemu/qemu.conf              |    5 +
 src/qemu/qemu_conf.c            |   16 +++-
 src/qemu/qemu_conf.h            |    5 +
 src/qemu/qemu_driver.c          |  228 ++++++++++++++++++++++++++++----------
 src/qemu/test_libvirtd_qemu.aug |    2 +
 src/util/threadpool.c           |  231 +++++++++++++++++++++++++++++++++++++++
 src/util/threadpool.h           |   48 ++++++++
 15 files changed, 518 insertions(+), 202 deletions(-)
 create mode 100644 src/util/threadpool.c
 create mode 100644 src/util/threadpool.h

-- 
1.7.3


-- 
Thanks,
Hu Tao

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]