1. 16 11月, 2018 11 次提交
  2. 15 11月, 2018 17 次提交
  3. 14 11月, 2018 1 次提交
  4. 13 11月, 2018 2 次提交
  5. 12 11月, 2018 2 次提交
  6. 09 11月, 2018 1 次提交
  7. 08 11月, 2018 2 次提交
    • E
      snapshot: Don't hose list on deletion failure · 68b2596f
      Eric Blake 提交于
      If qemuDomainSnapshotDiscard() fails for any reason (rare,
      but possible with an ill-timed ENOMEM or if
      qemuDomainSnapshotForEachQcow2() has problems talking to the
      qemu guest monitor), then an attempt to retry the snapshot
      deletion API will crash because we didn't undo the effects
      of virDomainSnapshotDropParent() temporarily rearranging the
      internal list structures, and the second attempt to drop
      parents will dereference NULL.  Fix it by instead noting that
      there are only two callers to qemuDomainSnapshotDiscard(),
      and only one of the two callers wants the parent to be updated;
      thus we can move the call to virDomainSnapshotDropParent()
      into a code path that only gets executed on success.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      68b2596f
    • J
      qemu: Don't ignore resume events · e4794935
      Jiri Denemark 提交于
      Since commit v4.7.0-302-ge6d77a75 processing RESUME event is mandatory
      for updating domain state. But the event handler explicitly ignored this
      event in some cases. Thus the state would be wrong after a fake reboot
      or when a domain was rebooted after it crashed.
      
      BTW, the code to ignore RESUME event after SHUTDOWN didn't make sense
      even before making RESUME event mandatory. Most likely it was there as a
      result of careless copy&paste from qemuProcessHandleStop.
      
      The corresponding debug message was clarified since the original state
      does not have to be "paused" only and while we have a "resumed" event,
      the state is called "running".
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1612943Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      e4794935
  8. 07 11月, 2018 2 次提交
    • J
      qemu: Narrow the shutdown reconnection failure reason window · 8f0f8425
      John Ferlan 提交于
      The current qemuProcessReconnect logic paints a broad brush
      determining that the shutdown reason must be crashed if it was
      determined that the domain was started with -no-shutdown; however,
      there's many other ways to get to the error label, so let's narrow
      our reasoning window for using VIR_DOMAIN_SHUTOFF_CRASHED to the
      period where we essentially know we've tried to create to the
      monitor and before we were successful in opening the connection.
      
      Failures that occur outside that window would thus be considered
      as VIR_DOMAIN_SHUTOFF_UNKNOWN, at least for now.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      8f0f8425
    • J
      qemu: Restore lost shutdown reason · 296e05b5
      John Ferlan 提交于
      When qemuProcessReconnectHelper was introduced (commit d38897a5)
      reconnection failure used VIR_DOMAIN_SHUTOFF_FAILED; however, that
      was changed in commit bda2f17d to either VIR_DOMAIN_SHUTOFF_CRASHED
      or VIR_DOMAIN_SHUTOFF_UNKNOWN.
      
      When QEMU_CAPS_NO_SHUTDOWN checking was removed in commit fe35b1ad
      the conditional state was just left at VIR_DOMAIN_SHUTOFF_CRASHED.
      
      So introduce qemuDomainIsUsingNoShutdown which will manage the
      condition when the domain was started with -no-shutdown so that
      when/if reconnection failure occurs we can restore the decision
      point used to determine whether CRASHED or UNKNOWN is provided.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      296e05b5
  9. 06 11月, 2018 2 次提交