1. 06 9月, 2016 1 次提交
    • E
      vhost-user-test: Use libqos instead of pxe-virtio.rom · cdafe929
      Eduardo Habkost 提交于
      vhost-user-test relies on iPXE just to initialize the virtio-net
      device, and doesn't do any actual packet tx/rx testing.
      
      In addition to that, the test relies on TCG, which is
      imcompatible with vhost. The test only worked by accident: a bug
      the memory backend initialization made memory regions not have
      the DIRTY_MEMORY_CODE bit set in dirty_log_mask.
      
      This changes vhost-user-test to initialize the virtio-net device
      using libqos, and not use TCG nor pxe-virtio.rom.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      cdafe929
  2. 29 7月, 2016 1 次提交
  3. 12 7月, 2016 1 次提交
  4. 29 6月, 2016 1 次提交
  5. 17 6月, 2016 2 次提交
  6. 07 6月, 2016 1 次提交
  7. 16 2月, 2016 1 次提交
  8. 07 2月, 2016 1 次提交
    • P
      vhost-user-test: use correct ROM to speed up and avoid spurious failures · b5c6eaf1
      Paolo Bonzini 提交于
      The mechanism to get the option ROM for virtio-net does not block the
      PCI ROM from being loaded. Therefore, in vhost-user-test there are
      two entries in the boot menu for the virtio-net card: one as an
      embedded option ROM, one from the ROM BAR.
      
      The embedded option ROM in vhost-user-test is the non-EFI-enabled,
      while the ROM BAR has an EFI-enabled ROM. The two are compiled with
      slightly different parameters, where only the old BIOS-only one doesn't
      have a timeout for the "Press Ctrl-B" banner. When using a new
      machine type, therefore, the vhost-user-test has to wait for the
      EFI-enabled ROM's banner to go away. There are several ways to fix
      this:
      
      1) fix the ROMs to have the same configuration
      
      2) add ",romfile=" to the -device line
      
      3) remove --option-rom and add the ROM file name to the -device line
      
      4) use an old machine type
      
      This patch chooses 3. In addition, the file name was wrong because
      qtest runs QEMU relative to the top build directory, not to the
      x86_64-softmmu/ subdirectory, which is fixed too.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      b5c6eaf1
  9. 22 1月, 2016 1 次提交
  10. 05 12月, 2015 1 次提交
    • M
      tests: Use proper functions types instead of void (*fn) · 041088c7
      Markus Armbruster 提交于
      We have several function parameters declared as void (*fn).  This is
      just a stupid way to write void *, and the only purpose writing it
      like that could serve is obscuring the sin of bypassing the type
      system without need.
      
      The original sin is commit 49ee3590: its qtest_add_func() is a wrapper
      for g_test_add_func().  Fix the parameter type to match
      g_test_add_func()'s.  This uncovers type errors in ide-test.c; fix
      them.
      
      Commit 7949c0e3 faithfully repeated the sin for qtest_add_data_func().
      Fix it the same way, along with a harmless type error uncovered in
      vhost-user-test.c.
      
      Commit 063c23d9 repeated it for qtest_add_abrt_handler().  The screwy
      parameter gets assigned to GHook member func, so change its type to
      match.  Requires wrapping kill_qemu() to keep the type checker happy.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      [AF/armbru: Inline GTestFunc/GTestDataFunc typedef for old GLib]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      041088c7
  11. 02 12月, 2015 3 次提交
  12. 27 11月, 2015 1 次提交
  13. 16 11月, 2015 1 次提交
  14. 12 11月, 2015 2 次提交
  15. 29 10月, 2015 1 次提交
  16. 22 10月, 2015 6 次提交
  17. 02 10月, 2015 4 次提交
  18. 24 9月, 2015 1 次提交
  19. 05 11月, 2014 1 次提交
    • G
      vhost-user-test: Fix 'make check' broken on glib < 2.26 · 30de46db
      Gonglei 提交于
      After commit 89b516d8, some logics is turbid and
      breaks 'make check' as below errors:
      tests/vhost-user-test.c: In function '_cond_wait_until':
      tests/vhost-user-test.c:154: error: 'G_TIME_SPAN_SECOND' undeclared (first use in this function)
      tests/vhost-user-test.c:154: error: (Each undeclared identifier is reported only once
      tests/vhost-user-test.c:154: error: for each function it appears in.)
      tests/vhost-user-test.c: In function 'read_guest_mem':
      tests/vhost-user-test.c:192: warning: implicit declaration of function 'g_get_monotonic_time'
      tests/vhost-user-test.c:192: warning: nested extern declaration of 'g_get_monotonic_time'
      tests/vhost-user-test.c:192: error: 'G_TIME_SPAN_SECOND' undeclared (first use in this function)
      make: *** [tests/vhost-user-test.o] Error 1
      
      First, vhost-usr-test.c rely on glib-compat.h because
      of using G_TIME_SPAN_SECOND [glib < 2.26] and g_get_monotonic_time(),
      but vhost-usr-test.c defined QEMU_GLIB_COMPAT_H, which make
      glib-compat.h will not be included.
      Second, if we remove QEMU_GLIB_COMPAT_H definability in
      vhost-usr-test.c, then we will get below warnings:
      
      tests/vhost-user-test.c: In function 'read_guest_mem':
      tests/vhost-user-test.c:190: warning: passing argument 1 of 'g_mutex_lock' from incompatible pointer type
      tests/vhost-user-test.c:234: warning: passing argument 1 of 'g_mutex_unlock' from incompatible pointer type
      
      That's because glib-compat.h redefine the g_mutex_lock/unlock
      function. Those functions' arguments is CompatGMutex/CompatGCond,
      but vhost-user-test.c is using GMutex/GCond, which cause the type
      is not consistent.
      
      We can rerealize those functions of vhost-user-test.c,
      which need a lots of patches. Let's simply address it, and
      leave this file alone.
      Signed-off-by: NGonglei <arei.gonglei@huawei.com>
      Message-id: 1415149259-6188-1-git-send-email-arei.gonglei@huawei.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      30de46db
  20. 15 10月, 2014 1 次提交
  21. 18 7月, 2014 1 次提交
  22. 14 7月, 2014 2 次提交
  23. 10 7月, 2014 1 次提交
  24. 23 6月, 2014 2 次提交
  25. 19 6月, 2014 1 次提交