1. 17 2月, 2016 12 次提交
  2. 16 2月, 2016 1 次提交
  3. 11 2月, 2016 3 次提交
    • J
      qemu: Split the command parsing routines into own module · d860b2f5
      John Ferlan 提交于
      Extract out the qemuParseCommandLine{String|Pid} into their own
      separate module - taking with it all the various static functions.
      
      Causes a ripple effect with a few other modules to include the
      new qemu_parse_command.h.
      
      Narrowed down the list of #include's in the split out module to
      those that are necessary for build.
      d860b2f5
    • J
      qemu: Check return status for virDomainGraphicsListenSetAddress · 336d4dac
      John Ferlan 提交于
      Recent refactors in the vbox code to check the return status for the
      function tipped Coverity's scales of justice for any functions that
      do not check status - such as this one.
      
      While I'm at it, since the call is essentially the same other than
      whether starting from val or val+1 when val[0] = '[', just adjust
      the val pointer by one and have one call instead of two.
      
      Additionally, the call to virDomainGraphicsListenGetAddress is redundant
      since it checking that the address field got filled.  It's a leftover
      from the strndup -> ListenSetAddress conversion (commit id 'ef79fb5b')
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      336d4dac
    • J
      qemu: Introduce qemuParseCommandLineVnc · 7b3adac4
      John Ferlan 提交于
      Refactor qemuParseCommandLine to pull out the "-vnc" argument parsing
      into its own helper function.  Modify the code to use "cleanup" instead
      of "error" and use the standard return processing to indicate success
      or failure by using ret
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      7b3adac4
  4. 08 2月, 2016 1 次提交
    • P
      conf: Move and optimize disk target duplicity checking · e84ab793
      Peter Krempa 提交于
      Move the logic from virDomainDiskDefDstDuplicates into
      virDomainDiskDefCheckDuplicateInfo so that we don't have to loop
      multiple times through the array of disks. Since the original function
      was called in qemuBuildDriveDevStr, it was actually called for every
      single disk which was quite wasteful.
      
      Additionally the target uniqueness check needed to be duplicated in
      the disk hotplug case, since the disk was inserted into the domain
      definition after the device string was formatted and thus
      virDomainDiskDefDstDuplicates didn't do anything in that case.
      e84ab793
  5. 01 2月, 2016 1 次提交
  6. 12 1月, 2016 4 次提交
    • D
      qemu: add support of optional 'autodeflate' attribute · 981c01d4
      Dmitry Andreev 提交于
      Autodeflate can be enabled/disabled for memballon device
      of model 'virtio'.
      
      xml:
      <devices>
        <memballoon model='virtio' autodeflate='on'/>
      </devices>
      
      qemu:
      qemu -device virtio-balloon-pci,...,deflate-on-oom=on
      
      Autodeflate cannot be enabled/disabled for running domain.
      981c01d4
    • L
      qemu: use enum when setting PCI "multi" value, not 0 or 1 · 47b83037
      Laine Stump 提交于
      Use the VIR_TRISTATE_SWITCH_* enums appropriately.
      
      No functional change.
      47b83037
    • L
      qemu: prefer 00:1D.x and 00:1A.x for USB2 controllers on Q35 · 163338ec
      Laine Stump 提交于
      The real Q35 machine puts the first USB controller set (EHCI+(UHCIx4))
      on bus 0 slot 0x1D, and the 2nd USB controller set on bus 0 slot 0x1A,
      so let's attempt to make the virtual machine match that for
      controllers with auto-assigned addresses when possible.
      
      Three test cases were added to assure that the proper addresses are
      assigned - one with a single set of unaddressed USB controllers, one
      with 3 (to grab both preferred slots plus one more), and one with the
      order of the controller definitions reordered, to assure that the
      auto-assignment isn't mixed up by order.
      163338ec
    • L
      qemu: don't assume slot 0 is unused/reserved. · 7dbb5fce
      Laine Stump 提交于
      When qemuAssignDevicePCISlots() is looking for companion controllers
      for a USB controller that has no PCI address specified, it initializes
      a virDevicePCIAddress to 0000:00:00.0, fills it in with the
      companion's address if one is found, then checks whether or not there
      was a find based on slot == 0. On a system with a single PCI bus, that
      is a valid way to check, because slot 0 is reserved, but on most other
      PCI buses, slot 0 is not reserved, and is open for use by any
      device. This patch adds a separate bool that is set when a companion
      is found rather than relying on the faulty information provided with
      "slot == 0".
      7dbb5fce
  7. 11 1月, 2016 2 次提交
    • C
      qemu: command: wire up usage of q35/ich9 disable s3/s4 · fde937bd
      Cole Robinson 提交于
      If the q35 specific disable s3/s4 setting isn't supported, fallback to
      specifying the PIIX setting, which is the previous behavior. It doesn't
      have any effect, but qemu will just warn about it rather than error:
      
        qemu-system-x86_64: Warning: global PIIX4_PM.disable_s3=1 not used
        qemu-system-x86_64: Warning: global PIIX4_PM.disable_s4=1 not used
      
      Since it doesn't error, I don't think we should either, since there
      may be configs in the wild that already have q35 + disable_s3/4 (via
      virt-manager)
      fde937bd
    • C
      qemu: caps: Rename CAPS_DISABLE_S[34] to CAPS_PIIX_DISABLE_S[34] · 5900356e
      Cole Robinson 提交于
      These settings are specific to PIIX, so clarify it
      5900356e
  8. 10 1月, 2016 1 次提交
    • M
      Fix USB model defaults for ppc64 · 8156493d
      Martin Kletzander 提交于
      The condition was checking for UHCI (and OHCI for ppc64) availability so
      that it can specify the proper device instead of legacy usb.  However,
      for ppc64, we don't need to check both OHCI and UHCI, but only OHCI as
      that is the legacy default.  The condition is so big that it was just a
      matter of time when someone will make a mistake there, so let's use more
      lines so that it is visible what the condition checks for.
      
      This fixes usage of -device instead of -usb for ppc64 that supports
      pci-usb-ohci and does not support piix3-usb-uhci.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1297020Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      8156493d
  9. 07 1月, 2016 1 次提交
  10. 05 1月, 2016 2 次提交
    • M
      qemu: Specify format= iff disk source is not empty · d7db33bf
      Michal Privoznik 提交于
      Just recently, qemu forbade specifying format for sourceless
      disks (qemu commit 39c4ae941ed992a3bb5). It kind of makes sense.
      If there's no file to open, why specify its format. Anyway, I
      have a domain like this:
      
          <disk type='file' device='cdrom'>
            <driver name='qemu' type='raw'/>
            <target dev='hda' bus='ide'/>
            <readonly/>
            <address type='drive' controller='0' bus='0' target='0' unit='0'/>
          </disk>
      
      and obviously I am unable to start it. Therefore, a fix on our
      side is needed too.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      d7db33bf
    • D
      Use tristate constants for new 'append' field · 8746d95f
      Dmitry Mishin 提交于
      For completeness, use the VIR_TRISTATE_SWITCH_ABSENT for data.file.append
      comparisons. Commit ids '70ffa02f' and '53a15aed' just went with the non
      zero comparison.
      8746d95f
  11. 24 12月, 2015 1 次提交
  12. 17 12月, 2015 1 次提交
  13. 15 12月, 2015 1 次提交
    • L
      qemu: add bootindex option to hostdev network interface commandline · a8e3247e
      Laine Stump 提交于
      when appropriate, of course. If the config for a domain specifies boot
      order with <boot dev='blah'/> elements, e.g.:
      
           <os>
             ...
             <boot dev='hd'/>
             <boot dev='network'/>
           </os>
      
      Then the first disk device in the config will have ",bootindex=1"
      appended to its qemu commandline -device options, and the first (and
      *only* the first) network interface device will get ",bootindex=2".
      
      However, if the first network interface device is a "hostdev" device
      (an SRIOV Virtual Function (VF) being assigned to the domain with
      vfio), then the bootindex option will *not* be appended. This happens
      because the bootindex=n option corresponding to the order of "<boot
      dev='network'/>" is added to the -device for the first network device
      when network device commandline args are constructed, but if it's a
      hostdev network device, its commandline arg is instead constructed in
      the loop for hostdevs.
      
      This patch fixes that omission by noticing (in bootHostdevNet) if the
      first network device was a hostdev, and if so passing on the proper
      bootindex to the commandline generator for hostdev devices - the
      result is that ",bootindex=2" will be properly appended to the first
      "network" device in the config even if it is really a hostdev
      (including if it is assigned from a libvirt network pool). (note that
      this is only the case if there is no <bootmenu enabled='yes'/> element
      in the config ("-boot menu-on" in qemu) , since the two are mutually
      exclusive - when the bootmenu is enabled, the individual per-device
      bootindex options can't be used by qemu, and we revert to using "-boot
      order=xyz" instead).
      
      If a greater level of control over boot order is desired (e.g., more
      than one network device should be tried, or a network device other
      than the first one encountered in the config), then <boot
      dev='network'/> in the <os> element should not be used; instead, the
      individual device elements in the config should be given a "<boot
      order='n'/>
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1278421
      a8e3247e
  14. 11 12月, 2015 3 次提交
  15. 09 12月, 2015 5 次提交
  16. 30 11月, 2015 1 次提交