1. 25 4月, 2015 2 次提交
    • H
      hostdev: fix net config restore error · d45dadae
      Huanle Han 提交于
      Fix for such a case:
      1. Domain A and B xml contain the same SRIOV net hostdev(<interface
      type='hostdev' /> with same pci address).
      2. virsh start A (Successfully, and configure the SRIOV net with
      custom mac)
      3. virsh start B (Fail because of the hostdev used by domain A or other
      reason.)
      In step 3, 'virHostdevNetConfigRestore' is called for the hostdev
      which is still used by domain A. It makes the mac/vlan of the SRIOV net
      change.
      
      Code Change in this fix:
      1. As the pci used by other domain have been removed from
      'pcidevs' in previous loop, we only restore the nic config for
      the hostdev still in 'pcidevs'(used by this domain)
      2. update the comments to make it more clear
      Signed-off-by: NHuanle Han <hanxueluo@gmail.com>
      d45dadae
    • H
      hostdev: Create virHostdevIsPCINetDevice · 7ec3f805
      Huanle Han 提交于
      Refactor some code to create a static function virHostdevIsPCINetDevice
      which will detect whether the hostdev is a pci net device or not.
      Signed-off-by: NHuanle Han <hanxueluo@gmail.com>
      7ec3f805
  2. 24 4月, 2015 22 次提交
  3. 23 4月, 2015 14 次提交
  4. 22 4月, 2015 2 次提交
    • M
      parallels: don't forget to unlock domain after successful virDomainObjListFindByUUID call · 0898d818
      Maxim Nestratov 提交于
      Also a typo is fixed (s/detached/attached/)
      
      Signed-off-by: Maxim Nestratov mnestratov@parallels.com
      0898d818
    • R
      vircommand: fix polling in virCommandProcessIO · e34cccf7
      Roman Bogorodskiy 提交于
      When running on FreeBSD, there's a bug in virCommandProcessIO
      polling that is triggered by the commandtest.
      
      A test that triggers EPIPE in commandtest (named "test20") hungs
      forever on FreeBSD.
      
      Apparently, this happens because FreeBSD sets POLLHUP flag on revents
      when stdin in closed. And as the current implementation only checks for
      POLLOUT and POLLERR, it ends up looping forever inside
      virCommandProcessIO and not trying to do one more write() that would
      trigger EPIPE.
      
      To fix that check for the POLLHUP flag along with POLLOUT and POLLERR.
      e34cccf7