1. 27 3月, 2019 1 次提交
  2. 06 3月, 2019 1 次提交
    • J
      qemu: Don't set migration caps when changing postcopy bandwidth · a1dec315
      Jiri Denemark 提交于
      The qemuMigrationParamsApply internal API was designed to apply all
      migration parameters and capabilities before we start to migrate a
      domain. While migration parameters are only passed to QEMU when we
      explicitly want to set a specific value, capabilities are always either
      enabled or disabled.
      
      Thus when this API is called outside migration job, e.g., via a call to
      qemuDomainMigrateSetMaxSpeed with VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY
      flag, we would call migrate-set-capabilities and disable all
      capabilities. However, changing capabilities while migration is already
      running does not make sense and our code should never be trying to do
      so. In fact QEMU even reports an error if migrate-set-capabilities is
      called during migration and qemuDomainMigrateSetMaxSpeed would fail
      with:
      
          internal error: unable to execute QEMU command
          migrate-set-capabilities: There's a migration process in progress
      
      With this patch qemuMigrationParamsApply never tries to call
      migrate-set-capabilities outside of migration job. When the capabilities
      bitmap is all zeros (which is its initial value after
      qemuMigrationParamsNew), we just skip the command. But when any
      capability bit is set to 1 by a non-migration job, we report an error to
      highlight a bug in our code.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      a1dec315
  3. 14 2月, 2019 1 次提交
  4. 07 2月, 2019 4 次提交
  5. 04 2月, 2019 1 次提交
  6. 14 12月, 2018 2 次提交
  7. 05 6月, 2018 6 次提交
  8. 30 5月, 2018 1 次提交
  9. 27 4月, 2018 2 次提交
  10. 20 4月, 2018 1 次提交
  11. 17 4月, 2018 20 次提交