Re: [PATCH 2/3] API: Add VIR_DOMAIN_PAUSED_HYPERVISOR_FAULT enum value

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

 



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@xxxxxxxxxx>
---
  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@xxxxxxxxxx>

Michal




[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]

  Powered by Linux