1. 04 3月, 2017 12 次提交
  2. 03 3月, 2017 2 次提交
    • A
      tests: Fix aliases for pSeries buses · 3a37af1e
      Andrea Bolognani 提交于
      virQEMUCapsHasPCIMultiBus() performs a version check on
      the QEMU binary to figure out whether multiple buses are
      supported, so to get the correct aliases assigned when
      dealing with pSeries guests we need to spoof the version
      accordingly in the test suite.
      3a37af1e
    • A
      qemu: Drop QEMU_CAPS_PCI_MULTIBUS · 5b783379
      Andrea Bolognani 提交于
      Due to the extra architecture-specific logic, it's already
      necessary for users to call virQEMUCapsHasPCIMultiBus(),
      so the capability itself is just a pointless distraction.
      5b783379
  3. 24 2月, 2017 8 次提交
  4. 23 2月, 2017 1 次提交
    • A
      tests: Reduce usage of legacy PCI controllers on PCIe machines · d4393c42
      Andrea Bolognani 提交于
      Up until a while ago, libvirt would automatically add a legacy
      PCI controllers combo (dmi-to-pci-bridge + pci-bridge) to any
      PCIe machine type (x86_64/q35 and aarch64/virt).
      
      As a result, a number of input and output files in the test
      suite ended up containing the legacy PCI controllers, even
      though they are not needed or in any way relevant to the
      feature being tested.
      
      Get rid of most of the occurrences. Most of the time, this
      just means removing the controllers from the input file and
      regenerating the output files; in a few instances, some
      minor tweaking is performed on the input file, most notably
      removing the memory balloon: as memory balloon support was
      not the scope of the test being changed, there is no loss
      of test coverage from doing so.
      
      Several occurrences of the legacy PCI controllers remain in
      the test suite, both because removing their usage would have
      required even more tweaking, and because we still want to
      have coverage of this perfectly valid combination.
      d4393c42
  5. 22 2月, 2017 3 次提交
    • T
      util: storage: add JSON backing volume parser 'raw' block driver · e4c6d4ae
      Tomáš Golembiovský 提交于
      The 'raw' block driver in Qemu is not directly interesting from
      libvirt's perspective, but it can be layered above some other block
      drivers and this may be interesting for the user.
      
      The patch adds support for the 'raw' block driver. The driver is treated
      simply as a pass-through and child driver in JSON is queried to get the
      necessary information.
      Signed-off-by: NTomáš Golembiovský <tgolembi@redhat.com>
      e4c6d4ae
    • P
      tests: drivermodule: Make sure that all compiled storage backends can be loaded · 93a3f516
      Peter Krempa 提交于
      Add a new storage driver registration function that will force the
      backend code to fail if any of the storage backend modules can't be
      loaded. This will make sure that they work and are present.
      93a3f516
    • P
      storage: Turn storage backends into dynamic modules · 0a6d3e51
      Peter Krempa 提交于
      If driver modules are enabled turn storage driver backends into
      dynamically loadable objects. This will allow greater modularity for
      binary distributions, where heavyweight dependencies as rbd and gluster
      can be avoided by selecting only a subset of drivers if the rest is not
      necessary.
      
      The storage modules are installed into 'LIBDIR/libvirt/storage-backend/'
      and users can override the location by using
      'LIBVIRT_STORAGE_BACKEND_DIR' environment variable.
      
      rpm based distros will at this point install all the backends when
      libvirt-daemon-driver-storage package is installed.
      0a6d3e51
  6. 21 2月, 2017 6 次提交
  7. 20 2月, 2017 2 次提交
  8. 19 2月, 2017 6 次提交
    • J
      tests: Add createVHBAByNodeDevice-parent-fabric-wwn to fchosttest · f3b1b981
      John Ferlan 提交于
      Add a test that allows providing the parent fabric_wwn in the input XML
      in order to create the vHBA.
      
      This also fixes a mixed setting of the fabric_wwn field from the read
      test driver XML strings.
      f3b1b981
    • J
      tests: Add createVHBAByNodeDevice-parent-wwn to fchosttest · 19ff4361
      John Ferlan 提交于
      Add a test that allows providing the parent wwnn/wwpn in the input XML
      in order to create the vHBA.
      19ff4361
    • J
      tests: Add createVHBAByNodeDevice-no-parent to fchosttest · 5319c49c
      John Ferlan 提交于
      Add a test that allows not providing a parent in the input XML, but still
      being able to create finding a VPORT capable NPIV HBA.
      5319c49c
    • J
      tests: Add new fchosttest tests for management of a vHBA · 4b6ee784
      John Ferlan 提交于
      Add a test that will mimic creation and destruction of a vHBA
      by using node device XML. The design will allow for testing the
      multiple mechanisms.
      
      The first test uses just <parent> in the node device XML. This is
      somewhat similar to the existing objecteventtest, except that this
      test will not provide input wwnn/wwpn's (similar to how the process
      is described for the the libvirt wiki).
      
      This requires mocking the virRandomGenerateWWN since parsing the
      input XML (virNodeDevCapSCSIHostParseXML) requires either a provided
      wwnn/wwpn in the XML or the ability to randomly generate the wwnn/wwpn.
      4b6ee784
    • J
      util: Move scsi_host specific functions from virutil · 03346def
      John Ferlan 提交于
      Create a virscsihost.c and place the functions there. That removes the
      last #ifdef __linux__ from virutil.c.
      
      Take the opporunity to also change the function names and in one case
      the parameters slightly
      03346def
    • J
      util: Create a new virvhba module and move/rename API's · 16416816
      John Ferlan 提交于
      Rather than have them mixed in with the virutil apis, create a separate
      virvhba.c module and move the vHBA related calls into there. Soon there
      will be more added.
      
      Also modify the names of the functions and some arguments to be more
      indicative of what is really happening. Adjust the callers respectively.
      
      While I was changing fchosttest, rather than the non-descriptive names
      test1...test6, rename them to match what the test is doing.
      16416816