1. 16 12月, 2014 2 次提交
  2. 09 12月, 2014 1 次提交
  3. 29 10月, 2013 1 次提交
  4. 20 3月, 2013 3 次提交
    • R
      tools/virtio: remove virtqueue_add_buf() from tests. · cf994e0a
      Rusty Russell 提交于
      Make the rest of the paths use virtqueue_add_sgs or add_outbuf.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      cf994e0a
    • R
      tools/virtio: make vringh_test use inbuf/outbuf. · e538ebaf
      Rusty Russell 提交于
      As expected, the simplified accessors are faster.
      
      for i in `seq 50`; do /usr/bin/time -f 'Wall time:%e' ./vringh_test --indirect --eventidx --parallel --fast-vringh; done 2>&1 | stats --trim-outliers:
      
      Before:
      	Using CPUS 0 and 3
      	Guest: notified 0, pinged 39062-39063(39063)
      	Host: notified 39062-39063(39063), pinged 0
      	Wall time:1.760000-2.220000(1.789167)
      
      After:
      	Using CPUS 0 and 3
      	Guest: notified 0, pinged 39037-39063(39062)
      	Host: notified 39037-39063(39062), pinged 0
      	Wall time:1.640000-1.810000(1.676875)
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      e538ebaf
    • R
      tools/virtio: add vring_test. · 1515c5ce
      Rusty Russell 提交于
      This is mainly to test the drivers/vhost/vringh.c code, but it also
      uses the drivers/virtio/virtio_ring.c code for the guest side.
      
      Usage for testing the basic implementation:
      
      	./vringh_test
      	# Test with indirect descriptors
      	./vringh_test --indirect
      	# Test with indirect descriptors and event indexex
      	./vringh_test --indirect --eventidx
      
      You can run a parallel stress test by adding --parallel to any of the
      above options.
      
      eg ./vringh_test --parallel:
      	Using CPUS 0 and 3
      	Guest: notified 10107974, pinged 107970
      	Host: notified 108158, pinged 3172148
      
      ./vringh_test --indirect --eventidx --parallel:
      	Using CPUS 0 and 3
      	Guest: notified 156357, pinged 156251
      	Host: notified 156251, pinged 78179
      
      Average of 50 times doing ./vringh_test --indirect --eventidx --parallel:
      	2.840000-3.040000(2.927292)user
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      1515c5ce