]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt: support memory failure event
authorzhenwei pi <pizhenwei@bytedance.com>
Wed, 14 Oct 2020 10:37:50 +0000 (18:37 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Oct 2020 07:41:52 +0000 (09:41 +0200)
commitb866adf8d9233b951e73c4a2ad204c2fae3043e4
tree124c0e54d262424b82cad8f59bbc0c0250e7a647
parentc383dc948e1b0ed6a02c6b9dbdb674eba67f43d3
libvirt: support memory failure event

Introduce memory failure event. Libvirt should monitor domain's
event, then posts it to uplayer. According to the hardware memory
corrupted message, a cloud scheduler could migrate domain to another
health physical server.

Several changes in this patch:
public API:
    include/*
    src/conf/*
    src/remote/*
    src/remote_protocol-structs

client:
    examples/c/misc/event-test.c
    tools/virsh-domain.c

With this patch, each driver could implement its own method to run
this new event.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
examples/c/misc/event-test.c
include/libvirt/libvirt-domain.h
src/conf/domain_event.c
src/conf/domain_event.h
src/libvirt_private.syms
src/remote/remote_daemon_dispatch.c
src/remote/remote_driver.c
src/remote/remote_protocol.x
src/remote_protocol-structs
tools/virsh-domain.c