1. 25 7月, 2017 4 次提交
    • 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
    • J
      nodedev: Convert virNodeDeviceObjListPtr to use hash tables · 4ae9dbea
      John Ferlan 提交于
      Rather than use a forward linked list of elements, it'll be much more
      efficient to use a hash table to reference the elements by unique name
      and to perform hash searches.
      
      This patch does all the heavy lifting of converting the list object to
      use a self locking list that contains the hash table. Each of the FindBy
      functions that do not involve finding the object by it's key (name) is
      converted to use virHashSearch in order to find the specific object.
      When searching for the key (name), it's possible to use virHashLookup.
      For any of the list perusal functions that are required to evaluate
      each object, the virHashForEach function is used.
      4ae9dbea
    • J
      nodedev: Remove @create from virNodeDeviceObjListGetParentHost · 8f6679d9
      John Ferlan 提交于
      The only callers to this function are from CreateXML paths now, so
      let's just remove the unnecessary parameter.
      8f6679d9
    • J
      nodedev: Alter node device deletion logic · 5ba2ce65
      John Ferlan 提交于
      Alter the node device deletion logic to make use of the parent field
      from the obj->def rather than call virNodeDeviceObjListGetParentHost.
      As it turns out the saved @def won't have parent_wwnn/wwpn or
      parent_fabric_wwn, so the only logical path would be to call
      virNodeDeviceObjListGetParentHostByParent which we can accomplish
      directly via virNodeDeviceObjListFindByName.
      5ba2ce65
  2. 24 7月, 2017 13 次提交
  3. 22 7月, 2017 14 次提交
  4. 21 7月, 2017 8 次提交
  5. 20 7月, 2017 1 次提交
    • P
      qemu: process: Don't put memoryless NUMA nodes into autoNodeset · e04d1074
      Peter Krempa 提交于
      'numad' may return a nodeset which contains NUMA nodes without memory
      for certain configurations. Since cgroups code will not be happy using
      nodes without memory we need to store only numa nodes with memory in
      autoNodeset.
      
      On the other hand autoCpuset should contain cpus also for nodes which
      do not have any memory.
      e04d1074