1. 10 8月, 2015 2 次提交
    • L
      qemu: add capabilities bit for device x3130-upstream · 4cde7588
      Laine Stump 提交于
      This is the upstream part of a PCIe switch. It connects to a PCIe port
      (but not PCI) on the upstream side, and can have up to 31
      xio3130-downstream controllers (but no other types of devices)
      connected to its downstream side.
      
      This device will be used to implement the "pcie-switch-upstream-port"
      model of pci controller.
      4cde7588
    • L
      qemu: add capabilities bit for device ioh3420 · 408b100a
      Laine Stump 提交于
      This is a PCIE "root port". It connects only to a port of the
      integrated pcie.0 bus of a Q35 machine (can't be hotplugged), and
      provides a single PCIe port that can have PCI or PCIe devices
      hotplugged into it.
      
      This device will be used to implement the "pcie-root-port" model of
      pci controller.
      408b100a
  2. 06 8月, 2015 2 次提交
  3. 04 8月, 2015 1 次提交
  4. 24 7月, 2015 1 次提交
  5. 20 7月, 2015 1 次提交
  6. 14 7月, 2015 2 次提交
    • J
      nodeinfo: Add sysfs_prefix to nodeCapsInitNUMA · b97b3048
      John Ferlan 提交于
      Add the sysfs_prefix argument to the call to allow for setting the
      path for tests to something other than SYSFS_CPU_PATH which is a
      derivative of SYSFS_SYSTEM_PATH
      
      Use cpupath for nodeCapsInitNUMAFake and remove SYSFS_CPU_PATH
      b97b3048
    • J
      nodeinfo: Add sysfs_prefix to nodeGetInfo · 29e4f224
      John Ferlan 提交于
      Add the sysfs_prefix argument to the call to allow for setting the
      path for tests to something other than SYSFS_SYSTEM_PATH.
      29e4f224
  7. 10 7月, 2015 1 次提交
  8. 30 6月, 2015 1 次提交
  9. 22 6月, 2015 3 次提交
  10. 18 6月, 2015 1 次提交
    • J
      qemu: Report all supported machine types in capabilities · beca509e
      Jiri Denemark 提交于
      Some machine types are only reported as canonical names for other
      machine types, which make it a bit harder to find what machine types are
      supported by a specific QEMU binary. Ideally, one would just use
      /capabilities/guest/arch[@name='...']/machine/text() XPath to get a list
      of all supported machine types, but it doesn't work right now.
      
      For example, we report
      
          <machine canonical='pc-i440fx-2.3' maxCpus='255'>pc</machine>
      
      in guest capabilities, but the corresponding
      
          <machine maxCpus='255'>pc-i440fx-2.3</machine>
      
      is missing.
      
      This is a result of QMP probing. With "-machine ?" parsing QEMU sends
      us two lines:
      
      pc                   Standard PC (i440FX + PIIX, 1996) (alias of pc-i440fx-2.3)
      pc-i440fx-2.3        Standard PC (i440FX + PIIX, 1996) (default)
      
      while query-machines QMP command reports both in the same entry:
      
      {"name": "pc-i440fx-2.3", "is-default": true, "cpu-max": 255, "alias": "pc"}
      
      Let's make sure we always report separate <machine/> for both the
      canonical name and its alias and using the canonical name as the default
      machine type (i.e., inserting it before its alias) in case is-default is
      true.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1229666Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      beca509e
  11. 15 6月, 2015 1 次提交
  12. 12 6月, 2015 1 次提交
  13. 11 6月, 2015 1 次提交
  14. 09 6月, 2015 3 次提交
  15. 26 5月, 2015 2 次提交
    • J
      qemu: Add libvirt version check to refresh capabilities algorithm · a14eff38
      John Ferlan 提交于
      Rather than an algorithm based solely on libvirtd ctime to refresh the
      capabilities add the element of the libvirt build version into the equation.
      Since that version wouldn't be there prior to this code being run - don't
      fail on reading the capabilities if not found. In this case, the cache
      will always be rebuilt when a new libvirt version is installed.
      a14eff38
    • J
      qemu: Force capabilities cache refresh if libvirtd date is different · 0b4211f9
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1195882
      
      Original commit id 'cbde3589' indicates that the cache file would be
      discarded if either the QEMU binary or libvirtd 'ctime' changes; however,
      the code only discarded if the QEMU binary time didn't match or if the
      new libvirtd ctime was later than what created the cache file.
      
      Since many factors come into play with 'ctime' adjustments (including
      perhaps turning back the hands of time), change the logic to also force
      a refresh if the ctime of libvirt is different than what's in the cache.
      0b4211f9
  16. 21 5月, 2015 1 次提交
  17. 18 5月, 2015 1 次提交
  18. 06 5月, 2015 1 次提交
    • J
      qemu: Resolve Coverity FORWARD_NULL · 3e4ce359
      John Ferlan 提交于
      Coverity complains over the [n]values pairing in virQEMUCapsFreeStringList
      and rather than make a bunch if "if values" checks prior to calling, by
      just adding the values check inside the free function we avoid the chance
      that somehow nvalues is > 0, while values == NULL
      3e4ce359
  19. 04 5月, 2015 2 次提交
  20. 24 4月, 2015 1 次提交
  21. 21 4月, 2015 4 次提交
  22. 13 4月, 2015 1 次提交
  23. 23 3月, 2015 1 次提交
  24. 13 3月, 2015 1 次提交
    • J
      Introduce virBitmapIsBitSet · 22fd3ac3
      Ján Tomko 提交于
      A helper that never returns an error and treats bits out of bitmap range
      as false.
      
      Use it everywhere we use ignore_value on virBitmapGetBit, or loop over
      the bitmap size.
      22fd3ac3
  25. 11 3月, 2015 1 次提交
    • M
      virQEMUCapsInitQMP: Don't dispose locked @vm · 954427c3
      Michal Privoznik 提交于
      When creating qemu capabilities, a dummy virDomainObj is created just
      because our monitor code expects that. However, the object is created
      locked already. Then, under cleanup label, we simply unref the object
      which results in whole domain object to be disposed. The object lock
      is destroyed subsequently, but hey - it's still locked:
      
      ==24845== Thread #14's call to pthread_mutex_destroy failed
      ==24845==    with error code 16 (EBUSY: Device or resource busy)
      ==24845==    at 0x4C3024E: pthread_mutex_destroy (in /usr/lib64/valgrind/vgpreload_helgrind-amd64-linux.so)
      ==24845==    by 0x531F72E: virMutexDestroy (virthread.c:83)
      ==24845==    by 0x5302977: virObjectLockableDispose (virobject.c:237)
      ==24845==    by 0x5302A89: virObjectUnref (virobject.c:265)
      ==24845==    by 0x1DD37866: virQEMUCapsInitQMP (qemu_capabilities.c:3397)
      ==24845==    by 0x1DD37CC6: virQEMUCapsNewForBinary (qemu_capabilities.c:3481)
      ==24845==    by 0x1DD381E2: virQEMUCapsCacheLookup (qemu_capabilities.c:3609)
      ==24845==    by 0x1DD30F8A: virQEMUCapsInitGuest (qemu_capabilities.c:744)
      ==24845==    by 0x1DD31889: virQEMUCapsInit (qemu_capabilities.c:1020)
      ==24845==    by 0x1DD7DD36: virQEMUDriverCreateCapabilities (qemu_conf.c:888)
      ==24845==    by 0x1DDC57C0: qemuStateInitialize (qemu_driver.c:803)
      ==24845==    by 0x53DC743: virStateInitialize (libvirt.c:777)
      ==24845==
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      954427c3
  26. 21 2月, 2015 1 次提交
  27. 20 2月, 2015 2 次提交