1. 03 2月, 2016 2 次提交
  2. 28 1月, 2016 2 次提交
  3. 27 1月, 2016 1 次提交
    • P
      device: cleanup input device code · 36785c7e
      Pavel Hrdina 提交于
      The current code was a little bit odd.  At first we've removed all
      possible implicit input devices from domain definition to add them later
      back if there was any graphics device defined while parsing XML
      description.  That's not all, while formating domain definition to XML
      description we at first ignore any input devices with bus different to
      USB and VIRTIO and few lines later we add implicit input devices to XML.
      
      This seems to me as a lot of code for nothing.  This patch may look
      to be more complicated than original approach, but this is a preferred
      way to modify/add driver specific stuff only in those drivers and not
      deal with them in common parsing/formating functions.
      
      The update is to add those implicit input devices into config XML to
      follow the real HW configuration visible by guest OS.
      
      There was also inconsistence between our behavior and QEMU's in the way,
      that in QEMU there is no way how to disable those implicit input devices
      for x86 architecture and they are available always, even without graphics
      device.  This applies also to XEN hypervisor.  VZ driver already does its
      part by putting correct implicit devices into live XML.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      36785c7e
  4. 14 1月, 2016 1 次提交
  5. 12 1月, 2016 3 次提交
    • D
      conf: introduce 'autodeflate' attribute for memballoon device · 7bf3198d
      Dmitry Andreev 提交于
      Excessive memory balloon inflation can cause invocation of OOM-killer,
      when Linux is under severe memory pressure. QEMU memballoon device
      has a feature to release some memory at the last moment before some
      process will be get killed by OOM-killer.
      
      Introduce a new optional balloon device attribute 'autodeflate' to
      enable or disable this feature.
      7bf3198d
    • L
      qemu: define virDomainDevAddUSBController() · 8ebca27b
      Laine Stump 提交于
      This new function will add a single controller of the given model,
      except the case of ich9-usb-ehci1 (the master controller for a USB2
      controller set) in which case a set of related controllers will be
      added (EHCI1, UHCI1, UHCI2, UHCI3). These controllers will not be
      given PCI addresses, but should be otherwise ready to use.
      
      "-1" is allowed for controller model, and means "default for this
      machinetype". This matches the existing practice in
      qemuDomainDefPostParse(), which always adds the default controller
      with model = -1, and relies on the commandline builder to set a model
      (that is wrong, but will be fixed later).
      8ebca27b
    • L
      conf: add virDomainDefAddController() · ed64d92b
      Laine Stump 提交于
      We need a virDomainDefAddController() that doesn't check for an
      existing controller at the same index (since USB2 controllers must be
      added in sets of 4 that are all at the same index), so rather than
      duplicating the code in virDomainDefMaybeAddController(), split it
      into two functions, in the process eliminating existing duplicated
      code that loops through the controller list by calling
      virDomainControllerFind(), which does the same thing).
      ed64d92b
  6. 11 1月, 2016 1 次提交
  7. 09 1月, 2016 2 次提交
  8. 05 1月, 2016 2 次提交
  9. 24 12月, 2015 1 次提交
  10. 09 12月, 2015 12 次提交
  11. 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
  12. 30 11月, 2015 3 次提交
  13. 27 11月, 2015 3 次提交
  14. 25 11月, 2015 4 次提交
  15. 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
  16. 18 11月, 2015 1 次提交