You need to sign in or sign up before continuing.
  1. 31 1月, 2020 5 次提交
  2. 07 1月, 2020 1 次提交
  3. 09 12月, 2019 1 次提交
  4. 26 11月, 2019 1 次提交
  5. 13 11月, 2019 1 次提交
    • J
      cpu_map: Drop pconfig from Icelake-Server CPU model · 9cd03f79
      Jiri Denemark 提交于
      The pconfig feature was enabled in QEMU by accident in 3.1.0. All other
      newer versions do not support it and it was removed from the
      Icelake-Server CPU model in QEMU.
      
      We don't normally change our CPU models even when QEMU does so to avoid
      breaking migrations between different versions of libvirt. But we can
      safely do so in this specific case. QEMU never supported enabling
      pconfig so any domain which was able to start has pconfig disabled.
      
      With a small compatibility hack which explicitly disables pconfig when
      CPU model equals Icelake-Server in migratable domain definition, only
      one migration scenario stays broken (and there's nothing we can do about
      it): from any host to a host with libvirt < 5.10.0 and QEMU > 3.1.0.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1749672Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      9cd03f79
  6. 12 11月, 2019 1 次提交
  7. 25 10月, 2019 1 次提交
  8. 21 10月, 2019 1 次提交
  9. 16 10月, 2019 1 次提交
  10. 15 10月, 2019 1 次提交
  11. 14 8月, 2019 1 次提交
  12. 09 8月, 2019 2 次提交
    • J
      qemu: Pass qemuCaps to qemuMigrationCookieXMLParse · bf15b145
      Jiri Denemark 提交于
      Since qemuDomainDefPostParse callback requires qemuCaps, we need to make
      sure it gets the capabilities stored in the domain's private data if the
      domain is running. Passing NULL may cause QEMU capabilities probing to
      be triggered in case QEMU binary changed in the meantime. When this
      happens while a running domain object is locked, QMP event delivered to
      the domain before QEMU capabilities probing finishes will deadlock the
      event loop.
      
      This patch fixes all paths leading to qemuMigrationCookieXMLParse.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      bf15b145
    • J
      qemu: Pass qemuCaps to qemuDomainDefFormatBufInternal · 900c5952
      Jiri Denemark 提交于
      Since qemuDomainDefPostParse callback requires qemuCaps, we need to make
      sure it gets the capabilities stored in the domain's private data if the
      domain is running. Passing NULL may cause QEMU capabilities probing to
      be triggered in case QEMU binary changed in the meantime. When this
      happens while a running domain object is locked, QMP event delivered to
      the domain before QEMU capabilities probing finishes will deadlock the
      event loop.
      
      This patch fixes all paths leading to qemuDomainDefFormatBufInternal.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      900c5952
  13. 04 3月, 2019 1 次提交
  14. 04 2月, 2019 1 次提交
  15. 17 12月, 2018 1 次提交
  16. 23 11月, 2018 1 次提交
  17. 05 6月, 2018 1 次提交
  18. 17 4月, 2018 1 次提交
  19. 28 2月, 2018 1 次提交
    • Z
      qemu: fix memory leak of @vporttype during migration. · f7399de1
      Zhangzijian 提交于
      12 bytes in 1 blocks are definitely lost in loss record 188 of 1,145
      at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      by 0x5D2CD77: xmlStrndup (in /lib/x86_64-linux-gnu/libxml2.so.2.7.8)
      by 0x514E137: virXMLPropString (virxml.c:506)
      by 0x234F51: qemuMigrationCookieNetworkXMLParse qemu_migration.c:1001)
      by 0x235FF8: qemuMigrationCookieXMLParse (qemu_migration.c:1333)
      by 0x236214: qemuMigrationCookieXMLParseStr (qemu_migration.c:1372)
      by 0x2365D2: qemuMigrationEatCookie (qemu_migration.c:1456)
      by 0x243DBA: qemuMigrationFinish (qemu_migration.c:6381)
      by 0x204032: qemuDomainMigrateFinish3 (qemu_driver.c:13228)
      by 0x521CCBB: virDomainMigrateFinish3 (libvirt-domain.c:4788)
      by 0x1936DE: remoteDispatchDomainMigrateFinish3 (remote.c:4580)
      by 0x16DBB1: remoteDispatchDomainMigrateFinish3Helper(remote_dispatch.h:7582)
      Signed-off-by: NZhangZijian <zhang.zijian@h3c.com>
      f7399de1
  20. 06 2月, 2018 1 次提交
    • J
      qemu: Convert jobInfo stats into a union · 93412bb8
      John Ferlan 提交于
      Convert the stats field in _qemuDomainJobInfo to be a union. This
      will allow for the collection of various different types of stats
      in the same field.
      
      When starting the async job that will end up being used for stats,
      set the @statsType value appropriately. The @mirrorStats are
      special and are used with stats.mig in order to generate the
      returned job stats for a migration.
      
      Using the NONE should avoid the possibility that some random
      async job would try to return stats for migration even though
      a migration is not in progress.
      
      For now a migration and a save job will use the same statsType
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      93412bb8
  21. 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
  22. 12 10月, 2017 1 次提交
  23. 21 9月, 2017 1 次提交
    • J
      cpu_conf: Drop updateCPU from virCPUDefFormat · 4fd179f5
      Jiri Denemark 提交于
      In the past we updated host-model CPUs with host CPU data by adding a
      model and features, but keeping the host-model mode. And since the CPU
      model is not normally formatted for host-model CPU defs, we had to pass
      the updateCPU flag to the formatting code to be able to properly output
      updated host-model CPUs. Libvirt doesn't do this anymore, host-model
      CPUs are turned into custom mode CPUs once updated with host CPU data
      and thus there's no reason for keeping the hacks inside CPU XML
      formatters.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      4fd179f5
  24. 07 9月, 2017 2 次提交
  25. 07 6月, 2017 2 次提交
  26. 20 4月, 2017 1 次提交
  27. 28 3月, 2017 3 次提交