1. 28 1月, 2016 1 次提交
  2. 21 12月, 2015 4 次提交
    • A
      hostdev: Emit debug messages while handling PCI hostdevs · d5a0cf10
      Andrea Bolognani 提交于
      Both detach and reattach are complex operations involving several steps,
      and it can be useful to be able to follow along by reading the log.
      d5a0cf10
    • A
      hostdev: Only rollback detach of managed devices on error · e926df60
      Andrea Bolognani 提交于
      Since we don't detach unmanaged devices before attaching them to a
      domain, we shouldn't reattach them to rollback an error either.
      e926df60
    • A
      hostdev: Mark PCI devices as inactive as they're detached · b8a625f3
      Andrea Bolognani 提交于
      We want to eventually factor out the code dealing with device detaching
      and reattaching, so that we can share it and make sure it's called eg.
      when 'virsh nodedev-detach' is used.
      
      For that to happen, it's important that the lists of active and inactive
      PCI devices are updated every time a device changes its state.
      
      Instead of passing NULL as the last argument of virPCIDeviceDetach() and
      virPCIDeviceReattach(), pass the proper list so that it can be updated.
      b8a625f3
    • A
      pci: Introduce virPCIStubDriver enumeration · 6d9cdd2a
      Andrea Bolognani 提交于
      This replaces the virPCIKnownStubs string array that was used
      internally for stub driver validation.
      
      Advantages:
      
        * possible values are well-defined
        * typos in driver names will be detected at compile time
        * avoids having several copies of the same string around
        * no error checking required when setting / getting value
      
      The names used mirror those in the
      virDomainHostdevSubsysPCIBackendType enumeration.
      6d9cdd2a
  3. 16 12月, 2015 1 次提交
    • A
      pci: Use virPCIDeviceAddress in virPCIDevice · 77434541
      Andrea Bolognani 提交于
      Instead of replicating the information (domain, bus, slot, function)
      inside the virPCIDevice structure, use the already-existing
      virPCIDeviceAddress structure.
      
      For users of the module, this means that the object returned by
      virPCIDeviceGetAddress() can no longer be NULL and must no longer
      be freed by the caller.
      77434541
  4. 26 10月, 2015 1 次提交
  5. 27 8月, 2015 1 次提交
  6. 06 8月, 2015 1 次提交
  7. 23 6月, 2015 2 次提交
  8. 25 4月, 2015 3 次提交
    • J
      virhostdev: Fix comments for virHostdevReAttachPCIDevices · 6f75779e
      John Ferlan 提交于
      Pushed previous patch (commit id 'd45dadae') too quickly...
      
      The patch just updates the patch from Laine's suggestions.
      6f75779e
    • H
      hostdev: fix net config restore error · d45dadae
      Huanle Han 提交于
      Fix for such a case:
      1. Domain A and B xml contain the same SRIOV net hostdev(<interface
      type='hostdev' /> with same pci address).
      2. virsh start A (Successfully, and configure the SRIOV net with
      custom mac)
      3. virsh start B (Fail because of the hostdev used by domain A or other
      reason.)
      In step 3, 'virHostdevNetConfigRestore' is called for the hostdev
      which is still used by domain A. It makes the mac/vlan of the SRIOV net
      change.
      
      Code Change in this fix:
      1. As the pci used by other domain have been removed from
      'pcidevs' in previous loop, we only restore the nic config for
      the hostdev still in 'pcidevs'(used by this domain)
      2. update the comments to make it more clear
      Signed-off-by: NHuanle Han <hanxueluo@gmail.com>
      d45dadae
    • H
      hostdev: Create virHostdevIsPCINetDevice · 7ec3f805
      Huanle Han 提交于
      Refactor some code to create a static function virHostdevIsPCINetDevice
      which will detect whether the hostdev is a pci net device or not.
      Signed-off-by: NHuanle Han <hanxueluo@gmail.com>
      7ec3f805
  9. 14 4月, 2015 1 次提交
  10. 07 4月, 2015 1 次提交
  11. 02 4月, 2015 1 次提交
  12. 23 3月, 2015 1 次提交
  13. 15 1月, 2015 1 次提交
  14. 24 7月, 2014 5 次提交
  15. 08 4月, 2014 1 次提交
  16. 28 3月, 2014 2 次提交
  17. 25 3月, 2014 1 次提交
  18. 18 3月, 2014 1 次提交
  19. 13 3月, 2014 11 次提交