1. 26 11月, 2015 1 次提交
    • D
      qemu: unify code for reporting errors from QEMU log files · 69b09921
      Daniel P. Berrange 提交于
      There are two pretty similar functions qemuProcessReadLog and
      qemuProcessReadChildErrors. Both read from the QEMU log file
      and try to strip out libvirt messages. The latter then reports
      an error, while the former lets the callers report an error.
      
      Re-write qemuProcessReadLog so that it uses a single read
      into a dynamically allocated buffer. Then introduce a new
      qemuProcessReportLogError that calls qemuProcessReadLog
      and reports an error.
      
      Convert all callers to use qemuProcessReportLogError.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      69b09921
  2. 25 11月, 2015 4 次提交
  3. 19 11月, 2015 3 次提交
  4. 10 11月, 2015 1 次提交
  5. 05 11月, 2015 2 次提交
  6. 27 10月, 2015 1 次提交
  7. 16 10月, 2015 1 次提交
    • S
      Close the source fd if the destination qemu exits during tunnelled migration · b39a1fe1
      Shivaprasad G Bhat 提交于
      Tunnelled migration can hang if the destination qemu exits despite all the
      ABI checks. This happens whenever the destination qemu exits before the
      complete transfer is noticed by source qemu. The savevm state checks at
      runtime can fail at destination and cause qemu to error out.
      The source qemu cant notice it as the EPIPE is not propogated to it.
      The qemuMigrationIOFunc() notices the stream being broken from virStreamSend()
      and it cleans up the stream alone. The qemuMigrationWaitForCompletion() would
      never get to 100% transfer completion.
      The qemuMigrationWaitForCompletion() never breaks out as well since
      the ssh connection to destination is healthy, and the source qemu also thinks
      the migration is ongoing as the Fd to which it transfers, is never
      closed or broken. So, the migration will hang forever. Even Ctrl-C on the
      virsh migrate wouldn't be honoured. Close the source side FD when there is
      an error in the stream. That way, the source qemu updates itself and
      qemuMigrationWaitForCompletion() notices the failure.
      
      Close the FD for all kinds of errors to be sure. The error message is not
      copied for EPIPE so that the destination error is copied instead later.
      
      Note:
      Reproducible with repeated migrations between Power hosts running in different
      subcores-per-core modes.
      Signed-off-by: NShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
      b39a1fe1
  8. 07 10月, 2015 4 次提交
  9. 06 10月, 2015 5 次提交
  10. 24 9月, 2015 1 次提交
  11. 22 9月, 2015 2 次提交
  12. 18 9月, 2015 8 次提交
  13. 09 9月, 2015 1 次提交
    • P
      qemu: migration: Relax enforcement of memory hotplug support · a98e5a78
      Peter Krempa 提交于
      If the current live definition does not have memory hotplug enabled, but
      the persistent one does libvirt would reject migration if the
      destination does not support memory hotplug even if the user didn't want
      to persist the VM at the destination and thus the XML containing the
      memory hotplug definition would not be used. To fix this corner case the
      code will check for memory hotplug in the newDef only if
      VIR_MIGRATE_PERSIST_DEST was used.
      a98e5a78
  14. 05 9月, 2015 1 次提交
  15. 05 8月, 2015 1 次提交
  16. 31 7月, 2015 1 次提交
  17. 30 7月, 2015 1 次提交
  18. 15 7月, 2015 1 次提交
  19. 10 7月, 2015 1 次提交