1. 17 7月, 2015 4 次提交
  2. 16 7月, 2015 1 次提交
  3. 15 7月, 2015 11 次提交
  4. 14 7月, 2015 16 次提交
  5. 13 7月, 2015 1 次提交
    • M
      qemuProcessHandleMigrationStatus: Update migration status more frequently · 45cc2fca
      Michal Privoznik 提交于
      After Jirka's migration patches libvirt is listening on migration
      events from qemu instead of actively polling on the monitor. There is,
      however, a little regression (introduced in 6d2edb6a). The
      problem is, the current status of migration job is updated in
      qemuProcessHandleMigrationStatus if and only if migration job was
      started. But eventually every asynchronous job may result in
      migration. Therefore, since this job is not strictly a
      migration job, internal state was not updated and later checks failed:
      
        virsh # save fedora22 /tmp/fedora22_ble.save
        error: Failed to save domain fedora22 to /tmp/fedora22_ble.save
        error: operation failed: domain save job: is not active
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      45cc2fca
  6. 11 7月, 2015 1 次提交
    • J
      libxl: set dom0 state to running · 4ffb21c8
      Jim Fehlig 提交于
      Commit 45697fe5 added dom0 to driver->domains, but missed
      setting its state to 'running'
      
      $ virsh list
       Id    Name                           State
      ----------------------------------------------------
       0     Domain-0                       shut off
      4ffb21c8
  7. 10 7月, 2015 6 次提交
    • D
      vz: fix cleanup of nets of bridged type · f6d908a2
      Dmitry Guryanov 提交于
      We create a virtual network of special type, which
      has the same name as bridge name to create bridged
      network adapter in vz. So when we delete such an
      adapter we have to remove corresponding virtual
      network.
      
      So let's rename prlsdkDelNet to prlsdkCleanupBridgedNet
      and don't check for return value.
      Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
      f6d908a2
    • J
      qemu: Use error from Finish instead of "unexpectedly failed" · 2e7cea24
      Jiri Denemark 提交于
      When QEMU exits on destination during migration, the source reports
      either success (if the failure happened at the very end) or unhelpful
      "unexpectedly failed" error message. However, the Finish API called on
      the destination may report a real error so let's use it instead of the
      generic one.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      2e7cea24
    • J
      qemu: Don't report false error from MigrateFinish · 44c42b56
      Jiri Denemark 提交于
      virDomainMigrateFinish* APIs were unfortunately designed to return the
      pointer to the domain on destination and NULL on error. This looks OK in
      normal cases but the same API is also called when we know migration
      failed and thus we expect Finish to return NULL even if it actually did
      all it was supposed to do without any error. The call is defined to
      return nonnull domain pointer over RPC, which means returning NULL will
      always result in an error being send. If this was not in fact an error,
      the API itself wouldn't set anything to the thread local virError, which
      makes the RPC layer come up with it's own "Library function returned
      error but did not set virError" error.
      
      This is quite confusing and also hard to detect by the caller. This
      patch adds a special error code which can be used to check that Finish
      successfully aborted migration.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      44c42b56
    • J
      qemu: Remember incoming migration errors · e68f395f
      Jiri Denemark 提交于
      If QEMU fails during incoming migration, the domain disappears including
      a possibly useful error message read from QEMU log file. Let's remember
      the error in virQEMUDriver so that Finish can report more than just "no
      such domain".
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      e68f395f
    • J
      Introduce virErrorCopyNew · 9d0a2af6
      Jiri Denemark 提交于
      A helper function for copying error objects.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      9d0a2af6
    • J
      Introduce virHashAtomic · a7c22a1f
      Jiri Denemark 提交于
      This is a self-locking wrapper around virHashTable. Only a limited set
      of APIs are implemented now (the ones which are used in the following
      patch) as more can be added on demand.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      a7c22a1f