1. 05 12月, 2017 1 次提交
    • 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
  2. 01 12月, 2017 1 次提交
    • P
      qemu: domain: Fix backing store terminator for non-backing local files · adcc31bb
      Peter Krempa 提交于
      Raw local files do not pass through the backing store detector and thus
      the code did not allocate the required backing store terminator for
      them. Previously the terminating element would be formatted into the XML
      since the default values used for the metadata allowed that. This is a
      regression since a693fdba which was not detected in the review.
      
      This patch also reverts all the changes in the test files.
      adcc31bb
  3. 30 11月, 2017 4 次提交
  4. 28 11月, 2017 11 次提交
  5. 25 11月, 2017 3 次提交
    • 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
    • J
      qemu: Get capabilities to use iscsi password-secret argument · 4f44b8b5
      John Ferlan 提交于
      Detect the capability via the query-qmp-schema for blockdev-add
      to find the 'password-secret' parameter that will allow the iSCSI
      code to use the master secret object to encrypt the secret for an
      and only need to provide the object id of the secret on the command
      line thus obsfuscating the passphrase.
      4f44b8b5
    • J
      qemu: Remove private hostdev · 1d9108cf
      John Ferlan 提交于
      Since it's not longer used to shuttle the @secinfo, let's remove
      the private hostdev completely.
      1d9108cf
  6. 24 11月, 2017 6 次提交
  7. 23 11月, 2017 6 次提交
  8. 22 11月, 2017 1 次提交
    • M
      build: Fix make dist · 190febdc
      Martin Kletzander 提交于
      Since we don't pack symlinks we cannot have recursive loops in them.  Since we
      need one directory to be in tests/vircaps2xmldata/linux-caches/, instead of
      creating a symlink, just move the files in that directory and adjust tests.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      190febdc
  9. 20 11月, 2017 6 次提交
  10. 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