1. 03 8月, 2015 5 次提交
  2. 31 7月, 2015 2 次提交
  3. 30 7月, 2015 3 次提交
  4. 29 7月, 2015 2 次提交
  5. 27 7月, 2015 5 次提交
  6. 25 7月, 2015 3 次提交
    • L
      conf: add virDomainControllerDefNew() · e1431072
      Laine Stump 提交于
      There are some non-0 default values in virDomainControllerDef (and
      will soon be more) that are easier to not forget if the remembering is
      done by a single initializer function (rather than inline code after
      allocating the obejct with generic VIR_ALLOC().
      e1431072
    • L
      qemu: reorganize loop in qemuDomainAssignPCIAddresses · 07268782
      Laine Stump 提交于
      This loop occurs just after we've assured that all devices that
      require a PCI device have been assigned and all necessary PCI
      controllers have been added. It is the perfect place to add other
      potentially auto-generated PCI controller attributes that are
      dependent on the controller's PCI address (upcoming patch).
      
      There is a convenient loop through all controllers at the end of the
      function, but the patch to add new functionality will be cleaner if we
      first rearrange that loop a bit.
      
      Note that the loop originally was accessing info.addr.pci.bus prior to
      determining that the pci part of the object was valid. This isn't
      dangerous in any way, but seemed a bit ugly, so I fixed it.
      07268782
    • L
      conf: pay attention to bus minSlot/maxSlot when autoassigning PCI addresses · d4cf72af
      Laine Stump 提交于
      The function that auto-assigns PCI addresses was written with the
      hardcoded assumptions that any PCI bus would have slots available
      starting at 1 and ending at 31. This isn't true for many types of
      controllers (some have a single slot/port at 0, some have slots/ports
      from 0 to 31). This patch updates that function to remove the
      hardcoded assumptions. It will properly find/assign addresses for
      devices that can only connect to pcie-(root|downstream)-port (which
      have minSlot/maxSlot of 0/0) or a pcie-switch-upstream-port (0/31).
      
      It still will not auto-create a new bus of the proper kind for these
      connections when one doesn't exist, that task is for another day.
      d4cf72af
  7. 24 7月, 2015 7 次提交
  8. 23 7月, 2015 3 次提交
  9. 22 7月, 2015 10 次提交
    • R
      netdev: fix build on FreeBSD · 830344d6
      Roman Bogorodskiy 提交于
      Commit ac3ed208 breaks build on FreeBSD with:
      
        CC       util/libvirt_util_la-virnetdev.lo
      util/virnetdev.c:2967:1: error: unused function 'virNetDevRDMAFeature' [-Werror,-Wunused-function]
      virNetDevRDMAFeature(const char *ifname,
      ^
      
      So hide virNetDevRDMAFeature function under the #ifdef 'SIOCETHTOOL'
      and 'HAVE_STRUCT_IFREQ' section.
      
      Pushed under the build breaker rule.
      830344d6
    • D
      configure: clarify rationale for checking pkcheck · a92bb087
      Daniel P. Berrange 提交于
      We don't need pkcheck binary, but we must detect it in order
      to see if we're preferring polkit-1 over polkit-0 when both
      are installed. We should also check $with_dbus to see if we
      have dbus-devel available, as that's required to talk to
      polkit-1.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a92bb087
    • L
      qemu: fix the error cover issue in SetMemoryParameters · 704cf06a
      Luyao Huang 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1245476
      
      We won't return the errno after commit 0d7f45ae, and
      the more clearly error will be set in the code in vircgroup*.
      Also We will always report error "Operation not permitted",
      because the return is -1.
      Signed-off-by: NLuyao Huang <lhuang@redhat.com>
      704cf06a
    • A
      nodeinfo: Calculate present and online CPUs only once · 6395ec1c
      Andrea Bolognani 提交于
      Move the calls to the respective functions from virNodeParseNode(),
      which is executed once for every NUMA node, to
      linuxNodeInfoCPUPopulate(), which is executed just once per host.
      6395ec1c
    • A
      nodeinfo: Use a bitmap to keep track of node CPUs · 05be6062
      Andrea Bolognani 提交于
      Keep track of what CPUs belong to the current node while walking
      through the sysfs node entry, so we don't need to do it a second
      time immediately afterwards.
      
      This also allows us to loop through all CPUs that are part of a
      node in guaranteed ascending order, which is something that is
      required for some upcoming changes.
      05be6062
    • A
      nodeinfo: Use nodeGetOnlineCPUBitmap() when parsing node · b909e9fb
      Andrea Bolognani 提交于
      No need to look up the online status of each CPU separately when we
      can get all the information in one go.
      b909e9fb
    • A
      nodeinfo: Phase out cpu_set_t usage · b7b50647
      Andrea Bolognani 提交于
      Swap out all instances of cpu_set_t and replace them with virBitmap,
      which some of the code was already using anyway.
      
      The changes are pretty mechanical, with one notable exception: an
      assumption has been added on the max value we can run into while
      reading either socket_it or core_id.
      
      While this specific assumption was not in place before, we were
      using cpu_set_t improperly by not making sure not to set any bit
      past CPU_SETSIZE or explicitly allocating bigger bitmaps; in fact
      the default size of a cpu_set_t, 1024, is way too low to run our
      testsuite, which includes core_id values in the 2000s.
      b7b50647
    • A
      nodeinfo: Rename nodeGetCPUBitmap() to nodeGetOnlineCPUBitmap() · c1df42d7
      Andrea Bolognani 提交于
      The new name makes it clear that the returned bitmap contains the
      information about which CPUs are online, not eg. which CPUs are
      present.
      
      No behavioral change.
      c1df42d7
    • A
      nodeinfo: Remove out parameter from nodeGetCPUBitmap() · ccd0ea7e
      Andrea Bolognani 提交于
      Not all users of this API will need the size of the returned
      bitmap; those who do can simply call virBitmapSize() themselves.
      ccd0ea7e
    • A
      nodeinfo: Add old kernel compatibility to nodeGetPresentCPUBitmap() · 37f73e4a
      Andrea Bolognani 提交于
      If the cpu/present file is not available, we assume that the kernel
      is too old to support non-consecutive CPU ids and return a bitmap
      with all the bits set to represent this fact. This assumption is
      already exploited in nodeGetCPUCount().
      
      This means users of this API can expect the information to always
      be available unless an error has occurred, and no longer need to
      treat the NULL return value as a special case.
      
      The error message has been updated as well.
      37f73e4a