1. 08 6月, 2012 1 次提交
    • M
      rewrite iov_* functions · 2278a69e
      Michael Tokarev 提交于
      This changes implementations of all iov_*
      functions, completing the previous step.
      
      All iov_* functions now ensure that this offset
      argument is within the iovec (using assertion),
      but lets to specify `bytes' value larger than
      actual length of the iovec - in this case they
      stops at the actual end of iovec.  It is also
      suggested to use convinient `-1' value as `bytes'
      to mean just this -- "up to the end".
      
      There's one very minor semantic change here: new
      requiriment is that `offset' points to inside of
      iovec.  This is checked just at the end of functions
      (assert()), it does not actually need to be enforced,
      but using any of these functions with offset pointing
      past the end of iovec is wrong anyway.
      
      Note: the new code in iov.c uses arithmetic with
      void pointers.  I thought this is not supported
      everywhere and is a GCC extension (indeed, the C
      standard does not define void arithmetic).  However,
      the original code already use void arith in
      iov_from_buf() function:
        (memcpy(..., buf + buf_off,...)
      which apparently works well so far (it is this
      way in qemu 1.0).  So I left it this way and used
      it in other places.
      
      While at it, add a unit-test file test-iov.c,
      to check various corner cases with iov_from_buf(),
      iov_to_buf() and iov_memset().
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      2278a69e
  2. 22 5月, 2012 1 次提交
  3. 19 5月, 2012 1 次提交
    • S
      tests: Fix linker failure for fdc-test · fd4567d9
      Stefan Weil 提交于
      When QEMU was built with the simple trace backend, linking failed:
      
        LINK  tests/fdc-test
      oslib-posix.o: In function `trace_qemu_memalign':
      qemu/bin/debug/x86/./trace.h:31: undefined reference to `trace3'
      oslib-posix.o: In function `trace_qemu_vmalloc':
      qemu/bin/debug/x86/./trace.h:35: undefined reference to `trace2'
      oslib-posix.o: In function `trace_qemu_vfree':
      qemu/bin/debug/x86/./trace.h:39: undefined reference to `trace1'
      collect2: error: ld returned 1 exit status
      make: *** [tests/fdc-test] Fehler 1
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      fd4567d9
  4. 10 5月, 2012 2 次提交
  5. 21 4月, 2012 1 次提交
  6. 15 4月, 2012 1 次提交
  7. 31 3月, 2012 1 次提交
  8. 30 3月, 2012 3 次提交
  9. 27 3月, 2012 2 次提交
  10. 26 3月, 2012 2 次提交
  11. 12 3月, 2012 2 次提交
  12. 21 2月, 2012 1 次提交
  13. 19 1月, 2012 1 次提交
  14. 13 1月, 2012 3 次提交
  15. 09 12月, 2011 1 次提交
  16. 07 3月, 2011 1 次提交
  17. 15 1月, 2011 1 次提交
  18. 23 10月, 2010 3 次提交
  19. 08 1月, 2010 1 次提交
    • P
      Use vpath directive · 076d2471
      Paolo Bonzini 提交于
      The vpath directive has two advantages over the VPATH variable:
      1) it allows to skip searching of .o files; 2) the default semantics
      are to append to the vpath, so there is no confusion between "VPATH=xyz"
      and "VPATH+=xyz".
      
      Since "vpath %.c %.h PATH" is not valid, I'm introducing a wrapper
      macro to append one or more directories to the vpath.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      076d2471
  20. 10 7月, 2009 1 次提交
  21. 22 9月, 2008 1 次提交
  22. 28 5月, 2008 1 次提交
  23. 02 3月, 2008 1 次提交
  24. 31 1月, 2008 1 次提交
  25. 14 11月, 2007 1 次提交
  26. 12 11月, 2007 1 次提交
  27. 08 10月, 2007 1 次提交
  28. 30 4月, 2007 1 次提交
  29. 06 2月, 2007 1 次提交
  30. 21 1月, 2007 1 次提交