On 3/18/21 6:40 PM, Peter Krempa wrote:
In certain cases hypervisors on encountering an internal fault pause
the
domain to allow gathering useful debugging information. Libvirt for now
would report 'VIR_DOMAIN_PAUSED_UNKNOWN' which isn't entirely helpful.
Add a new paused reason and the corresponding value for the suspended
event, so that hypervisor drivers can report this state properly.
In qemu this will be mapped to the 'internal-error' paused reason.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
examples/c/misc/event-test.c | 3 +++
include/libvirt/libvirt-domain.h | 2 ++
src/conf/domain_conf.c | 1 +
src/qemu/qemu_domain.c | 3 +++
src/qemu/qemu_monitor.c | 4 +++-
tools/virsh-domain-monitor.c | 1 +
tools/virsh-domain.c | 3 ++-
7 files changed, 15 insertions(+), 2 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn(a)redhat.com>
Michal