1. 05 10月, 2009 4 次提交
  2. 03 10月, 2009 1 次提交
  3. 02 10月, 2009 2 次提交
  4. 28 9月, 2009 1 次提交
  5. 27 9月, 2009 3 次提交
  6. 26 9月, 2009 1 次提交
    • M
      Fix coding style issue · 3df04ac3
      Mark McLoughlin 提交于
      Replace:
      
        if (-1 == foo())
      
      with:
      
        if (foo() == -1)
      
      While this coding style is not in direct contravention of our currently
      ratified CODING_STYLE treaty, it could be argued that the Article 3 of
      the European Convention on Human Rights (prohibiting torture and "inhuman
      or degrading treatment") reads on the matter.
      
      [This commit message was brought to you without humour, as is evidenced
      by the absence of any emoticons]
      Signed-off-by: NMark McLoughlin <markmc@redhat.com>
      Cc: Avi Kivity <avi@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      3df04ac3
  7. 16 9月, 2009 1 次提交
  8. 15 9月, 2009 2 次提交
  9. 12 9月, 2009 2 次提交
    • B
      Fix sys-queue.h conflict for good · 72cf2d4f
      Blue Swirl 提交于
      Problem: Our file sys-queue.h is a copy of the BSD file, but there are
      some additions and it's not entirely compatible. Because of that, there have
      been conflicts with system headers on BSD systems. Some hacks have been
      introduced in the commits 15cc9235,
      f40d7537,
      96555a96 and
      3990d09a but the fixes were fragile.
      
      Solution: Avoid the conflict entirely by renaming the functions and the
      file. Revert the previous hacks.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      72cf2d4f
    • A
      Make get_ticks_per_sec() a static inline · 274dfed8
      Anthony Liguori 提交于
      ticks_per_sec is a constant.  There's no need to store it as a variable as it
      never changes since our time is based on units.
      
      Convert get_ticks_per_sec() to a static inline and move the constant into
      qemu-timer.h.  Remove all references to QEMU_TIMER_BASE so that we consistently
      use this interface.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      274dfed8
  10. 11 9月, 2009 8 次提交
  11. 10 9月, 2009 8 次提交
  12. 06 9月, 2009 1 次提交
  13. 04 9月, 2009 4 次提交
  14. 28 8月, 2009 2 次提交
    • G
      switch balloon initialization to -device. · 382f0743
      Gerd Hoffmann 提交于
      With that patch applied "-balloon virtio,args" becomes a shortcut for
      "-device virtio-balloon-pci,args".
      
      Side effects:
       - ballon device gains support for id=<tag>.
       - ballon device is off by default now.
       - initialization order changes, which may in different pci slot
         assignment depending on the VM configuration.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      382f0743
    • G
      add qemu_error() + friends · ac7531ec
      Gerd Hoffmann 提交于
      This patch adds some functions for error reporting to address the
      problem that error messages should be routed to different destinations
      depending on the context of the caller, i.e. monitor command errors
      should go to the monitor, command line errors to stderr.
      
      qemu_error() is a printf-like function to report errors.
      
      qemu_errors_to_file() and qemu_errors_to_mon() switch the destination
      for the error message to the specified file or monitor.  When setting a
      new destination the old one will be kept.  One can switch back using
      qemu_errors_to_previous().  i.e. it works like a stack.
      
      main() calls qemu_errors_to_file(stderr), so errors go to stderr by
      default.  monitor callbacks are wrapped into qemu_errors_to_mon() +
      qemu_errors_to_previous(), so any errors triggered by monitor commands
      will go to the monitor.
      
      Each thread has its own error message destination.  qemu-kvm probably
      should add a qemu_errors_to_file(stderr) call to the i/o-thread
      initialization code.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ac7531ec