You need to sign in or sign up before continuing.
  1. 19 10月, 2017 1 次提交
    • P
      qemu: send allowReboot in migration cookie · e859da6f
      Pavel Hrdina 提交于
      We need to send allowReboot in the migration cookie to ensure the same
      behavior of the virDomainSetLifecycleAction() API on the destination.
      
      Consider this scenario:
      
          1. On the source the domain is started with:
              <on_poweroff>destroy</on_poweroff>
              <on_reboot>restart</on_reboot>
              <on_crash>destroy</on_crash>
      
          2. User calls an API to set "destroy" for <on_reboot>:
              <on_poweroff>destroy</on_poweroff>
              <on_reboot>destroy</on_reboot>
              <on_crash>destroy</on_crash>
      
          3. The guest is migrated to a different host
      
          4a. Without the allowReboot in the migration cookie the QEMU
              process on destination would be started with -no-reboot
              which would prevent using the virDomainSetLifecycleAction() API
              for the rest of the guest lifetime.
      
          4b. With the allowReboot in the migration cookie the QEMU process
              on destination is started without -no-reboot like it was started
              on the source host and the virDomainSetLifecycleAction() API
              continues to work.
      
      The following patch adds a QEMU implementation of the
      virDomainSetLifecycleAction() API and that implementation disallows
      using the API if all actions are set to "destroy" because we add
      "-no-reboot" on the QEMU command line.  Changing the lifecycle action
      is in this case pointless because the QEMU process is always terminated.
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      e859da6f
  2. 17 10月, 2017 1 次提交
  3. 05 10月, 2017 2 次提交
  4. 25 9月, 2017 1 次提交
  5. 14 9月, 2017 1 次提交
  6. 07 9月, 2017 9 次提交
  7. 29 8月, 2017 1 次提交
  8. 18 8月, 2017 1 次提交
  9. 20 7月, 2017 1 次提交
  10. 19 7月, 2017 1 次提交
  11. 26 6月, 2017 1 次提交
  12. 14 6月, 2017 1 次提交
  13. 13 6月, 2017 1 次提交
  14. 07 6月, 2017 4 次提交
  15. 03 5月, 2017 1 次提交
    • J
      qemu: Fix persistent migration of transient domains · 59307fad
      Jiri Denemark 提交于
      While fixing a bug with incorrectly freed memory in commit
      v3.1.0-399-g5498aa29, I accidentally broke persistent migration of
      transient domains. Before adding qemuDomainDefCopy in the path, the code
      just took NULL from vm->newDef and used it as the persistent def, which
      resulted in no persistent XML being sent in the migration cookie. This
      scenario is perfectly valid and the destination correctly handles it by
      using the incoming live definition and storing it as the persistent one.
      
      After the mentioned commit libvirtd would just segfault in the described
      scenario.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1446205Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      59307fad
  16. 02 5月, 2017 1 次提交
  17. 27 4月, 2017 4 次提交
  18. 18 4月, 2017 1 次提交
    • P
      qemu: migration: Skip cache=none check for disks which are storage-migrated · 41e9f54d
      Peter Krempa 提交于
      Since the disks are copied by qemu, there's no need to enforce
      cache=none. Thankfully the code that added qemuMigrateDisk did not break
      existing configs, since if you don't select any disk to migrate
      explicitly the code behaves sanely.
      
      The logic for determining whether a disk should be migrated is
      open-coded since using qemuMigrateDisk twice would be semantically
      incorrect.
      41e9f54d
  19. 13 4月, 2017 2 次提交
  20. 07 4月, 2017 5 次提交