1. 31 1月, 2019 3 次提交
  2. 30 1月, 2019 3 次提交
    • D
      Revert "qemu: Forbid pinning vCPUs for TCG domain" · 9047b9ae
      Daniel P. Berrangé 提交于
      This reverts commit 8b035c84.
      
      The MTTCG impl in QEMU does allow pinning vCPUs.
      
      When the guest is running we already check if pinning is
      possible in the qemuDomainPinVcpuLive method, so this
      check was adding no benefit.
      
      When the guest is not running, we cannot know whether the
      subsequent launch will use MTTCG or TCG, so we must allow
      the pinning request. If the guest does use TCG on the next
      launch it will fail, but this is no worse than if the user
      had done a virDomainDefineXML with an XML doc specifying
      vCPU pinning.
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      9047b9ae
    • D
      qemu: fix recording of vCPU pids for MTTCG · 34f77437
      Daniel P. Berrangé 提交于
      MTTCG is the new multi-threaded impl of TCG which follows
      KVM in having one host OS thread per vCPU. Historically
      we have discarded all PIDs reported for TCG guests, but
      we must now selectively honour this data.
      
      We don't have anything in the domain XML that indicates
      whether a guest is using TCG or MTTCG. While QEMU does
      have an option (-accel tcg,thread=single|multi), it is
      not desirable to expose this in libvirt. QEMU will
      automatically use MTTCG when the host/guest architecture
      pairing is known to be safe. Only developers of QEMU TCG
      have a strong reason to override this logic.
      
      Thus we use two sanity checks to decide if the vCPU
      PID information is usable. First we see if the PID
      duplicates the main emulator PID, and second we see
      if the PID duplicates any other vCPUs.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      34f77437
    • P
      qemu: Don't reject making domain persistent if block copy is running · 5ea24bbb
      Peter Krempa 提交于
      Add documentation that the 'VIR_DOMAIN_BLOCK_COPY_TRANSIENT_JOB' flag
      is auto-assumed if the block copy job is started while the VM is
      transient and remove the restriction to define the domain when copy
      is running.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      5ea24bbb
  3. 29 1月, 2019 4 次提交
  4. 28 1月, 2019 1 次提交
    • M
      lib: Use more of VIR_STEAL_PTR() · 5772885d
      Michal Privoznik 提交于
      We have this very handy macro called VIR_STEAL_PTR() which steals
      one pointer into the other and sets the other to NULL. The
      following coccinelle patch was used to create this commit:
      
        @ rule1 @
        identifier a, b;
        @@
      
        - b = a;
          ...
        - a = NULL;
        + VIR_STEAL_PTR(b, a);
      
      Some places were clean up afterwards to make syntax-check happy
      (e.g. some curly braces were removed where the body become a one
      liner).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      5772885d
  5. 25 1月, 2019 17 次提交
  6. 24 1月, 2019 1 次提交
  7. 23 1月, 2019 3 次提交
  8. 22 1月, 2019 8 次提交