1. 17 4月, 2020 4 次提交
  2. 16 4月, 2020 13 次提交
  3. 15 4月, 2020 12 次提交
  4. 14 4月, 2020 8 次提交
  5. 13 4月, 2020 3 次提交
    • L
      conf: during PCI hotplug, require that the controller support hotplug · 7118bdee
      Laine Stump 提交于
      Before this patch we would simply rely on QEMU failing to attach the
      device. Since we have a flag in the address set telling us which
      controllers support hotplug, we can fail the operation sooner.
      
      This also assures that when hotplugging with no provided PCI address,
      that we skip any controllers with hotplug='off', and attempt to assign
      the device to a controller that not only supports hotplug, but also
      has it enabled.
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      7118bdee
    • L
      conf: check HOTPLUGGABLE connect flag when validating a PCI address · a283189f
      Laine Stump 提交于
      The HOTPLUGGABLE flag is set for appropriates buses in a PCI address
      set, and thnis patch updates virDomainPCIAddressFlagsCompatible() to
      check the HOTPLUGGABLE flag when searching for a suitable bus/slot for
      a device. No devices request HOTPLUGGABLE though (yet), so there is no
      observable effect.
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      a283189f
    • L
      qemu/conf: set HOTPLUGGABLE connect flag during PCI address set init · aa15e925
      Laine Stump 提交于
      virDomainPCIAddressBusSetModel() is called for each PCI controller
      when building an address set prior to assiging PCI addresses to
      devices.
      
      This patch adds a new argument, allowHotplug, to that function that
      can be set to false if we know for certain that a particular
      controller won't support hotplug
      
      The most interesting case is in qemuDomainPCIAddressSetCreate(), where
      the config of each existing controller is available while building the
      address set, so we can appropriately set allowHotplug = false when the
      user has "hotplug='off'" in the config of a controller that normally
      would support hotplug. In all other cases, it is set to true or false
      in accordance with the capability of the controller model.
      
      So far we aren't doing anything with this bus flag in the address set.
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      aa15e925