1. 17 12月, 2019 1 次提交
  2. 26 11月, 2019 2 次提交
  3. 13 11月, 2019 1 次提交
  4. 12 11月, 2019 1 次提交
  5. 21 10月, 2019 3 次提交
  6. 16 10月, 2019 5 次提交
  7. 09 9月, 2019 1 次提交
  8. 27 8月, 2019 1 次提交
  9. 23 8月, 2019 2 次提交
  10. 17 8月, 2019 2 次提交
    • M
      virhostdev: Unify virHostdevPreparePCIDevices behaviour for KVM and VFIO cases · 5cd4606e
      Michal Privoznik 提交于
      The virHostdevPreparePCIDevices() function works in several
      steps. In the very first one, it checks if devices we want to
      detach from the host are not taken already by some other domain.
      However, this piece of code returns different results depending
      on the stub driver used (which is not wrong per se, but keep on
      reading). If the stub driver is KVM then
      virHostdevIsPCINodeDeviceUsed() is called which basically checks
      if a PCI device from the detach list is not used by any domain
      (including the one we are preparing the device for). If that is
      the case, an error is reported ("device in use") and -1 is
      returned.
      
      However, that is not what happens if the stub driver is VFIO. If
      the stub driver is VFIO, then we iterate over all PCI devices
      from the same IOMMU group and check if they are taken by some
      other domain (because a PCI device, well IOMMU group, can't be
      shared between two or more qemu processes). But we fail to check,
      if the device we are trying to detach from the host is not
      already taken by a domain. That is, calling
      virHostdevPreparePCIDevices() over a hostdev device twice
      succeeds the first time and fails too late in the second run
      (fortunately, virHostdevResetAllPCIDevices() will throw an error,
      but this is already too late because the PCI device in question
      was moved to the list of inactive PCI devices and now it appears
      in both lists).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Tested-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      5cd4606e
    • M
      virhostdev: Check driver name too in virHostdevIsPCINodeDeviceUsed() · a307143e
      Michal Privoznik 提交于
      It may happen that there are two domains with the same name in
      two separate drivers (e.g. qemu and lxc). That is why for PCI
      devices we track both names of driver and domain combination
      which has taken the device. However, when we check if given PCI
      device is in use (or PCI devices from the same IOMMU group) we
      compare only domain name. This means that we can mistakenly claim
      device as free to use while in fact it isn't.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Tested-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      a307143e
  11. 06 8月, 2019 3 次提交
  12. 20 6月, 2019 8 次提交
  13. 23 5月, 2019 1 次提交
  14. 16 4月, 2019 1 次提交
  15. 04 2月, 2019 1 次提交
  16. 23 1月, 2019 1 次提交
  17. 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
  18. 24 9月, 2018 1 次提交
  19. 20 9月, 2018 2 次提交
  20. 27 7月, 2018 2 次提交