You need to sign in or sign up before continuing.
  1. 05 10月, 2017 2 次提交
  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 1 次提交
    • 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
  4. 26 9月, 2017 2 次提交
  5. 22 9月, 2017 2 次提交
  6. 21 9月, 2017 7 次提交
  7. 18 9月, 2017 2 次提交
  8. 14 9月, 2017 1 次提交
    • P
      qemu: Remove support for legacy block jobs · 2350d101
      Peter Krempa 提交于
      Block job QMP commands with underscores rather than dashes were never
      released in upstream qemu, (they were added, but modified in the same
      release [1]), but a certain distro managed to backport the version in the
      middle.
      
      The change also slightly modified semantics for the abort command, which
      made us have a lot of code which was only ever present in certain
      downstream distros.
      
      Clean the upstream code from the legacy cruft and support only the
      upstream implementations.
      
      [1] See qemu commit v1.0-2176-gdb58f9c060
      Reviewed-by: NEric Blake <eblake@redhat.com>
      2350d101
  9. 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
  10. 07 9月, 2017 7 次提交
  11. 05 9月, 2017 4 次提交
  12. 01 9月, 2017 1 次提交
    • N
      qemu: handle -1 for pid in qemuDomainGetMachineName · 9820756c
      Nikolay Shirokovskiy 提交于
      We call qemuDomainGetMachineName on domain start. On first
      start (after daemon start) pid is 0 and virSystemdGetMachineNameByPID
      don't get called. But after domain shutting down pid became -1 so
      on next start virSystemdGetMachineNameByPID is called and returned an error.
      Error is ignored so it is not critical. But at least on my system
      (systemd-219 with extra patches) systemd-machined is crashed on
      this request.
      
      This behaviour is triggered by eaf2c9f8.
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      9820756c
  13. 30 8月, 2017 1 次提交
    • P
      qemu: set bind mode for chardev while parsing XML · be6a415e
      Pavel Hrdina 提交于
      Currently while parsing domain XML we clear the UNIX path if it matches
      one of the auto-generated paths by libvirt.  After that when the guest
      is started new path is generated but the mode is also changed to "bind".
      
      In the real-world use-case the mode should not change, it only happens
      if a user provides a mode='connect' and path that matches one of the
      auto-generated path or not provides a path at all.
      
      Before *reconnect* feature was introduced there was no issue, but with
      the new feature we need to make sure that it's used only with "connect"
      mode, therefore we need to move the mode change into parsing in order
      to have a proper error reported by validation code.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      be6a415e
  14. 29 8月, 2017 4 次提交
  15. 27 8月, 2017 1 次提交
  16. 18 8月, 2017 3 次提交
    • 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
    • P
      qemu: domain: Don't set default USB model if qemuCaps is missing · 78088848
      Peter Krempa 提交于
      qemuDomainControllerDefPostParse assigns the default USB controller
      model when it was not specified by the user. Skip this step if @qemuCaps
      is missing so that we don't fill wrong data. This will then be fixes by
      re-running the post parse callback.
      78088848
    • P
      qemu: domain: Don't return default NIC model if @qemuCaps are missing · fde772cf
      Peter Krempa 提交于
      Return NULL in qemuDomainDefaultNetModel if qemuCaps is missing and the
      network card model would be determined by the capabilities.
      fde772cf