1. 12 11月, 2018 1 次提交
  2. 29 10月, 2018 2 次提交
  3. 19 10月, 2018 6 次提交
  4. 12 10月, 2018 5 次提交
  5. 03 10月, 2018 1 次提交
    • P
      ui: fix virtual timers · 98880914
      Pavel Dovgalyuk 提交于
      UI uses timers based on virtual clock for managing key queue.
      This is incorrect because this service is not related to the guest state,
      and its events should not be recorded and replayed. But these timers should
      stop when the guest is not executing.
      This patch changes using virtual clock to the new virtual_ext clock,
      which runs as virtual clock, but its timers are not saved to the log.
      Signed-off-by: NPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
      Message-Id: <20180912082013.3228.33664.stgit@pasha-VirtualBox>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      98880914
  6. 01 10月, 2018 3 次提交
  7. 27 9月, 2018 1 次提交
    • P
      qxl: support mono cursors with inverted colors · 36ffc122
      Peter Wu 提交于
      Monochrome cursors are still used by Windows guests with the
      QXL-WDDM-DOD driver. Such cursor types have one odd feature, inversion
      of colors. GDK does not seem to support it, so implement an alternative
      solution: fill the inverted pixels and add an outline to make the cursor
      more visible. Tested with the text cursor in Notepad and Windows 10.
      
      cursor_set_mono is also used by the vmware GPU, so add a special check
      to avoid breaking its 32bpp format (tested with Kubuntu 14.04.4). I was
      unable to find a guest which supports the 1bpp format with a vmware GPU.
      
      The old implementation was buggy and removed in v2.10.0-108-g79c5a10c
      ("qxl: drop mono cursor support"), this version improves upon that by
      adding bounds validation, clarifying the semantics of the two masks and
      adds a workaround for inverted colors support.
      
      Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1611984Signed-off-by: NPeter Wu <peter@lekensteyn.nl>
      Message-id: 20180903145447.17142-1-peter@lekensteyn.nl
      
      [ kraxel: minor codestyle fix ]
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      36ffc122
  8. 29 8月, 2018 1 次提交
  9. 27 8月, 2018 1 次提交
  10. 24 8月, 2018 10 次提交
  11. 24 7月, 2018 1 次提交
  12. 12 7月, 2018 1 次提交
    • J
      ui/cocoa.m: replace scrollingDeltaY with deltaY · dc3c89d6
      John Arbuckle 提交于
      The NSEvent class method scrollingDeltaY is available
      for Mac OS 10.7 and newer. Since QEMU supports Mac OS
      10.5 and up, we need to be using a method that is
      available on these version of Mac OS X. The deltaY
      method is a method that does almost the same thing as
      scrollingDeltaY and is available on Mac OS 10.5 and
      up. So we can replace scrollingDeltaY with deltaY.
      
      We only check deltaY's value if it is not zero
      because zero means that the scrolling increment was
      sufficiently fine that it was only reported in scrollingDeltaY,
      or that the scrolling was horizontal.
      Signed-off-by: NJohn Arbuckle <programmingkidx@gmail.com>
      Message-id: 20180709150235.7573-1-programmingkidx@gmail.com
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      [PMM: tweak commit message and comment a little]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      dc3c89d6
  13. 04 7月, 2018 1 次提交
    • M
      qapi: add conditions to VNC type/commands/events on the schema · 05eb4a25
      Marc-André Lureau 提交于
      Add #if defined(CONFIG_VNC) in generated code, and adjust the
      qmp/hmp code accordingly.
      
      query-qmp-schema no longer reports the command/events etc as
      available when disabled at compile.
      
      Commands made conditional:
      
      * query-vnc, query-vnc-servers, change-vnc-password
      
        Before the patch, the commands for !CONFIG_VNC are stubs that fail
        like this:
      
          {"error": {"class": "GenericError",
                     "desc": "The feature 'vnc' is not enabled"}}
      
        Afterwards, they fail like this:
      
          {"error": {"class": "CommandNotFound",
                     "desc": "The command FOO has not been found"}}
      
        I call that an improvement, because it lets clients distinguish
        between command unavailable (class CommandNotFound) and command failed
        (class GenericError).
      
      Events made conditional:
      
      * VNC_CONNECTED, VNC_INITIALIZED, VNC_DISCONNECTED
      
      HMP change:
      
      * info vnc
      
        Will return "unknown command: 'info vnc'" when VNC is compiled
        out (same as error for spice when --disable-spice)
      
      Occurrences of VNC (case insensitive) in the schema that aren't
      covered by this change:
      
      * add_client
      
        Command has other uses, including "socket bases character devices".
        These are unconditional as far as I can tell.
      
      * set_password, expire_password
      
        In theory, these commands could be used for managing any service's
        password.  In practice, they're used for VNC and SPICE services.
        They're documented for "remote display session" / "remote display
        server".
      
        The service is selected by argument @protocol.  The code special-cases
        protocol-specific argument checking, then calls a protocol-specific
        function to do the work.  If it fails, the command fails with "Could
        not set password".  It does when the service isn't compiled in (it's a
        stub then).
      
        We could make these commands conditional on the conjunction of all
        services [currently: defined(CONFIG_VNC) || defined(CONFIG_SPICE)],
        but I doubt it's worthwhile.
      
      * change
      
        Command has other uses, namely changing media.
        This patch inlines a stub; no functional change.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20180703155648.11933-14-marcandre.lureau@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      05eb4a25
  14. 26 6月, 2018 3 次提交
  15. 14 6月, 2018 2 次提交
    • A
      sdl2: restore window dimensions by resize · 64bf97e5
      Amadeusz Sławiński 提交于
      instead of destroying and recreating window, fixes segfault caused by
      handle_keyup trying to access no more existing window when using
      Ctrl-Alt-U to restore window "un-scaled" dimensions
      
       Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault.
       [Switching to Thread 0x7ffff7f92b80 (LWP 3711)]
       handle_keyup (ev=0x7fffffffd010) at ui/sdl2.c:416
       416         scon->ignore_hotkeys = false;
       (gdb) bt
       #0  handle_keyup (ev=0x7fffffffd010) at ui/sdl2.c:416
       #1  sdl2_poll_events (scon=0x100fee5a8) at ui/sdl2.c:608
       #2  0x0000000100585bf2 in dpy_refresh (s=0x101ad3e00) at ui/console.c:1658
       #3  gui_update (opaque=0x101ad3e00) at ui/console.c:205
       #4  0x0000000100690f2c in timerlist_run_timers (timer_list=0x100ede130) at util/qemu-timer.c:536
       #5  0x0000000100691177 in qemu_clock_run_timers (type=QEMU_CLOCK_REALTIME) at util/qemu-timer.c:547
       #6  qemu_clock_run_all_timers () at util/qemu-timer.c:674
       #7  0x0000000100691651 in main_loop_wait (nonblocking=<optimized out>) at util/main-loop.c:503
       #8  0x00000001003d650f in main_loop () at vl.c:1848
       #9  0x0000000100289681 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4605
      Signed-off-by: NAmadeusz Sławiński <amade@asmblr.net>
      Message-id: 20180613172707.31530-1-amade@asmblr.net
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      64bf97e5
    • K
      ui: darwin: gtk: Add missing input keymap · 656282d2
      Keno Fischer 提交于
      In appears the input keymap for osx was forgotten in the commit that
      converted the gtk frontend to keycodemapdb. Add it.
      
      Fixes: 2ec78706 ("ui: convert GTK and SDL1 frontends to keycodemapdb")
      CC: Daniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NKeno Fischer <keno@juliacomputing.com>
      Message-id: 1528933916-40670-1-git-send-email-keno@juliacomputing.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      656282d2
  16. 12 6月, 2018 1 次提交
    • M
      object: fix OBJ_PROP_LINK_UNREF_ON_RELEASE ambivalence · 265b578c
      Marc-André Lureau 提交于
      A link property can be set during creation, with
      object_property_add_link() and later with object_property_set_link().
      
      add_link() doesn't add a reference to the target object, while
      set_link() does.
      
      Furthemore, OBJ_PROP_LINK_UNREF_ON_RELEASE flags, set during add_link,
      says whether a reference must be released when the property is destroyed.
      This can lead to leaks if the property was later set_link(), as the
      added reference is never released.
      
      Instead, rename OBJ_PROP_LINK_UNREF_ON_RELEASE to OBJ_PROP_LINK_STRONG
      and use that has an indication on how the link handle reference
      management in set_link().
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20180531195119.22021-3-marcandre.lureau@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      265b578c