1. 15 4月, 2016 1 次提交
  2. 14 4月, 2016 3 次提交
  3. 13 4月, 2016 5 次提交
    • J
      qemuxml2argvtest: do not mock virCommand · cbbd74aa
      Ján Tomko 提交于
      Mock virNetDevRunEthernetScript instead.
      
      This restores the VIR_TEST_REGENERATE_OUTPUT functionality.
      cbbd74aa
    • J
      qemu: assign addresses before aliases · 786bc251
      Ján Tomko 提交于
      The address assigning code might add new pci bridges.
      We need them to have an alias when building the command line.
      
      In real word usage, this is not a problem because all the code
      paths already call qemuDomainAssignAddresses. However moving
      this call lets us remove one extra call from qemuxml2argvtest.
      786bc251
    • J
      qemuxml2argvtest: drop FLAG_EXPECT_ERROR · 1922d2f1
      Ján Tomko 提交于
      It is only used for failed address allocation
      Since we already have FLAG_EXPECT_FAILURE, use that instead.
      
      Also unify the output to print the whole log buffer instead
      of just the last error message.
      1922d2f1
    • J
      tests: clean up includes · f36c9f7b
      Ján Tomko 提交于
      After removing qemuBuildCommandLineCallbacks, testutilsqemu.h does not
      need to include qemu_command.h.
      
      Include just qemu_conf.h here and qemu_domain_address.h in files that
      need it.
      f36c9f7b
    • J
      drop qemuBuildCommandLineCallbacks · 0da965c5
      Ján Tomko 提交于
      Essentially revert commit 3a6204cb which added these to allow the test
      suite to pass without depending on the host system state.
      
      Since commit 4b527c1a we already mock virSCSIDeviceGetSgName, so these
      callbacks are useless.
      0da965c5
  4. 12 4月, 2016 2 次提交
  5. 11 4月, 2016 1 次提交
  6. 08 4月, 2016 3 次提交
  7. 07 4月, 2016 2 次提交
    • J
      qemu: Introduce qemuBuildMasterKeyCommandLine · d8a8cae3
      John Ferlan 提交于
      If the -object secret capability exists, then get the path to the
      masterKey file and provide that to qemu. Checking for the existence
      of the file before passing to qemu could be done, but causes issues
      in mock test environment.
      
      Since the qemuDomainObjPrivate is not available when building the
      command line, the qemuBuildHasMasterKey API will have to suffice
      as the primary arbiter for whether the capability exists in order
      to find/return the path to the master key for usage.
      
      Created the qemuDomainGetMasterKeyAlias API which will be used by
      later patches to define the 'keyid' (eg, masterKey) to be used by
      other secrets to provide the id to qemu for the master key.
      d8a8cae3
    • J
      qemu: Add capability bit for qemu secret object · d125685a
      John Ferlan 提交于
      Add a capability bit for the qemu secret object.
      
      Adjust the 2.6.0-1 caps/replies to add the secret object. For the
      .replies it's take from the '{"execute":"qom-list-types"}' output.
      d125685a
  8. 04 4月, 2016 1 次提交
    • M
      nodedev: Fix parsing of generated XMLs · 17a94ba7
      Martin Kletzander 提交于
      Commit d77ffb68 added not only reporting of the PCI header type, but
      also parsing of that information.  However, because there was no parsing
      done for the other sub-PCI capabilities, if there was any other
      capability then a valid header type name (like phys_function or
      virt_functions) the parsing would fail.  This prevented passing node
      device XMLs that we generated into our own functions when dealing with,
      e.g. with SRIOV cards.
      
      Instead of reworking the whole parsing, just fix this one occurence and
      remove a test for it for the time being.  Future patches will deal with
      the rest.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      17a94ba7
  9. 30 3月, 2016 2 次提交
    • R
      nss: FreeBSD support · 45408cd8
      Roman Bogorodskiy 提交于
       * tools/nss/libvirt_nss.[ch]: add BSD-comptabile wrappers and
         register via the nss_module_register() interface
       * m4/virt-nss.m4: add checks if we're building NSS for FreeBSD
       * tools/Makefile.am: handle target library name differences, as
         Linux needs libnss_libvirt.so.2 and FreeBSD needs
         nss_libvirt.so.1. Also, different syms files have to be used
         as Linux needs to export all the methods while FreeBSD
         only needs to have nss_module_register()
       * tests/nsstest.c, tests/nssmock.c: s/__linux__/NSS/
       * tests/nssmock.c: pass int instead of mode_t to va_arg() to please
         gcc 4.8
       * libvirt_nss_bsd.syms: FreeBSD syms file
      45408cd8
    • P
      util: bitmap: Introduce self-expanding bitmap APIs · 917426c8
      Peter Krempa 提交于
      In some cases it's impractical to use the regular APIs as the bitmap
      size needs to be pre-declared. These new APIs allow to use bitmaps that
      self expand.
      
      The new code adds a property to the bitmap to track the allocation of
      memory so that VIR_RESIZE_N can be used.
      917426c8
  10. 29 3月, 2016 6 次提交
    • P
      vsh: Tweak error message for scaled integers · b2c9d77b
      Peter Krempa 提交于
      It was too similar to the non-scaled alternative.
      
      before:
      error: Numeric value 'abc' for <size> option is malformed or out of range
      after:
      error: Scaled numeric value 'abc' for <size> option is malformed or out of range
      b2c9d77b
    • Q
      perf: add new xml element · afe833e9
      Qiaowei Ren 提交于
      This patch adds new xml element, and so we can have the option of
      also having perf events enabled immediately at startup.
      Signed-off-by: NQiaowei Ren <qiaowei.ren@intel.com>
      Message-id: 1459171833-26416-6-git-send-email-qiaowei.ren@intel.com
      afe833e9
    • C
      tests: virtnettlscontexttest: Use virGetLastErrorMessage() · 49022317
      Cole Robinson 提交于
      Use virGetLastErrorMessage() rather than open code it
      49022317
    • M
      conf: qemu: Add support for more HyperV Enlightenment features · 7068b56c
      Maxim Nestratov 提交于
      This patch adds support for "vpindex", "runtime", "synic",
      "stimer", and "vendor_id" features available in qemu 2.5+.
      
      - When Hyper-V "vpindex" is on, guest can use MSR HV_X64_MSR_VP_INDEX
      to get virtual processor ID.
      
      - Hyper-V "runtime" enlightement feature allows to use MSR
      HV_X64_MSR_VP_RUNTIME to get the time the virtual processor consumes
      running guest code, as well as the time the hypervisor spends running
      code on behalf of that guest.
      
      - Hyper-V "synic" stands for Synthetic Interrupt Controller, which is
      lapic extension controlled via MSRs.
      
      - Hyper-V "stimer" switches on Hyper-V SynIC timers MSR's support.
      Guest can setup and use fired by host events (SynIC interrupt and
      appropriate timer expiration message) as guest clock events
      
      - Hyper-V "reset" allows guest to reset VM.
      
      - Hyper-V "vendor_id" exposes hypervisor vendor id to guest.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      7068b56c
    • A
      tests: storagepoolxml2xmltest: Enable pool-rbd · 289f37ea
      Anatole Denis 提交于
      This test was commited 4 years ago, but was never enabled in
      storagepoolxml2xmltest.c. This patch reactivates it, conditionnaly on RBD
      storage support being enabled
      289f37ea
    • A
      tests: storagepoolxml2xmltest: Fix pool-rbd test · 47847451
      Anatole Denis 提交于
      This test failed for two reasons:
      * The uuid was missing from the input file
      * The output file had the <name> in a different place from the actual output
      47847451
  11. 25 3月, 2016 4 次提交
  12. 24 3月, 2016 3 次提交
  13. 23 3月, 2016 2 次提交
    • M
      qemuxml2argv: Mock virSCSIDeviceGetSgName · 4b527c1a
      Michal Privoznik 提交于
      When constructing SCSI hostdev command line for qemu, the
      /sys/bus/scsi/devices/... dir is scanned. Unfortunately, even in
      the tests. This is needed to determine the name of SCSI device to
      passthrough to qemu, because in the domain XML we were given its
      address instead. Anyway, we should not be touching live system
      data in our test suite as it produced unpredictable results. The
      test is regressing from 1e9a0837 on.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4b527c1a
    • A
      tests: hostdev: Add more tests · ee07c980
      Andrea Bolognani 提交于
      Ensure the code behaves properly even for situations that were not
      being considered before, such as simply detaching devices from the
      host without attaching them to a guest and attaching devices as
      managed even though they had already been manually detached from
      the host.
      ee07c980
  14. 22 3月, 2016 5 次提交