1. 09 12月, 2015 12 次提交
  2. 04 12月, 2015 1 次提交
    • B
      conf: Revert some code to resolve issues for hostdev hotplug · dc692438
      Boris Fiuczynski 提交于
      This patch reverts parts of commits 0d8b24f6 and 0785966d dealing with
      the addition of a controller during virDomainHostdevAssignAddress. This
      caused a regression for the hostdev hotplug path which assumes the
      qemuDomainFindOrCreateSCSIDiskController will add the new controller
      during qemuDomainAttachHostSCSIDevice to both the running domain and
      the domain def controller list when the controller doesn't yet exist
      (whether due to no SCSI controllers existing or the addition of a new
      controller because existing ones are full).
      
      Since commit id 0d8b24f6 will call virDomainHostdevAssignAddress during
      virDomainDeviceDefPostParseInternal which is called either during domain
      definition post processing (via an iterator during virDomainDefPostParse)
      or directly from virDomainDeviceDefParse during hotplug, the change
      broke the "side effect" of being able to add both a hostdev and controller
      to the running domain.
      
      The regression would only be seen if the running domain didn't have a
      SCSI controller already defined or if the existing SCSI controller was
      "full" of devices and a new controller needed to be created.
      
      This patch will also add some extra comments to the code to avoid a
      similar future change.
      Signed-off-by: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
      Reviewed-by: NBjoern Walk <bwalk@linux.vnet.ibm.com>
      Reviewed-by: NStefan Zimmermann <stzi@linux.vnet.ibm.com>
      dc692438
  3. 30 11月, 2015 3 次提交
  4. 27 11月, 2015 3 次提交
  5. 25 11月, 2015 5 次提交
  6. 24 11月, 2015 1 次提交
    • P
      conf: Drop useless check when parsing cpu scheduler info · 5ba01683
      Peter Krempa 提交于
      The checked predicate is a deduction from the following checks:
      
      1) maximum cpu id is checked for every parsed <vcpusched> element
      2) the resulting bitmaps are checked for overlaps
      3) there has to be at least one cpu per <vcpusched>
      
      From the above checks we can indeed deduce that if we have one
      <vcpusched> element per CPU we will have at most 'maxvcpus' of them.
      
      Drop the explicit check since it's redundant.
      5ba01683
  7. 18 11月, 2015 1 次提交
  8. 12 11月, 2015 1 次提交
    • J
      storage: Make active boolean · 0c7a9b99
      John Ferlan 提交于
      Since we treat it like a boolean, let's store it that way. At least one
      path had already treated as true/false anyway.
      0c7a9b99
  9. 11 11月, 2015 2 次提交
  10. 10 11月, 2015 1 次提交
  11. 27 10月, 2015 1 次提交
  12. 22 10月, 2015 1 次提交
  13. 21 10月, 2015 1 次提交
  14. 16 10月, 2015 2 次提交
    • J
      conf: Optimize the iothreadid initialization · bb02d4c4
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1264008
      
      The existing algorithm assumed that someone was making small, incremental
      changes; however, it is possible to change iothreads from 0 (or relatively
      small number) to some really large number and the algorithm would possibly
      spin its wheels doing unnecessary searches.
      
      So, optimize the algorithm using a bitmap to find available iothread_id's
      starting at 1 that aren't already defined by a "<thread id='#'>" and
      filling in the iothreadids array with those iothread_id values.
      bb02d4c4
    • J
      qemu: Use 'niothreadids' instead of 'iothreads' · 4f8e8887
      John Ferlan 提交于
      Although theoretically both should be the same value, the niothreadids
      should be used in favor of iothreads when performing comparisons. This
      leaves the iothreads as a purely numeric value to be saved in the config
      file.  The one exception to the rule is virDomainIOThreadIDDefArrayInit
      where the iothreadids are being generated from the iothreads count since
      iothreadids were added after initial iothreads support.
      4f8e8887
  15. 15 10月, 2015 2 次提交
  16. 06 10月, 2015 1 次提交
  17. 05 10月, 2015 1 次提交
  18. 26 9月, 2015 1 次提交
    • J
      conf: Fix virtType check · 5e06a4f0
      John Ferlan 提交于
      Commit id '7383b8cc' changed virDomainDef 'virtType' to an enum, that
      caused a build failure on some archs due to comparing an unsigned value
      to < 0.  Adjust the fetch of 'type' to be into temporary 'int virtType'
      and then assign that virtType to the def->virtType
      5e06a4f0