Skip to content
Snippets Groups Projects
  1. Apr 27, 2017
    • Vinzenz Feenstra's avatar
      qga: Add 'guest-get-users' command · 161a56a9
      Vinzenz Feenstra authored
      
      A command that will list all currently logged in users, and the time
      since when they are logged in.
      
      Examples:
      
      virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }'
      {"return":[{"login-time":1490622289.903835,"user":"root"}]}
      
      virsh # qemu-agent-command Win2k12r2 '{ "execute": "guest-get-users" }'
      {"return":[{"login-time":1490351044.670552,"domain":"LADIDA",
      "user":"Administrator"}]}
      
      Signed-off-by: default avatarVinzenz Feenstra <vfeenstr@redhat.com>
      * make g_hash_table_contains compat func inline to avoid
        unused warnings
      Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
      161a56a9
  2. Feb 28, 2017
  3. Jan 24, 2017
  4. Nov 01, 2016
  5. Oct 27, 2016
  6. Sep 08, 2016
  7. Aug 19, 2016
  8. Jun 29, 2016
  9. Oct 30, 2015
  10. Oct 19, 2015
  11. May 22, 2015
  12. May 08, 2015
  13. Apr 02, 2015
  14. Oct 16, 2014
  15. Oct 15, 2014
  16. Jun 10, 2014
    • Michael Tokarev's avatar
      glib-compat.h: add new thread API emulation on top of pre-2.31 API · 86946a2d
      Michael Tokarev authored
      
      Thread API changed in glib-2.31 significantly.  Before that version,
      conditionals and mutexes were only allocated dynamically, using
      _new()/_free() interface.  in 2.31 and up, they're allocated statically
      as regular variables, and old interface is deprecated.
      
      (Note: glib docs says the new interface is available since version
      2.32, but it was actually introduced in version 2.31).
      
      Create the new interface using old primitives, by providing non-opaque
      definitions of the base types (GCond and GMutex) using GOnces.
      
      Replace #ifdeffery around GCond and GMutex in trace/simple.c and
      coroutine-gthread.c too because it does not work anymore with the new
      glib-compat.h.
      
      Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      [Use GOnce to support lazy initialization; introduce CompatGMutex
       and CompatGCond.  - Paolo]
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      86946a2d
  17. May 09, 2014
    • Sangho Park's avatar
      glib: fix g_poll early timeout on windows · 5a007547
      Sangho Park authored
      
      g_poll has a problem on Windows when using
      timeouts < 10ms, in glib/gpoll.c:
      
      /* If not, and we have a significant timeout, poll again with
       * timeout then. Note that this will return indication for only
       * one event, or only for messages. We ignore timeouts less than
       * ten milliseconds as they are mostly pointless on Windows, the
       * MsgWaitForMultipleObjectsEx() call will timeout right away
       * anyway.
       */
      if (retval == 0 && (timeout == INFINITE || timeout >= 10))
        retval = poll_rest (poll_msgs, handles, nhandles, fds, nfds, timeout);
      
      so whenever g_poll is called with timeout < 10ms it does
      a quick poll instead of wait, this causes significant performance
      degradation of QEMU, thus we should use WaitForMultipleObjectsEx
      directly
      
      Signed-off-by: default avatarStanislav Vorobiov <s.vorobiov@samsung.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      5a007547
  18. May 07, 2014
  19. Mar 25, 2013
Loading