1. 18 7月, 2013 1 次提交
  2. 11 7月, 2013 1 次提交
  3. 10 7月, 2013 2 次提交
  4. 08 7月, 2013 2 次提交
  5. 03 7月, 2013 1 次提交
    • M
      qemu: Allow seamless migration for domains with multiple graphics · a72582cb
      Martin Kletzander 提交于
      Since commit 23e8b5d8, the code is refactored in a way that supports
      domains with multiple graphics elements and commit 37b41520 allows
      starting such domains.  However none of those commits take migration
      into account.  Even though qemu doesn't support relocation for
      anything else than SPICE and for no more than one graphics, there is no
      reason to hardcode one graphics into this part of the code as well.
      a72582cb
  6. 25 6月, 2013 5 次提交
  7. 18 6月, 2013 4 次提交
    • P
      migration: Don't propagate VIR_MIGRATE_ABORT_ON_ERROR · 5379bb0f
      Peter Krempa 提交于
      This flag is meant for errors happening on the source of the migration
      and isn't used on the destination. To allow better migration
      compatibility, don't propagate it to the destination.
      5379bb0f
    • P
      migration: Make erroring out on I/O error controllable by flag · cf6d56ac
      Peter Krempa 提交于
      Paolo Bonzini pointed out that it's actually possible to migrate a qemu
      instance that was paused due to I/O error and it will be able to work on
      the destination if the storage is accessible.
      
      This patch introduces flag VIR_MIGRATE_ABORT_ON_ERROR that cancels the
      migration in case an I/O error happens while it's being performed and
      allows migration without this flag. This flag can be possibly used for
      other error reasons that may be introduced in the future.
      cf6d56ac
    • J
      ddf8ad82
    • M
      qemu_migration: Move waiting for SPICE migration · 9da7b11b
      Michal Privoznik 提交于
      Currently, we wait for SPICE to migrate in the very same loop where we
      wait for qemu to migrate. This has a disadvantage of slowing seamless
      migration down. One one hand, we should not kill the domain until all
      SPICE data has been migrated.  On the other hand, there is no need to
      wait in the very same loop and hence slowing down 'cont' on the
      destination. For instance, if users are watching a movie, they can
      experience the movie to be stopped for a couple of seconds, as
      processors are not running nor on src nor on dst as libvirt waits for
      SPICE to migrate. We should move the waiting phase to migration CONFIRM
      phase.
      9da7b11b
  8. 11 6月, 2013 3 次提交
  9. 07 6月, 2013 1 次提交
  10. 06 6月, 2013 2 次提交
    • J
      Replace two-state local integers with bool · e557766c
      Ján Tomko 提交于
      Found with 'git grep "= 1"'.
      e557766c
    • M
      qemu: Reformat listen address prior to checking · e5fa9db1
      Michal Privoznik 提交于
      Currently, a listen address for a SPICE server can be specified. Later,
      when the domain is migrated, we need to relocate the graphics which
      involves telling new destination to the SPICE server. However, we can't
      just assume the listen address is the new location, because the listen
      address can be ANYCAST (0.0.0.0 for IPv4, :: for IPv6). In which case,
      we want to pass the remote hostname. But there are some troubles with
      ANYCAST. In both IPv4 and IPv6 it has many ways for specifying such
      address. For instance, in IPv4: 0, 0.0, 0.0.0, 0.0.0.0.  The number of
      variations gets bigger in IPv6 world. Hence, in order to check for
      ANYCAST address sanely, we should take the provided listen address,
      parse it and format back in it's full form. Which is exactly what this
      patch does.
      e5fa9db1
  11. 31 5月, 2013 1 次提交
    • J
      qemu: escape literal IPv6 address in NBD migration · 2136327e
      Ján Tomko 提交于
      A literal IPv6 must be escaped, otherwise migration fails with:
      unable to execute QEMU command 'drive-mirror': address resolution failed
      for f0::0d:5901: Servname not supported for ai_socktype
      since QEMU treats everything after the first ':' as the port.
      2136327e
  12. 30 5月, 2013 2 次提交
  13. 27 5月, 2013 1 次提交
  14. 23 5月, 2013 2 次提交
  15. 21 5月, 2013 1 次提交
  16. 16 5月, 2013 1 次提交
  17. 08 5月, 2013 3 次提交
    • D
      Pull parsing of migration xml up into QEMU driver APIs · 449e6b1b
      Daniel P. Berrange 提交于
      Currently the parsing of XML is pushed down into the various
      migration helper APIs. This makes it difficult to insert the
      correct access control checks, since one helper API services
      many public APIs. Pull the parsing of XML up to the top level
      of the QEMU driver APIs
      449e6b1b
    • D
      Don't allow renaming of domains by the backdoor · 03a60036
      Daniel P. Berrange 提交于
      Several APIs allow for custom XML to be passed in. This is
      checked for ABI stability, which will ensure the UUID is
      not being changed. There isn't validation that the name
      did not change though. This could allow renaming of guests
      via the backdoor, which in turn could allow for bypassing
      access control restrictions based on names.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      03a60036
    • D
      Separate virGetHostname() API contract from driver APIs · ead63031
      Daniel P. Berrange 提交于
      Currently the virGetHostname() API has a bogus virConnectPtr
      parameter. This is because virtualization drivers directly
      reference this API in their virDriverPtr tables, tieing its
      API design to the public virConnectGetHostname API design.
      
      This also causes problems for access control checks since
      these must only be done for invocations from the public
      API, not internal invocation.
      
      Remove the bogus virConnectPtr parameter, and make each
      hypervisor driver provide a dedicated function for the
      driver API impl. This will allow access control checks
      to be easily inserted later.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      ead63031
  18. 07 5月, 2013 1 次提交
  19. 03 5月, 2013 1 次提交
  20. 02 5月, 2013 1 次提交
    • M
      virutil: Move string related functions to virstring.c · 7c9a2d88
      Michal Privoznik 提交于
      The source code base needs to be adapted as well. Some files
      include virutil.h just for the string related functions (here,
      the include is substituted to match the new file), some include
      virutil.h without any need (here, the include is removed), and
      some require both.
      7c9a2d88
  21. 16 4月, 2013 1 次提交
  22. 12 4月, 2013 1 次提交
  23. 11 4月, 2013 1 次提交
    • M
      qemu: Set correct migrate host in client_migrate_info · 7f15ebc7
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=920441
      
      Currently, we are discarding listen attribute from qemu cookie even though
      we strive to gather it. This result in not so cool bug: if user have
      different networks, one for management/migration, and one for VNC/SPICE we
      pass incorrect host to the qemu in client_migrate_info. What we actually
      pass is remote hostname, while we should be passing remote listen address.
      It doesn't matter as long as these two are the same, but they don't need
      necessary to be like that.
      7f15ebc7
  24. 05 4月, 2013 1 次提交