[libvirt] [PATCH 0/3] Only talk to qemu guest agent when the domain is running

Ján Tomko jtomko at redhat.com
Fri Feb 27 15:30:43 UTC 2015


Previously, only virDomainObjIsActive() was used to check domain liveness.
This includes states like 'VIR_DOMAIN_PMSUSPENDED', where QEMU is running,
but the guest is not.

Explicitly check the state against VIR_DOMAIN_RUNNING and refuse to
communicate with the agent if it does not match.

https://bugzilla.redhat.com/show_bug.cgi?id=872424

Ján Tomko (3):
  Check for qemu guest agent availability after getting the job
  Pass virDomainObjPtr to qemuDomainAgentAvailable
  Check if domain is running in qemuDomainAgentIsAvailable

 src/qemu/qemu_domain.c | 11 ++++++++++-
 src/qemu/qemu_domain.h |  2 +-
 src/qemu/qemu_driver.c | 49 +++++++++++++++++++++++++------------------------
 3 files changed, 36 insertions(+), 26 deletions(-)

-- 
2.0.5




More information about the libvir-list mailing list