You need to sign in or sign up before continuing.
  1. 07 10月, 2015 3 次提交
    • P
      qemu: migration: Use migration flags in qemuMigrationIsAllowed · b6c44af0
      Peter Krempa 提交于
      Use the migration @flags for checking various migration aspects rather
      than picking them out as booleans. Document the new semantics in the
      function header.
      b6c44af0
    • P
      qemu: migration: Drop @def from qemuMigrationIsAllowed · f558c66f
      Peter Krempa 提交于
      Now that qemuMigrationIsAllowed is always called with @vm, we can drop
      the @def argument and simplify the control flow.
      
      Additionally the comment is invalid so drop it.
      f558c66f
    • P
      qemu: migration: Split source and destination migration checks · b866991f
      Peter Krempa 提交于
      Extract the hostdev check from qemuMigrationIsAllowed into a separate
      function since that is the only part that needs to be done in the v2
      migration protocol prepare phase on the destination. All other checks
      were added when the v3 protocol existed so they don't need to be
      extracted.
      
      This change will allow to drop the @def argument for
      qemuMigrationIsAllowed and further simplify the function.
      b866991f
  2. 06 10月, 2015 5 次提交
  3. 24 9月, 2015 1 次提交
  4. 22 9月, 2015 2 次提交
  5. 18 9月, 2015 8 次提交
  6. 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
  7. 05 9月, 2015 1 次提交
  8. 05 8月, 2015 1 次提交
  9. 31 7月, 2015 1 次提交
  10. 30 7月, 2015 1 次提交
  11. 15 7月, 2015 1 次提交
  12. 10 7月, 2015 5 次提交
    • 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
      qemu: Wait for migration events on domain condition · 3409f5bc
      Jiri Denemark 提交于
      Since we already support the MIGRATION event, we just need to make sure
      the domain condition is signalled whenever a p2p connection drops or the
      domain is paused due to IO error and we can avoid waking up every 50 ms
      to check whether something happened.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      3409f5bc
    • J
      qemu: Update migration state according to MIGRATION event · 6d2edb6a
      Jiri Denemark 提交于
      We don't need to call query-migrate every 50ms when we get the current
      migration state via MIGRATION event.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      6d2edb6a
  13. 25 6月, 2015 1 次提交
  14. 19 6月, 2015 9 次提交