1. 04 1月, 2018 1 次提交
  2. 24 11月, 2017 1 次提交
  3. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  4. 19 10月, 2017 8 次提交
  5. 17 8月, 2017 3 次提交
  6. 28 7月, 2017 1 次提交
  7. 25 7月, 2017 1 次提交
    • J
      nodedev: Remove driver locks around object list mgmt code · 4cb719b2
      John Ferlan 提交于
      Since virnodedeviceobj now has a self-lockable hash table, there's no
      need to lock the table from the driver for processing. Thus remove the
      locks from the driver for NodeDeviceObjList mgmt.
      
      This includes the test driver as well.
      4cb719b2
  8. 17 7月, 2017 5 次提交
    • J
      nodedev: Convert virNodeDeviceObj to use virObjectLockable · dae23ec3
      John Ferlan 提交于
      Now that we have a bit more control, let's convert our object into
      a lockable object and let that magic handle the create and lock/unlock.
      
      This also involves creating a virNodeDeviceEndAPI in order to handle
      the object cleanup for API's that use the Add or Find API's in order
      to get a locked/reffed object. The EndAPI will unlock and unref the
      object returning NULL to indicate to the caller to not use the obj.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      dae23ec3
    • J
      nodedev: Alter node device obj list function names · 881a486a
      John Ferlan 提交于
      Ensure that any function that walks the node device object list is prefixed
      by virNodeDeviceObjList.
      
      Also, modify the @filter param name for virNodeDeviceObjListExport to
      be @aclfilter.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      881a486a
    • J
      nodedev: Introduce virNodeDeviceObjListNew · 9c5d98fd
      John Ferlan 提交于
      In preparation to make things private, make the ->devs be pointers to a
      virNodeDeviceObjList and then manage everything inside virnodedeviceobj
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      9c5d98fd
    • J
      nodedev: Use consistent names for driver variables · aa6e856b
      John Ferlan 提交于
      A virNodeDeviceObjPtr is an @obj
      
      A virNodeDeviceObjListPtr is a @devs
      
      A virNodeDevicePtr is a @device
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      aa6e856b
    • J
      nodedev: Alter virNodeDeviceObjRemove · 87e50c9c
      John Ferlan 提交于
      Rather than passing the object to be removed by reference, pass by value
      and then let the caller decide whether or not the object should be free'd
      and how to handle the logic afterwards. This includes free'ing the object
      and/or setting the local variable to NULL to prevent subsequent unexpected
      usage (via something like virNodeDeviceObjRemove in testNodeDeviceDestroy).
      
      For now this function will just handle the remove of the object from the
      list for which it was placed during virNodeDeviceObjAssignDef.
      
      This essentially reverts logic from commit id '61148074' that free'd the
      device entry on list, set *dev = NULL and returned. Thus fixing a bug in
      node_device_hal.c/dev_refresh() which would never call dev_create(udi)
      since @dev would have been set to NULL.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      87e50c9c
  9. 03 6月, 2017 2 次提交
  10. 31 5月, 2017 1 次提交
  11. 29 5月, 2017 1 次提交
  12. 26 5月, 2017 2 次提交
    • B
      node_device: introduce new capability FC_RPORT · bb2adfe9
      Bjoern Walk 提交于
      Similar to scsi_host and fc_host, there is a relation between a
      scsi_target and its transport specific fc_remote_port. Let's expose this
      relation and relevant information behind it.
      
      An example for a virsh nodedev-dumpxml:
      
          virsh # nodedev-dumpxml scsi_target0_0_0
          <device>
            <name>scsi_target0_0_0</name>
            <path>/sys/devices/[...]/host0/rport-0:0-0/target0:0:0</path>
            <parent>scsi_host0</parent>
            <capability type='scsi_target'>
              <target>target0:0:0</target>
              <capability type='fc_remote_port'>
                <rport>rport-0:0-0</rport>
                <wwpn>0x9d73bc45f0e21a86</wwpn>
              </capability>
            </capability>
          </device>
      Reviewed-by: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
      Signed-off-by: NBjoern Walk <bwalk@linux.vnet.ibm.com>
      bb2adfe9
    • B
      node_device: detect CCW devices · b0ffd938
      Bjoern Walk 提交于
      Make CCW devices available to the node_device driver. The devices are
      already seen by udev so let's implement necessary code for detecting
      them properly.
      
      Topologically, CCW devices are similar to PCI devices, e.g.:
      
          +- ccw_0_0_1a2b
              |
              +- scsi_host0
                  |
                  +- scsi_target0_0_0
                      |
                      +- scsi_0_0_0_0
      Reviewed-by: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
      Signed-off-by: NBjoern Walk <bwalk@linux.vnet.ibm.com>
      b0ffd938
  13. 18 5月, 2017 4 次提交
    • E
      nodedev: mdev: Fix build caused by symbol shadowing · de4b46e1
      Erik Skultety 提交于
      GCC 4.6 complains about a local declaration shadowing a global symbol.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      de4b46e1
    • E
      nodedev: Introduce mdev capability for mediated devices · 88ef73e1
      Erik Skultety 提交于
      Start discovering the mediated devices on the host system and format the
      attributes for the mediated device into the XML. Compared to the parent
      device which reports generic information about the abstract mediated
      devices types, a child device only reports the type name it has been
      instantiated from and the IOMMU group number, since that's device
      specific compared to the rest of the info that can be gathered about
      mediated devices at the moment.
      This patch introduces both the formatting and parsing routines, updates
      nodedev.rng schema, adding a testcase as well.
      
      The resulting mdev child device XML:
      <device>
        <name>mdev_4b20d080_1b54_4048_85b3_a6a62d165c01</name>
        <path>/sys/devices/.../4b20d080-1b54-4048-85b3-a6a62d165c01</path>
        <parent>pci_0000_06_00_0</parent>
        <driver>
          <name>vfio_mdev</name>
        </driver>
        <capability type='mdev'>
          <type id='vendor_supplied_type_id'/>
          <iommuGroup number='NUM'/>
        <capability/>
      <device/>
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1452072Signed-off-by: NErik Skultety <eskultet@redhat.com>
      88ef73e1
    • E
      nodedev: Introduce the mdev capability to a PCI parent device · 500cbc06
      Erik Skultety 提交于
      The parent device needs to report the generic stuff about the supported
      mediated devices types, like device API, available instances, type name,
      etc. Therefore this patch introduces a new nested capability element of
      type 'mdev_types' with the resulting XML of the following format:
      
      <device>
        ...
        <capability type='pci'>
          ...
          <capability type='mdev_types'>
            <type id='vendor_supplied_id'>
              <name>optional_vendor_supplied_codename</name>
              <deviceAPI>vfio-pci</deviceAPI>
              <availableInstances>NUM</availableInstances>
            </type>
              ...
            <type>
              ...
            </type>
          </capability>
        </capability>
        ...
      </device>
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1452072Signed-off-by: NErik Skultety <eskultet@redhat.com>
      500cbc06
    • E
      nodedev: Introduce new mdev_types and mdev nodedev capabilities · 4385df97
      Erik Skultety 提交于
      The reason for introducing two capabilities, one for the device itself
      (cap 'mdev') and one for the parent device listing the available types
      ('mdev_types'), is that we should be able to do
      'virsh nodedev-list --cap' not only for existing mdev devices but also
      for devices that support creation of mdev devices, since one day libvirt
      might be actually able to create the mdev devices in an automated way
      (just like we do for NPIV/vHBA).
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1452072Signed-off-by: NErik Skultety <eskultet@redhat.com>
      4385df97
  14. 24 4月, 2017 2 次提交
  15. 04 3月, 2017 3 次提交
  16. 20 2月, 2017 1 次提交
  17. 17 2月, 2017 2 次提交
  18. 12 10月, 2016 1 次提交