1. 27 3月, 2017 10 次提交
  2. 24 3月, 2017 3 次提交
    • L
      util: new function virNetDevPFGetVF() · 554253ad
      Laine Stump 提交于
      Given an SRIOV PF netdev name (e.g. "enp2s0f0") and VF#, this new
      function returns the netdev name of the referenced VF device
      (e.g. "enp2s11f6"), or NULL if the device isn't bound to a net driver.
      554253ad
    • L
      util: new function virPCIDeviceRebind() · 251d179b
      Laine Stump 提交于
      This function unbinds a device from its driver, then immediately
      rebinds it to its driver again. The code for this new function is just
      the 2nd half of virPCIDeviceBindWithDriverOverride(), so that
      function's 2nd half is replaced with a call to virPCIDeviceRebind().
      251d179b
    • L
      util: make virPCIGetDeviceAddressFromSysfsLink() public · 9a238c16
      Laine Stump 提交于
      This function will be useful in virnetdev.c, so promote it from static.
      9a238c16
  3. 23 3月, 2017 2 次提交
    • L
      util: new function virNetDevTapAttachBridge() · a4541349
      Laine Stump 提交于
      This patch splits out the part of virNetDevTapCreateInBridgePort()
      that would need to be re-done if an existing tap device had to be
      re-attached to a bridge, and puts it into a separate function. This
      can be used both when an existing domain interface config is updated
      to change its connection, and also to re-attach to the "same" bridge
      when a network has been stopped and restarted. So far it is used for
      nothing.
      a4541349
    • L
      util: new function virNetDevGetMaster() · e75f5bfb
      Laine Stump 提交于
      This function provides the bridge/bond device that the given network
      device is attached to. The return value is 0 or -1, and the master
      device is a char** argument to the function - this is needed in order
      to allow for a "success" return from a device that has no master.
      e75f5bfb
  4. 22 3月, 2017 3 次提交
  5. 18 3月, 2017 2 次提交
  6. 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
  7. 16 3月, 2017 5 次提交
  8. 15 3月, 2017 1 次提交
  9. 14 3月, 2017 1 次提交
  10. 08 3月, 2017 4 次提交
  11. 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
  12. 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
  13. 04 3月, 2017 2 次提交
  14. 24 2月, 2017 2 次提交