xend/libxl support sending sysrq key to guest kernel but not support
sending any key sequence as virDomainSendKey is expected to do. To
add equivalant sysrq functionality in libvirt for xen/libxl, add a new
virDomainSendSysrq API and add related codes to virsh, remote driver,
xen/libxl driver.
Changes:
* add new API virDomainSendSysrq instead of hacking virDomainSendKey.
* add related changes according to new API, including libvirt API,
remote protocol, virsh and libxl/xen driver.
v1 is here:
https://www.redhat.com/archives/libvir-list/2014-December/msg00480.html
Chunyan Liu (5):
Add public API virDomainSendSysrq
implement remote protocol for domainSendSysrq
virsh: add 'sysrq' command
libxl: implement .domainSendSysrq method
xen: add .domainSendSysrq method
include/libvirt/libvirt-domain.h | 3 +++
src/driver-hypervisor.h | 4 +++
src/libvirt-domain.c | 38 ++++++++++++++++++++++++++++
src/libvirt_public.syms | 1 +
src/libxl/libxl_driver.c | 23 +++++++++++++++++
src/remote/remote_driver.c | 2 +-
src/remote/remote_protocol.x | 13 +++++++++-
src/xen/xen_driver.c | 19 ++++++++++++++
src/xen/xend_internal.c | 20 +++++++++++++++
src/xen/xend_internal.h | 2 ++
tools/virsh-domain.c | 54 ++++++++++++++++++++++++++++++++++++++++
11 files changed, 177 insertions(+), 2 deletions(-)
--
1.8.4.5