1. 03 2月, 2018 7 次提交
  2. 02 2月, 2018 1 次提交
  3. 01 2月, 2018 6 次提交
    • J
      qemu: Update qemuDomainFindSCSIControllerModel return · 5b5bff35
      John Ferlan 提交于
      Now that the controller model is updated during post parse callback,
      this code no longer needs to fetch the model based on the capabilities
      and can just return the model directly if the controller is found.
      
      Removal of @qemuCaps cascades through various callers which are now
      updated to not pass the capabilities.
      5b5bff35
    • J
      qemu: Reduce need to call qemuDomainGetSCSIControllerModel · de8fac5f
      John Ferlan 提交于
      Now that post parse processing handles setting the SCSI controller
      model, there's no need to call qemuDomainGetSCSIControllerModel to
      get the "default controller" when building the command line controller
      string or when assigning the spaprvio address since the controller
      model value will already be filled in.
      de8fac5f
    • J
      qemu: Introduce qemuDomainGetSCSIControllerModel · fadfb4f9
      John Ferlan 提交于
      Rename and rework qemuDomainSetSCSIControllerModel since we're
      really not setting the SCSI controller model. Instead the code
      is either returning the existing SCSI controller model value, the
      default value based on the capabilities, or -1 with the error set.
      fadfb4f9
    • J
      qemu: Introduce qemuDomainFindSCSIControllerModel · 6ae6ffd8
      John Ferlan 提交于
      Rather than repeat multiple steps in order to find the SCSI
      controller model, let's combine them into one helper that will
      return either the model from the definition or the default
      model based on the capabilities.
      
      This patch adds an extra check/error that the controller
      that's being found actually exists. This just clarifies that
      the error was because the controller doesn't exist rather
      than the more generic error that we were unable to determine
      the model from qemuDomainSetSCSIControllerModel when a -1
      was passed in and the capabilities were unable to find one.
      6ae6ffd8
    • J
      conf: Rework and rename virDomainDeviceFindControllerModel · 932862b8
      John Ferlan 提交于
      As it turns out virDomainDeviceFindControllerModel was only ever
      called for SCSI controllers using VIR_DOMAIN_CONTROLLER_TYPE_SCSI
      as a parameter.
      
      So rename to virDomainDeviceFindSCSIController and rather than
      return a model, let's return a virDomainControllerDefPtr to let
      the caller reference whatever it wants.
      932862b8
    • J
      qemu: Split qemuDomainSetSCSIControllerModel · e37540f4
      John Ferlan 提交于
      Rather than one function serving two purposes, let's split out the
      else condition which is checking whether the model can be used
      during command line building based on the capabilities.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      e37540f4
  4. 25 1月, 2018 1 次提交
  5. 06 1月, 2018 1 次提交
  6. 15 12月, 2017 1 次提交
    • L
      qemu: log error on attempts to set filterref on an OVS-connected interface · 16a9a281
      Laine Stump 提交于
      ebtables/iptables processing is skipped for any interface connected to
      Open vSwitch (they have their own packet filtering), likewise for
      midonet (according to
      http://blog.midokura.com/2016/04/midonet-rule-chains), but libvirt
      would allow adding a <filterref> to interfaces connected in these
      ways, so the user might mistakenly believe they were being protected.
      
      This patch checks for a non-NULL <virtualport> element for an
      interface (or its network) and logs an error if <virtualport> and
      <filterref> are both present. This could cause some previously working
      domains to no longer start, but that's really the whole point of this
      patch - to warn people that their filterref isn't protecting them as
      they might have thought.
      
      I don't bother checking this during post-parse validation, because
      such a check would be incomplete - it's possible that a network would
      have a <virtualport> that would be applied to an interface, and you
      can't know that until the domain is started.
      
      Resolves: https://bugzilla.redhat.com/1502754
      16a9a281
  7. 10 12月, 2017 3 次提交
    • L
      qemu: Introduce qemuDomainDeviceDefValidateControllerIDE · 07adbd4b
      Lin Ma 提交于
      Move the IDE controller check from command line building to
      controller def validation. Also explicitly include the avoidance
      check for the implicit IDE controller from qemuBuildSkipController.
      
      Cause the IDE case for command line building to generate a
      failure if called to add an IDE since that shouldn't happen
      if the Validate code did the right thing.
      07adbd4b
    • J
      qemu: Move CCW S390 Address check to controller def validate · 29d8c17b
      John Ferlan 提交于
      Move the call to qemuDomainCheckCCWS390AddressSupport from
      qemuBuildControllerDevStr to qemuDomainDeviceDefValidateController.
      
      This means we will get the qemuCaps from the driver opaque
      variable passed to qemuDomainDeviceDefValidate.
      29d8c17b
    • J
      qemu: Introduce qemuBuildSkipController · ac0fb44a
      John Ferlan 提交于
      Move the non USB implicit controller checks into their own
      helper to reduce the cruft in qemuBuildControllerDevCommandLine.
      ac0fb44a
  8. 07 12月, 2017 1 次提交
  9. 30 11月, 2017 1 次提交
    • J
      qemu: prefer the PCI bus alias from status XML · dacfc6b1
      Ján Tomko 提交于
      For some corner cases, virQEMUCapsHasPCIMultiBus depends on the QEMU
      version, which is by design not stored in the status XML and therefore
      it cannot be fixed for all existing running domains.
      
      Prefer the controller alias read from the status XML when formatting
      PCI addresses and only fall back to using virQEMUCapsHasPCIMultiBus
      if the alias is a user alias.
      
      This fixes hotplug after daemon restart for domains not using user
      aliases.
      
      Partially reverts commit 937f3195.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1518148
      dacfc6b1
  10. 28 11月, 2017 10 次提交
  11. 25 11月, 2017 4 次提交
  12. 24 11月, 2017 3 次提交
    • P
      qemu: command: Properly format disk 'debug' attribute · 1455a91b
      Peter Krempa 提交于
      Move the setup of the disk attribute to the disk source prepare function
      which will allow proper usage with JSON props and move the fallback
      (legacy) generating code into the block which is executed with legacy
      options.
      
      As a side-effect of this change we can clean up propagation of 'cfg'
      into the command generator.
      
      Also it's nice to see that the test output is the same even when the
      value is generated in a different place.
      1455a91b
    • P
      qemu: command: Inject password-secret only when not using JSON props · 6197d572
      Peter Krempa 提交于
      The 'file.password-secret' injection should be used only if we are using
      the old formatter. When formatting the source string from the JSON
      properties, the property should be added there.
      
      Also drop the comment which refers to stuff that will not be used in
      libvirt since -blockdev is the way to go.
      6197d572
    • P
      qemu: command: Mark <shared/> disks as such in qemu · 28907b00
      Peter Krempa 提交于
      Qemu has now an internal mechanism for locking images to fix specific
      cases of disk corruption. This requires libvirt to mark the image as
      shared so that qemu lifts certain restrictions.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1378242
      28907b00
  13. 23 11月, 2017 1 次提交