1. 24 3月, 2020 1 次提交
  2. 16 3月, 2020 2 次提交
  3. 25 2月, 2020 1 次提交
  4. 12 11月, 2019 1 次提交
  5. 21 10月, 2019 3 次提交
  6. 06 9月, 2019 1 次提交
  7. 26 8月, 2019 1 次提交
  8. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  9. 17 9月, 2018 1 次提交
  10. 21 8月, 2018 1 次提交
  11. 05 6月, 2018 2 次提交
  12. 29 5月, 2018 1 次提交
  13. 16 5月, 2018 1 次提交
  14. 11 5月, 2018 1 次提交
    • M
      qemu: Generate pr cmd line at startup · 13fe558f
      Michal Privoznik 提交于
      For command line we need two things:
      
      1) -object pr-manager-helper,id=$alias,path=$socketPath
      2) -drive file.pr-manager=$alias
      
      In -object pr-manager-helper we tell qemu which socket to connect
      to, then in -drive file-pr-manager we just reference the object
      the drive in question should use.
      
      For managed PR helper the alias is always "pr-helper0" and socket
      path "${vm->priv->libDir}/pr-helper0.sock".
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      13fe558f
  15. 04 5月, 2018 1 次提交
  16. 20 3月, 2018 1 次提交
    • J
      qemu: Don't assign alias to disabled balloon device · 1554eafb
      Jiri Denemark 提交于
      <memballoon model='none'/> is the only way to disable balloon driver
      since libvirt will add one automatically if the memballoon element is
      missing. In other words, there's no balloon device if model is 'none'
      and generating an alias for it makes no sense. The alias will be ignored
      when parsing the XML and it will disappear once libvirtd is restarted.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      1554eafb
  17. 13 3月, 2018 1 次提交
  18. 09 2月, 2018 1 次提交
    • D
      conf: expand network device callbacks to cover resolving NIC type · a455d41e
      Daniel P. Berrangé 提交于
      Currently the QEMU driver will call directly into the network driver
      impl to modify resolve the atual type of NICs with type=network. It
      has todo this before it has allocated the actual NIC. This introduces
      a callback system to allow us to decouple the QEMU driver from the
      network driver.
      
      This is a short term step, as it ought to be possible to achieve the
      same end goal by simply querying XML via the public network API. The
      QEMU code in question though, has no virConnectPtr conveniently
      available at this time.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      a455d41e
  19. 01 2月, 2018 3 次提交
    • J
      qemu: Update qemuDomainFindSCSIControllerModel return · 5b5bff35
      John Ferlan 提交于
      Now that the controller model is updated during post parse callback,
      this code no longer needs to fetch the model based on the capabilities
      and can just return the model directly if the controller is found.
      
      Removal of @qemuCaps cascades through various callers which are now
      updated to not pass the capabilities.
      5b5bff35
    • J
      qemu: Introduce qemuDomainFindSCSIControllerModel · 6ae6ffd8
      John Ferlan 提交于
      Rather than repeat multiple steps in order to find the SCSI
      controller model, let's combine them into one helper that will
      return either the model from the definition or the default
      model based on the capabilities.
      
      This patch adds an extra check/error that the controller
      that's being found actually exists. This just clarifies that
      the error was because the controller doesn't exist rather
      than the more generic error that we were unable to determine
      the model from qemuDomainSetSCSIControllerModel when a -1
      was passed in and the capabilities were unable to find one.
      6ae6ffd8
    • J
      conf: Rework and rename virDomainDeviceFindControllerModel · 932862b8
      John Ferlan 提交于
      As it turns out virDomainDeviceFindControllerModel was only ever
      called for SCSI controllers using VIR_DOMAIN_CONTROLLER_TYPE_SCSI
      as a parameter.
      
      So rename to virDomainDeviceFindSCSIController and rather than
      return a model, let's return a virDomainControllerDefPtr to let
      the caller reference whatever it wants.
      932862b8
  20. 22 10月, 2017 1 次提交
    • M
      qemu_alias: Be more tolerant if alias don't follow our format · ad30f069
      Michal Privoznik 提交于
      When assigning alias to a device we usually iterate over other
      devices of its kind trying to find next index. We do this by
      stripping down the prefix and then parsing number at the end,
      Usually, if the prefix doesn't match the one we are expecting, we
      just continue with next iteration. Except for couple of
      functions: qemuGetNextChrDevIndex(),
      qemuAssignDeviceRedirdevAlias() and qemuAssignDeviceShmemAlias().
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      ad30f069
  21. 19 10月, 2017 4 次提交
  22. 05 10月, 2017 1 次提交
  23. 18 4月, 2017 1 次提交
    • P
      qemu: refactor qemuDomainMachine* functions · ac97658d
      Pavel Hrdina 提交于
      Introduce new wrapper functions without *Machine* in the function
      name that take the whole virDomainDef structure as argument and
      call the existing functions with *Machine* in the function name.
      
      Change the arguments of existing functions to *machine* and *arch*
      because they don't need the whole virDomainDef structure and they
      could be used in places where we don't have virDomainDef.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      ac97658d
  24. 15 3月, 2017 1 次提交
    • M
      qemu: Implement NVDIMM · 1bc17319
      Michal Privoznik 提交于
      So, majority of the code is just ready as-is. Well, with one
      slight change: differentiate between dimm and nvdimm in places
      like device alias generation, generating the command line and so
      on.
      
      Speaking of the command line, we also need to append 'nvdimm=on'
      to the '-machine' argument so that the nvdimm feature is
      advertised in the ACPI tables properly.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1bc17319
  25. 22 2月, 2017 1 次提交
  26. 11 11月, 2016 1 次提交
  27. 18 10月, 2016 1 次提交
  28. 20 9月, 2016 1 次提交
  29. 09 9月, 2016 1 次提交
    • J
      qemu: Add support for TLS X.509 path to TCP chardev backend · ce61c164
      John Ferlan 提交于
      When building a chardev device string for tcp, add the necessary pieces to
      access provide the TLS X.509 path to qemu.  This includes generating the
      'tls-creds-x509' object and then adding the 'tls-creds' parameter to the
      VIR_DOMAIN_CHR_TYPE_TCP command line.
      
      Finally add the tests for the qemu command line. This test will make use
      of the "new(ish)" /etc/pki/qemu setting for a TLS certificate environment
      by *not* "resetting" the chardevTLSx509certdir prior to running the test.
      Also use the default "verify" option (which is "no").
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ce61c164
  30. 02 8月, 2016 2 次提交
    • J
      qemu: Introduce qemuAliasFromHostdev · 647bc753
      John Ferlan 提交于
      Introduce a common API to generate the alias for a host device
      647bc753
    • J
      qemu: Make QEMU_DRIVE_HOST_PREFIX more private · dd0dbe1d
      John Ferlan 提交于
      Move QEMU_DRIVE_HOST_PREFIX into the qemu_alias.c to dissuade future
      callers from using it. Create qemuAliasDiskDriveSkipPrefix in order
      to handle the current consumers that desire to check if an alias has
      the drive- prefix and "get beyond it" in order to get the disk alias.
      dd0dbe1d