1. 13 3月, 2018 1 次提交
  2. 09 3月, 2018 2 次提交
  3. 17 2月, 2018 2 次提交
  4. 13 2月, 2018 3 次提交
  5. 29 1月, 2018 1 次提交
  6. 26 1月, 2018 1 次提交
  7. 25 1月, 2018 1 次提交
  8. 21 1月, 2018 1 次提交
    • L
      qemu: assign correct type of PCI address for vhost-scsi when using pcie-root · 18c24bc6
      Laine Stump 提交于
      Commit 10c73bf1 fixed a bug that I had introduced back in commit
      70249927 - if a vhost-scsi device had no manually assigned PCI
      address, one wouldn't be assigned automatically. There was a slight
      problem with the logic of the fix though - in the case of domains with
      pcie-root (e.g. those with a q35 machinetype),
      qemuDomainDeviceCalculatePCIConnectFlags() will attempt to determine
      if the host-side PCI device is Express or legacy by examining sysfs
      based on the host-side PCI address stored in
      hostdev->source.subsys.u.pci.addr, but that part of the union is only
      valid for PCI hostdevs, *not* for SCSI hostdevs. So we end up trying
      to read sysfs for some probably-non-existent device, which fails, and
      the function virPCIDeviceIsPCIExpress() returns failure (-1).
      
      By coincidence, the return value is being examined as a boolean, and
      since -1 is true, we still end up assigning the vhost-scsi device to
      an Express slot, but that is just by chance (and could fail in the
      case that the gibberish in the "hostside PCI address" was the address
      of a real device that happened to be legacy PCI).
      
      Since (according to Paolo Bonzini) vhost-scsi devices appear just like
      virtio-scsi devices in the guest, they should follow the same rules as
      virtio devices when deciding whether they should be placed in an
      Express or a legacy slot. That's accomplished in this patch by
      returning early with virtioFlags, rather than erroneously using
      hostdev->source.subsys.u.pci.addr. It also adds a test case for PCIe
      to assure it doesn't get broken in the future.
      18c24bc6
  9. 06 1月, 2018 1 次提交
  10. 03 1月, 2018 1 次提交
  11. 02 1月, 2018 1 次提交
  12. 14 12月, 2017 1 次提交
    • J
      qemu: Need to assign PCI address to vhost-scsi · 10c73bf1
      John Ferlan 提交于
      Commit id '70249927' neglected to cover this case because the test
      had taken the "shortcut" to already add the <address>; however, when
      the PCI address assignment code was adjusted by commit id '70249927'
      the vhost-scsi (VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI_HOST) wasn't
      covered thus returning a 0 for pciFlags. So I altered the tests too
      to make sure it doesn't happen again.
      
      Previously the qemuxml2xmloutdata was a softlink to the source
      qemuxml2argvdata, so I unlinked and recreated the output file to
      force generation of the adddress. Without the test changes, an
      address generation returns:
      
          libvirt: Domain Config error : internal error: Cannot automatically
          add a new PCI bus for a device with connect flags 00
      
      if an address was supplied in the test, a restart of libvirtd or
      edit of a guest would display the following opaque message:
      
          warning : qemuDomainCollectPCIAddress:1237 :
          qemuDomainDeviceCalculatePCIConnectFlags() thinks that the device
           with PCI address 0000:00:09.0 should not have a PCI address
      
      where the address is related to the guest PCI address provided.
      10c73bf1
  13. 07 12月, 2017 1 次提交
    • L
      tests: Remove use of IDE disk for pseries floppy test · bdd15d47
      Lin Ma 提交于
      Adding an IDE controller for a machinetype that has no built-in IDE
      controller, libvirt will log an error. Currently the machinetype list
      which returns by qemuDomainMachineHasBuiltinIDE only includes 440fx,
      malta, sun4u and g3beige.
      
      Remove the disk and the .args file since the expectation is the test
      will fail in qemuxml2argvtest because floppy is not supported on pseries
      and thus no disk is necessary and no .args file would be created to
      compare against.
      Signed-off-by: NLin Ma <lma@suse.com>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      bdd15d47
  14. 05 12月, 2017 2 次提交
    • M
      tests: Drop qemuxml2argv- prefix for qemuxml2argv test cases · ad244064
      Michal Privoznik 提交于
      Similarly to the previous commit, rename .args files.
      
      The files were renamed using the following commands. From
      qemuxml2argvdata:
      
        for i in qemuxml2argv-*.args; do mv $i ${i#qemuxml2argv-}; done
      
      and then (to fix broken symlinks) from qemuxml2argvdata and
      qemuxml2xmloutdata:
      
        for i in $(find . -xtype l); do \
            ln -sf $(readlink $i | sed 's/qemuxml2argv-//') $i;
        done
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      ad244064
    • M
      tests: Drop qemuxml2argv- prefix for qemuxml2argv-*.xml test cases · 2e02f2b2
      Michal Privoznik 提交于
      These XMLs live in a separate directory, there's no need for them
      to have a special prefix in addition. It also doesn't play nicely
      with ':e' completion in Vim, finding proper file based on
      qemuxml2argvtest.c is also needlessly complicated.
      
      The files were renamed using the following commands. From
      qemuxml2argvdata:
      
        for i in qemuxml2argv-*.xml; do mv $i ${i#qemuxml2argv-}; done
      
      and then (to fix broken symlinks) from qemuxml2argvdata and
      qemuxml2xmloutdata:
      
        for i in $(find . -xtype l); do \
            ln -sf $(readlink $i | sed 's/qemuxml2argv-//') $i;
        done
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2e02f2b2
  15. 28 11月, 2017 7 次提交
  16. 25 11月, 2017 1 次提交
    • J
      qemu: Use secret objects to pass iSCSI passwords · c5c96545
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1425757
      
      The blockdev-add code provides a mechanism to sanely provide user
      and password-secret arguments for iscsi without placing them on the
      command line to be viewable by a 'ps -ef' type command or needing
      to create separate -iscsi devices for each disk/volume found.
      
      So modify the iSCSI command line building to check for the presence
      of the capability in order properly setup and use the domain master
      secret object to encrypt the password in a secret object and alter
      the parameters for the command line to utilize.
      
      Modify the xml2argvtest to exhibit the syntax for both disk and
      hostdev configurations.
      c5c96545
  17. 24 11月, 2017 3 次提交
  18. 23 11月, 2017 4 次提交
  19. 20 11月, 2017 2 次提交
  20. 18 11月, 2017 1 次提交
    • M
      qemu: add vmcoreinfo support · 7e4177a3
      Marc-André Lureau 提交于
      Starting from qemu 2.11, the `-device vmcoreinfo` will create a fw_cfg
      entry for a guest to store dump details, necessary to process kernel
      dump with KASLR enabled and providing additional kernel details.
      
      In essence, it is similar to -fw_cfg name=etc/vmcoreinfo,file=X but in
      this case it is not backed by a file, but collected by QEMU itself.
      
      Since the device is a singleton and shouldn't use additional hardware
      resources, it is presented as a <feature> element in the libvirt
      domain XML.
      
      The device is arm/x86 only for now (targets that support fw_cfg+dma).
      
      Related to:
      https://bugzilla.redhat.com/show_bug.cgi?id=1395248Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      7e4177a3
  21. 14 11月, 2017 1 次提交
  22. 10 11月, 2017 1 次提交
  23. 08 11月, 2017 1 次提交