1. 01 5月, 2012 1 次提交
  2. 28 4月, 2012 1 次提交
  3. 27 4月, 2012 1 次提交
  4. 16 4月, 2012 1 次提交
  5. 07 4月, 2012 5 次提交
  6. 03 4月, 2012 1 次提交
  7. 02 2月, 2012 2 次提交
    • M
      main-loop: For tools, initialize timers as part of qemu_init_main_loop() · d34e8f6e
      Michael Roth 提交于
      In some cases initializing the alarm timers can lead to non-negligable
      overhead from programs that link against qemu-tool.o. At least,
      setting a max-resolution WinMM alarm timer via mm_start_timer() (the
      current default for Windows) can increase the "tick rate" on Windows
      OSs and affect frequency scaling, and in the case of tools that run
      in guest OSs such has qemu-ga, the impact can be fairly dramatic
      (+20%/20% user/sys time on a core 2 processor was observed from an idle
      Windows XP guest).
      
      This patch doesn't address the issue directly (not sure what a good
      solution would be for Windows, or what other situations it might be
      noticeable), but it at least limits the scope of the issue to programs
      that "opt-in" to using the main-loop.c functions by only enabling alarm
      timers when qemu_init_main_loop() is called, which is already required
      to make use of those facilities, so existing users shouldn't be
      affected.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      d34e8f6e
    • M
      main-loop: Fix SetEvent() on uninitialized handle on win32 · ee77dfb2
      Michael Roth 提交于
      The __attribute__((constructor)) init_main_loop() automatically get
      called if qemu-tool.o is linked in. On win32, this leads to
      a qemu_notify_event() call which attempts to SetEvent() on a HANDLE that
      won't be initialized until qemu_init_main_loop() is manually called,
      breaking qemu-tools.o programs on Windows at runtime.
      
      This patch checks for an initialized event handle before attempting to
      set it, which is analoguous to how we deal with an unitialized
      io_thread_fd in the posix implementation.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ee77dfb2
  8. 13 1月, 2012 1 次提交
  9. 26 10月, 2011 1 次提交
  10. 22 10月, 2011 1 次提交