1. 11 4月, 2017 4 次提交
  2. 10 4月, 2017 4 次提交
  3. 07 4月, 2017 1 次提交
    • J
      cpu: Introduce virCPUCopyMigratable · 05e91c79
      Jiri Denemark 提交于
      This new internal API makes a copy of virCPUDef while removing all
      features which would block migration. It uses cpu_map.xml as a database
      of such features, which should only be used as a fallback when we cannot
      get the data from a hypervisor. The main goal of this API is to decouple
      this filtering from virCPUUpdate so that the hypervisor driver can
      filter the features according to the hypervisor.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      05e91c79
  4. 03 4月, 2017 1 次提交
    • M
      Introduce and use virDomainDiskEmptySource · 462c4b66
      Michal Privoznik 提交于
      Currently, if we want to zero out disk source (e,g, due to
      startupPolicy when starting up a domain) we use
      virDomainDiskSetSource(disk, NULL). This works well for file
      based storage (storage type file, dir, or block). But it doesn't
      work at all for other types like volume and network.
      
      So imagine that you have a domain that has a CDROM configured
      which source is a volume from an inactive pool. Because it is
      startupPolicy='optional', the CDROM is empty when the domain
      starts. However, the source element is not cleared out in the
      status XML and thus when the daemon restarts and tries to
      reconnect to the domain it refreshes the disks (which fails - the
      storage pool is still not running) and thus the domain is killed.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      462c4b66
  5. 27 3月, 2017 24 次提交
  6. 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
  7. 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
  8. 22 3月, 2017 1 次提交