1. 22 3月, 2017 2 次提交
  2. 18 3月, 2017 2 次提交
  3. 17 3月, 2017 1 次提交
    • J
      qemu: Update CPU definition according to QEMU · def9401a
      Jiri Denemark 提交于
      When starting a domain with custom guest CPU specification QEMU may add
      or remove some CPU features. There are several reasons for this, e.g.,
      QEMU/KVM does not support some requested features or the definition of
      the requested CPU model in libvirt's cpu_map.xml differs from the one
      QEMU is using. We can't really avoid this because CPU models are allowed
      to change with machine types and libvirt doesn't know (and probably
      doesn't even want to know) about such changes.
      
      Thus when we want to make sure guest ABI doesn't change when a domain
      gets migrated to another host, we need to update our live CPU definition
      according to the CPU QEMU created. Once updated, we will change CPU
      checking to VIR_CPU_CHECK_FULL to make sure the virtual CPU created
      after migration exactly matches the one on the source.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=822148
      https://bugzilla.redhat.com/show_bug.cgi?id=824989Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      def9401a
  4. 16 3月, 2017 5 次提交
  5. 15 3月, 2017 1 次提交
  6. 14 3月, 2017 1 次提交
  7. 08 3月, 2017 4 次提交
  8. 07 3月, 2017 1 次提交
    • P
      util: sysinfo: Reduce amount of conditionally compiled code · b38c6b6a
      Peter Krempa 提交于
      Whole implementations along with helper totalling screens of code were
      conditionally compiled. That made the code totally unreadable and
      untestable. Rename functions to have the architecture in the name so
      that all can be compiled at the same time and introduce header to allow
      testing them all.
      b38c6b6a
  9. 06 3月, 2017 3 次提交
    • J
      Cache the presence of machine1 service · f10bd740
      Ján Tomko 提交于
      After the system has been booted, it should not change.
      
      Cache the return value of virSystemdHasMachined.
      Allow starting and terminating machines with just one
      DBus call, instead of three, reducing the chance of
      the call timing out.
      
      Also introduce a small function for resetting the cache
      to be used in tests.
      f10bd740
    • J
      conf: Use consistent function name prefixes for virinterfaceobj · e858232e
      John Ferlan 提交于
      Use "virInterfaceObj" as a prefix for any external API in virinterfaceobj
      e858232e
    • J
      conf: Introduce virinterfaceobj · eabeff8e
      John Ferlan 提交于
      Move all the InterfaceObj API's into their own module virinterfaceobj
      from the interface_conf
      
      Purely code motion at this point.
      eabeff8e
  10. 04 3月, 2017 2 次提交
  11. 24 2月, 2017 8 次提交
  12. 22 2月, 2017 1 次提交
  13. 19 2月, 2017 5 次提交
    • J
      nodedev: Rework virNodeDeviceGetParentHost · 7ad479d0
      John Ferlan 提交于
      Rework the code to perform the various searches by parent, parent_wwnn/
      parent_wwpn, parent_fabric_wwn, or vport capable in order to return the
      'parent_host' number that is vHBA capable.
      
      The former virNodeDeviceGetParentHost is renamed to add the ByParent
      on it fixes an issue where if no parent was supplied in the XML to
      create the vHBA, then virNodeDeviceFindByName was called with a NULL
      second parameter which had bad results.
      
      The reworked code will make the various calls to fetch the NPIV host
      by the passed parameter options or if none are provided find a vport
      capable NPIV HBA to perform the create. If the call is from the delete
      path, then this option won't be allowed.
      
      Each of virNodeDeviceGetParentHostBy* functions is now static, so
      remove them external definitions.
      
      A secondary benefit of this is the test_driver now can make use of
      the new API to add some new tests to test the various creation options.
      7ad479d0
    • J
      util: Move scsi_host specific functions from virutil · 03346def
      John Ferlan 提交于
      Create a virscsihost.c and place the functions there. That removes the
      last #ifdef __linux__ from virutil.c.
      
      Take the opporunity to also change the function names and in one case
      the parameters slightly
      03346def
    • J
      util: Replace virStoragePoolGetVhbaSCSIHostParent · d2d74a98
      John Ferlan 提交于
      Use the new virNodeDeviceGetParentName instead. Modify the callers to
      build the node device scsi_host# name string in order to call the new
      function so that proper lookup occurs.
      d2d74a98
    • J
      nodedev: Introduce virNodeDeviceGetParentName · aa6aa624
      John Ferlan 提交于
      Create a function which takes a node device "name" entry to lookup
      and returns a string containing the parent name for the node device.
      aa6aa624
    • J
      util: Create a new virvhba module and move/rename API's · 16416816
      John Ferlan 提交于
      Rather than have them mixed in with the virutil apis, create a separate
      virvhba.c module and move the vHBA related calls into there. Soon there
      will be more added.
      
      Also modify the names of the functions and some arguments to be more
      indicative of what is really happening. Adjust the callers respectively.
      
      While I was changing fchosttest, rather than the non-descriptive names
      test1...test6, rename them to match what the test is doing.
      16416816
  14. 11 2月, 2017 1 次提交
    • E
      util: Introduce virFileComparePaths · 87589424
      Erik Skultety 提交于
      So rather than comparing 2 paths (strings) as they are, which can very
      easily lead to unnecessary errors (e.g. in storage driver) that the paths
      are not the same when in fact they'd be e.g. just symlinks to the same
      location, we should put our best effort into resolving any symlinks and
      canonicalizing the path and only then compare the 2 paths for equality.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      87589424
  15. 09 2月, 2017 1 次提交
  16. 07 2月, 2017 1 次提交
  17. 01 2月, 2017 1 次提交