1. 05 10月, 2017 3 次提交
  2. 28 9月, 2017 1 次提交
    • J
      qemu: Introduce qemuDomainPrepareDiskSource · 5c09486c
      John Ferlan 提交于
      Introduce a function to setup any TLS needs for a disk source.
      
      If there's a configuration or other error setting up the disk source
      for TLS, then cause the domain startup to fail.
      
      For VxHS, follow the chardevTLS model where if the src->haveTLS hasn't
      been configured, then take the system/global cfg->haveTLS setting for
      the storage source *and* mark that we've done so via the tlsFromConfig
      setting in storage source.
      
      Next, if we are using TLS, then generate an alias into a virStorageSource
      'tlsAlias' field that will be used to create the TLS object and added to
      the disk object in order to link the two together for QEMU.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      5c09486c
  3. 27 9月, 2017 2 次提交
    • P
      qemu: domain: Extract common clearing of VM private data · 3685e2dd
      Peter Krempa 提交于
      VM private data is cleared when the VM is turned off and also when the
      VM object is being freed. Some of the clearing code was duplicated.
      Extract it to a separate function.
      
      This also removes the now unnecessary function
      qemuDomainClearPrivatePaths.
      3685e2dd
    • P
      qemu: process: Refresh data from qemu monitor after migration · 4b480d10
      Peter Krempa 提交于
      Some values we read from the qemu monitor may be changed with the actual
      state by the incoming migration. This means that we should refresh
      certain things only after the migration has finished.
      
      This is mostly visible in the cdrom tray state, which is by default
      closed but may be opened by the guest OS. This would be refreshed before
      qemu transferred the actual state and thus libvirt would think that the
      tray is closed.
      
      Note that this patch moves only a few obvious query commands. Others may
      be moved later after individual assessment.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1463168
      4b480d10
  4. 25 9月, 2017 1 次提交
  5. 20 9月, 2017 1 次提交
  6. 19 9月, 2017 1 次提交
  7. 18 9月, 2017 1 次提交
  8. 13 9月, 2017 1 次提交
    • J
      qemu: Clean up qemuDomainSecretPrepare · 23706c17
      John Ferlan 提交于
      No need to pass a @driver parameter since all that's done is deref
      the @cfg especially since the only caller can just pass an already
      referenced @cfg.
      
      Also, looks like commit id '0298531b' at one time had a different
      name for the API, so I took the liberty of fixing the comments too
      since I would already be updating them for the @cfg variable.
      23706c17
  9. 07 9月, 2017 3 次提交
  10. 29 8月, 2017 2 次提交
  11. 18 8月, 2017 1 次提交
    • P
      qemu: Implement postParse callback skipping on config reload · 7726d158
      Peter Krempa 提交于
      Use the new facility which allows to ignore failures in post parse
      callbacks if they are not fatal so that VM configs are not lost if the
      emulator binary is missing.
      
      If qemuCaps can't be populated on daemon restart skip certain portions
      of the post parse callbacks during config reload and re-run the callback
      during VM startup.
      
      This fixes VMs vanishing if the emulator binary was broken or
      uninstalled and libvirtd was restarted.
      7726d158
  12. 15 8月, 2017 1 次提交
  13. 02 8月, 2017 1 次提交
  14. 26 7月, 2017 2 次提交
  15. 25 7月, 2017 2 次提交
  16. 20 7月, 2017 2 次提交
  17. 19 7月, 2017 1 次提交
  18. 13 7月, 2017 6 次提交
  19. 12 7月, 2017 1 次提交
  20. 11 7月, 2017 1 次提交
  21. 10 7月, 2017 1 次提交
    • P
      qemu: domain: Use vcpu 'node-id' property and pass it back to qemu · ccac4465
      Peter Krempa 提交于
      vcpu properties gathered from query-hotpluggable cpus need to be passed
      back to qemu. As qemu did not use the node-id property until now and
      libvirt forgot to pass it back properly (it was parsed but not passed
      around) we did not honor this.
      
      This patch adds node-id to the structures where it was missing and
      passes it around as necessary.
      
      The test data was generated with a VM with following config:
          <numa>
            <cell id='0' cpus='0,2,4,6' memory='512000' unit='KiB'/>
            <cell id='1' cpus='1,3,5,7' memory='512000' unit='KiB'/>
          </numa>
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1452053
      ccac4465
  22. 26 6月, 2017 1 次提交
  23. 21 6月, 2017 2 次提交
  24. 16 6月, 2017 2 次提交