1. 17 2月, 2017 3 次提交
  2. 16 2月, 2017 1 次提交
  3. 14 2月, 2017 2 次提交
  4. 13 2月, 2017 2 次提交
  5. 11 2月, 2017 1 次提交
    • R
      bhyve: add e1000 nic support · 5620c609
      Roman Bogorodskiy 提交于
      Recently e1000 NIC support was added to bhyve; implement that in
      the bhyve driver:
      
       - Add capability check by analyzing output of the 'bhyve -s 0,e1000'
         command
       - Modify bhyveBuildNetArgStr() to support e1000 and also pass
         virConnectPtr so it could call bhyveDriverGetCaps() to check if this
         NIC is supported
       - Modify command parsing code to add support for e1000 and adjust tests
       - Add net-e1000 test
      5620c609
  6. 10 2月, 2017 4 次提交
    • J
      tests: Link virusbmock with probes · e8a35271
      John Ferlan 提交于
      Seeing similar error to commit id '997be5c2' with the inability
      to find the libvirt_event_poll_purge_timeout_semaphore symbol
      causing a virusbtest failure.
      e8a35271
    • M
      testUSBList: don't leak @dev · afecfc2b
      Michal Privoznik 提交于
      ==22187== 77 (56 direct, 21 indirect) bytes in 1 blocks are definitely lost in loss record 23 of 37
      ==22187==    at 0x4C2BC75: calloc (vg_replace_malloc.c:624)
      ==22187==    by 0x4E75685: virAlloc (viralloc.c:144)
      ==22187==    by 0x4F0613A: virUSBDeviceNew (virusb.c:332)
      ==22187==    by 0x4F05BA2: virUSBDeviceSearch (virusb.c:183)
      ==22187==    by 0x4F05F95: virUSBDeviceFind (virusb.c:296)
      ==22187==    by 0x403514: testUSBList (virusbtest.c:209)
      ==22187==    by 0x403BD8: virTestRun (testutils.c:180)
      ==22187==    by 0x4039E5: mymain (virusbtest.c:285)
      ==22187==    by 0x4056BC: virTestMain (testutils.c:992)
      ==22187==    by 0x403A4A: main (virusbtest.c:293)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      afecfc2b
    • M
      virusbmock: Link with libvirt_utils · eb58732c
      Michal Privoznik 提交于
      We are using couple of functions from there (e.g. virStrdup) and
      rely that the binary linking us has the libvirt_utils linked
      already. Well, this makes valgrind sad.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      eb58732c
    • M
      tests: Trace re-executing processes with valgrind · a9595814
      Michal Privoznik 提交于
      A lot of our tests re-execute themeselves after loading their
      mock library. This, however, makes valgrind sad because currently
      we do not tell it to trace the process after exec().
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      a9595814
  7. 09 2月, 2017 2 次提交
    • J
      qemu: Add args generation for file memory backing · 1c4f3b56
      Jaroslav Safka 提交于
      This patch add support for file memory backing on numa topology.
      
      The specified access mode in memoryBacking can be overriden
      by specifying token memAccess in numa cell.
      1c4f3b56
    • J
      conf: Add new xml elements for file memorybacking support · bc6d3121
      Jaroslav Safka 提交于
      This part introduces new xml elements for file based
      memorybacking support and their parsing.
      (It allows vhost-user to be used without hugepages.)
      
      New xml elements:
      <memoryBacking>
        <source type="file|anonymous"/>
        <access mode="shared|private"/>
        <allocation mode="immediate|ondemand"/>
      </memoryBacking>
      bc6d3121
  8. 08 2月, 2017 3 次提交
    • L
      conf: support configuring mtu size in a virtual network · 68a42bf6
      Laine Stump 提交于
      Example:
      
        <network>
           ...
           <mtu size='9000'/>
           ...
      
      If mtu is unset, it's assumed that we want the default for whatever is
      the underlying transport (usually this is 1500).
      
      This setting isn't yet wired in, so it will have no effect.
      
      This partially resolves: https://bugzilla.redhat.com/1224348
      68a42bf6
    • L
      util: add MTU arg to virNetDevTapCreateInBridgePort() · dd8ac030
      Laine Stump 提交于
      virNetDevTapCreateInBridgePort() has always set the new tap device to
      the current MTU of the bridge it's being attached to. There is one
      case where we will want to set the new tap device to a different
      (usually larger) MTU - if that's done with the very first device added
      to the bridge, the bridge's MTU will be set to the device's MTU. This
      patch allows for that possibility by adding "int mtu" to the arg list
      for virNetDevTapCreateInBridgePort(), but all callers are sending -1,
      so it doesn't yet have any effect.
      
      Since the requested MTU isn't necessarily what is used in the end (for
      example, if there is no MTU requested, the tap device will be set to
      the current MTU of the bridge), and the hypervisor may want to know
      the actual MTU used, we also return the actual MTU to the caller (if
      actualMTU is non-NULL).
      dd8ac030
    • A
      qemu: Forbid <memoryBacking><locked> without <memtune><hard_limit> · c2e60ad0
      Andrea Bolognani 提交于
      In order for memory locking to work, the hard limit on memory
      locking (and usage) has to be set appropriately by the user.
      
      The documentation mentions the requirement already: with this
      patch, it's going to be enforced by runtime checks as well,
      by forbidding a non-compliant guest from being defined as well
      as edited and started.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1316774
      c2e60ad0
  9. 07 2月, 2017 1 次提交
    • R
      bhyve: fix virtio disk addresses · 66c21aee
      Roman Bogorodskiy 提交于
      Like it usually happens, I fixed one thing and broke another:
      in 803966c7 address allocation was fixed for SATA disks, but
      broke that for virtio disks, because it dropped disk address
      assignment completely. It's not needed for SATA disks anymore,
      but still needed for the virtio ones.
      
      Bring that back and add a couple of tests to make sure it won't
      happen again.
      66c21aee
  10. 02 2月, 2017 2 次提交
  11. 31 1月, 2017 4 次提交
    • J
      qemu: Add enough USB hubs to accomodate all devices · 3ac97c2d
      Ján Tomko 提交于
      Commit 815d98ac started auto-adding one hub if there are more USB devices
      than available USB ports.
      
      This was a strange choice, since there might be even more devices.
      Before USB address allocation was implemented in libvirt, QEMU
      automatically added a new USB hub if the old one was full.
      
      Adjust the logic to try adding as many hubs as will be needed
      to plug in all the specified devices.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1410188
      3ac97c2d
    • R
      bhyve: add tests for SATA address allocation · ae01530c
      Roman Bogorodskiy 提交于
      ae01530c
    • R
      bhyve: fix SATA address allocation · 803966c7
      Roman Bogorodskiy 提交于
      As bhyve for a long time didn't have a notion of the explicit SATA
      controller and created a controller for each drive, the bhyve driver
      in libvirt acted in a similar way and didn't care about the SATA
      controllers and assigned PCI addresses to drives directly, as
      the generated command will look like this anyway:
      
       2:0,ahci-hd,somedisk.img
      
      This no longer makes sense because:
      
       1. After commit c07d1c1c it's not possible to assign
          PCI addresses to disks
       2. Bhyve now supports multiple disk drives for a controller,
          so it's going away from 1:1 controller:disk mapping, so
          the controller object starts to make more sense now
      
      So, this patch does the following:
      
       - Assign PCI address to SATA controllers (previously we didn't do this)
       - Assign disk addresses instead of PCI addresses for disks. Now, when
         building a bhyve command, we take PCI address not from the disk
         itself but from its controller
       - Assign addresses at XML parsing time using the
         assignAddressesCallback. This is done mainly for being able to
         verify address allocation via xml2xml tests
       - Adjust existing bhyvexml2{xml,argv} tests to chase the new
         address allocation
      
      This patch is largely based on work of Fabian Freyer.
      803966c7
    • R
      bhyve: add virBhyveDriverCreateXMLConf · 13a050b2
      Roman Bogorodskiy 提交于
      Add virBhyveDriverCreateXMLConf, a simple wrapper around
      virDomainXMLOptionNew that makes it easier to pass bhyveConnPtr
      as a private data for parser. It will be used later for device
      address allocation at parsing time.
      
      Update consumers to use it instead of direct calls to
      virDomainXMLOptionNew.
      
      As we now have proper callbacks connected for the tests, update
      test files accordingly to include the automatically generated
      PCI root controller.
      13a050b2
  12. 27 1月, 2017 3 次提交
  13. 26 1月, 2017 3 次提交
  14. 25 1月, 2017 1 次提交
  15. 20 1月, 2017 2 次提交
    • M
      qemu: set default vhost-user ifname · 57b5e27d
      Michal Privoznik 提交于
      Based on work of Mehdi Abaakouk <sileht@sileht.net>.
      
      When parsing vhost-user interface XML and no ifname is found we
      can try to fill it in in post parse callback. The way this works
      is we try to make up interface name from given socket path and
      then ask openvswitch whether it knows the interface.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      57b5e27d
    • R
      bhyve: fix interface type handling for argv2xml · 6a9c7468
      Roman Bogorodskiy 提交于
      When generating a domain XML from native command (i.e. via
      the connectDomainXMLFromNative call), we should use
      interface type 'bridge' rather than 'ethernet' because we only
      support bridges at this point.
      
      As we don't have bridge name explicitly specified on the command line,
      just use 'virbr0' as a default.
      6a9c7468
  16. 19 1月, 2017 3 次提交
    • P
      storage: sheepdog: Split out functions required for tests · 01d9c349
      Peter Krempa 提交于
      Separate the headers so that functions only required for testing of the
      sheepdog backend are separated into their own file.
      01d9c349
    • P
      storage: Split utility functions from storage_backend.(ch) · 46e8049c
      Peter Krempa 提交于
      The file became a garbage dump for all kinds of utility functions over
      time. Move them to a separate file so that the files can become a clean
      interface for the storage backends.
      46e8049c
    • J
      tests: fix compilation of shunloadtest · b018ada3
      Jim Fehlig 提交于
      While local builds succeed fine, a build worker building in a
      chroot environment is encountering the following error with
      libvirt 3.0.0 release candidates
      
      [  162s] shunloadtest.o: In function `main':
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:110: undefined reference to `dlopen'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:114: undefined reference to `dlsym'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:133: undefined reference to `dlclose'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:111: undefined reference to `dlerror'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:115: undefined reference to `dlerror'
      [  162s] /home/abuild/rpmbuild/BUILD/libvirt-3.0.0/tests/shunloadtest.c:116: undefined reference to `dlclose'
      
      Fix by appending DLOPEN_LIBS to shunloadtest_LDADD.
      b018ada3
  17. 18 1月, 2017 3 次提交