1. 15 11月, 2018 17 次提交
  2. 14 11月, 2018 5 次提交
  3. 13 11月, 2018 3 次提交
  4. 12 11月, 2018 3 次提交
  5. 09 11月, 2018 2 次提交
  6. 08 11月, 2018 5 次提交
  7. 07 11月, 2018 5 次提交
    • 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
    • J
      libxl: Properly dispose libxl_domain_config object · 8496c17c
      Jim Fehlig 提交于
      V2 of the libxl soft reset patch, which was pushed as commit da4b0fd9,
      dropped the hunk that disposed of the libxl_domain_config object. Add
      the missing hunk to properly dispose the object.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      8496c17c
    • J
      libxl: add support for soft reset · da4b0fd9
      Jim Fehlig 提交于
      The pvops Linux kernel implements machine_ops.crash_shutdown as
      
      static void xen_hvm_crash_shutdown(struct pt_regs *regs)
      {
              native_machine_crash_shutdown(regs);
              xen_reboot(SHUTDOWN_soft_reset);
      }
      
      but currently the libxl driver does not handle the soft reset
      shutdown event. As a result, the guest domain never proceeds
      past xen_reboot(), making it impossible for HVM domains to save
      a crash dump using kexec.
      
      This patch adds support for handling the soft reset event by
      calling libxl_domain_soft_reset() and re-enabling domain death
      events, which is similar to the xl tool handling of soft reset
      shutdown event.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      da4b0fd9
    • J
      libxl: Remove some goto labels in libxlDomainShutdownThread · 82452a5d
      Jim Fehlig 提交于
      There are too many goto labels in libxlDomainShutdownThread. Convert the
      'destroy' and 'restart' labels to helper functions, leaving only the
      commonly used pattern of 'endjob' and 'cleanup' labels.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      82452a5d