[PATCH 2/3] API: Add VIR_DOMAIN_PAUSED_HYPERVISOR_FAULT enum value
Michal Privoznik
mprivozn at redhat.com
Fri Mar 19 13:01:17 UTC 2021
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 at 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 at redhat.com>
Michal
More information about the libvir-list
mailing list