1. 28 11月, 2017 17 次提交
  2. 27 11月, 2017 2 次提交
  3. 25 11月, 2017 13 次提交
  4. 24 11月, 2017 8 次提交
    • J
      s390: qemu-capabilities: Avoid error message when missing non-kvm host cpu info · 74fc32a9
      Jason J. Herne 提交于
      Libvirt prints an error on startup when it is missing host cpu model
      information for any queried qemu binary. On s390 we only have host cpu model
      information for kvm enabled qemu instances. So when virt type is not kvm, this
      is actually not an error on s390.
      
      This patch adds virt type as a parameter to virQEMUCapsInitCPUModelS390, and a
      new return code 2 for virQEMUCapsInitCPUModel and virQEMUCapsInitCPUModelS390.
      If the virt type is not kvm then we skip printing the scary error message
      and return 2 because this case is actually expected behavior. The new return
      code is meant to differentiate between the failure case and the case where we
      simply expect the cpu model information to be unattainable.
      Signed-off-by: NJason J. Herne <jjherne@linux.vnet.ibm.com>
      Reviewed-by: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
      Reviewed-by: NMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      74fc32a9
    • J
      storage: Fix broken storage_driver build · 6caf67f8
      John Ferlan 提交于
      Commit id '5d5c732d' had an incorrect assignment and was found
      by travis build:
      
      storage/storage_driver.c:1668:14: error: equality comparison with extraneous
            parentheses [-Werror,-Wparentheses-equality]
          if ((obj == virStoragePoolObjListSearch(&driver->pools,
      
               ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      6caf67f8
    • J
      storage: Convert virStoragePoolObj into virObjectLockable · dcb5d8bb
      John Ferlan 提交于
      Now that we're moved the object into virstorageobj, let's make the
      code use the lockable object.
      dcb5d8bb
    • J
      storage: Introduce virStoragePoolObjListSearch · 5d5c732d
      John Ferlan 提交于
      Create an API to search through the storage pool objects looking for
      a specific truism from a callback API in order to return the specific
      storage pool object that is desired.
      5d5c732d
    • J
      storage: Introduce virStoragePoolObjListForEach · d0258dd9
      John Ferlan 提交于
      Create an API to walk the pools->objs[] list in order to perform a
      callback function for each element of the objs array that doesn't care
      about whether the action succeeds or fails as the desire is to run the
      code over every element in the array rather than fail as soon as or if
      one fails.
      d0258dd9
    • J
      storage: Introduce virStoragePoolObjEndAPI · 770aa08e
      John Ferlan 提交于
      For now it'll just call the virStoragePoolObjUnlock, but a future
      adjustment will do something different. Since the new API will check
      for a NULL object before the Unlock call, callers no longer need to
      check for NULL before calling.
      
      The virStoragePoolObjUnlock is now private/static to virstorageobj.c
      with a short term forward reference.
      770aa08e
    • J
      nodedev: Restore setting of privileged · 9bfcf3cc
      John Ferlan 提交于
      Commit id '36555364' removed the setting of the driver->privileged,
      which the udevProcessPCI would need in order to read the PCI device
      configs.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      9bfcf3cc
    • P
      qemu: command: Properly format disk 'debug' attribute · 1455a91b
      Peter Krempa 提交于
      Move the setup of the disk attribute to the disk source prepare function
      which will allow proper usage with JSON props and move the fallback
      (legacy) generating code into the block which is executed with legacy
      options.
      
      As a side-effect of this change we can clean up propagation of 'cfg'
      into the command generator.
      
      Also it's nice to see that the test output is the same even when the
      value is generated in a different place.
      1455a91b