1. 07 3月, 2009 4 次提交
    • A
      Move VNC structs into header file ("Daniel P. Berrange") · 19a490bf
      aliguori 提交于
      This patch moves the definitions of VncState and VncDisplay structs
      out into a vnc.h header file. This is to allow the code for TLS
      and SASL auth mechanisms to be moved out of the main vnc.c file.
      
      
       vnc.c |  109 ------------------------------------------------
       vnc.h |  149 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
       2 files changed, 148 insertions(+), 110 deletions(-)
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6722 c046a42c-6fe2-441c-8c8c-71466251a162
      19a490bf
    • A
      Refactor keymap code to avoid duplication ("Daniel P. Berrange") · 0483755a
      aliguori 提交于
      Each of the graphical frontends #include a .c file, for keymap code
      resulting in duplicated definitions & duplicated compiled code. A
      couple of small changes allowed this to be sanitized, so instead of
      doing a #include "keymaps.c", duplicating all code, we can have a
      shared keymaps.h file, and only compile code once. This allows the
      next patch to move the VncState struct out into a header file without
      causing clashing definitions.
      
      
       Makefile      |    9 +++++---
       b/keymaps.h   |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
       curses.c      |    3 --
       curses_keys.h |    9 +++-----
       keymaps.c     |   45 ++++++++++++++++---------------------------
       sdl.c         |    3 --
       sdl_keysym.h  |    7 ++----
       vnc.c         |    5 +---
       vnc_keysym.h  |    7 ++----
       9 files changed, 97 insertions(+), 51 deletions(-)
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6721 c046a42c-6fe2-441c-8c8c-71466251a162
      0483755a
    • A
      Enhance 'info vnc' monitor output ("Daniel P. Berrange") · 1ff7df1a
      aliguori 提交于
      The current 'info vnc' monitor output just displays the VNC server address
      as provided by the -vnc command line flag. This isn't particularly useful
      since it doesn't tell you what VNC is actually listening on. eg, if you
      use '-vnc :1' it is useful to know whether this translated to '0.0.0.0:5901'
      or chose IPv6 ':::5901'.  It is also useful to know the address of the
      client that is currently connected. It is also useful to know the active
      authentication (if any).
      
      This patch tweaks the monitor output to look like:
      
         (qemu) info vnc
          Server:
               address: 0.0.0.0:5902
                  auth: vencrypt+x509
          Client: none
      
      And when 2 clients are connected
      
         (qemu) info vnc
          Server:
               address: 0.0.0.0:5902
                  auth: vencrypt+x509
          Client:
               address: 10.33.6.67:38621
          Client:
               address: 10.33.6.63:38620
      
      More data will be added to this later in the patch series...
      
      The 'addr_to_string' helper method in this patch is overly generic
      for the needs of this patch alone. This is because it will be re-used
      by the later SASL patches in this series, where the flexibility is
      important.
      
      
       vnc.c |  137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
       1 file changed, 127 insertions(+), 10 deletions(-)
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6720 c046a42c-6fe2-441c-8c8c-71466251a162
      1ff7df1a
    • A
      Fix bug in TLS authentication ("Daniel P. Berrange") · adc5ec85
      aliguori 提交于
      This patch was previously posted here:
      
        http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00820.html
      
      In the case where the TLS handshake does *not* block on I/O, QEMU
      sends the next 'start sub-auth' message twice. This seriously confuses
      the VNC client :-) Fortunately the chances of the handshake not blocking
      are close to zero for a TCP socket, which is why it has not been noticed
      thus far. Even with both client & server on localhost, I can only hit the
      bug 1 time in 20.
      
      NB, the diff context here is not too informative. If you look at the
      full code you'll see that a few lines early we called vnc_start_tls()
      which called vnc_continue_handshake() which called the method
      start_auth_vencrypt_subauth(). Hence, fixing the bug, just involves
      removing the 2nd bogus call to start_auth_vencrypt_subauth() as per
      this patch.
      
      
       vnc.c |    8 --------
       1 file changed, 8 deletions(-)
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6719 c046a42c-6fe2-441c-8c8c-71466251a162
      adc5ec85
  2. 06 3月, 2009 1 次提交
    • A
      monitor: Rework API (Jan Kiszka) · 376253ec
      aliguori 提交于
      Refactor the monitor API and prepare it for decoupled terminals:
      term_print functions are renamed to monitor_* and all monitor services
      gain a new parameter (mon) that will once refer to the monitor instance
      the output is supposed to appear on. However, the argument remains
      unused for now. All monitor command callbacks are also extended by a mon
      parameter so that command handlers are able to pass an appropriate
      reference to monitor output services.
      
      For the case that monitor outputs so far happen without clearly
      identifiable context, the global variable cur_mon is introduced that
      shall once provide a pointer either to the current active monitor (while
      processing commands) or to the default one. On the mid or long term,
      those use case will be obsoleted so that this variable can be removed
      again.
      
      Due to the broad usage of the monitor interface, this patch mostly deals
      with converting users of the monitor API. A few of them are already
      extended to pass 'mon' from the command handler further down to internal
      functions that invoke monitor_printf.
      
      At this chance, monitor-related prototypes are moved from console.h to
      a new monitor.h. The same is done for the readline API.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6711 c046a42c-6fe2-441c-8c8c-71466251a162
      376253ec
  3. 16 2月, 2009 1 次提交
  4. 12 2月, 2009 1 次提交
  5. 06 2月, 2009 1 次提交
  6. 02 2月, 2009 7 次提交
  7. 26 1月, 2009 1 次提交
  8. 16 1月, 2009 2 次提交
    • A
      exploiting the new interface in vnc.c (Stefano Stabellini) · 6cec5487
      aliguori 提交于
      This patch exploits the new DisplaySurface and PixelFormat structures in
      vnc, making the code easier to read allowing further improvements.
      
      Compared to the last version I fixed a bug that prevented the hextile
      encoding from working properly.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6337 c046a42c-6fe2-441c-8c8c-71466251a162
      6cec5487
    • A
      DisplayState interface change (Stefano Stabellini) · 7d957bd8
      aliguori 提交于
      This patch changes the DisplayState interface adding support for
      multiple frontends at the same time (sdl and vnc) and implements most
      of the benefit of the shared_buf patch without the added complexity.
      
      Currently DisplayState is managed by sdl (or vnc) and sdl (or vnc) is
      also responsible for allocating the data and setting the depth.
      Vga.c (or another backend) will do any necessary conversion.
      
      The idea is to change it so that is vga.c (or another backend) together
      with console.c that fully manage the DisplayState interface allocating
      data and setting the depth (either 16 or 32 bit, if the guest uses a
      different resolution or is in text mode, vga.c (or another backend) is
      in charge of doing the conversion seamlessly).
      
      The other idea is that DisplayState supports *multiple* frontends
      like sdl and vnc; each of them can register some callbacks to be called
      when a display event occurs.
      
      The interesting changes are:
      
      - the new structures and related functions in console.h and console.c
      
      in particular the following functions are very helpful to manage a
      DisplaySurface:
      
      qemu_create_displaysurface
      qemu_resize_displaysurface
      qemu_create_displaysurface_from
      qemu_free_displaysurface
      
      - console_select and qemu_console_resize in console.c
      this two functions manage multiple consoles on a single host display
      
      - moving code around in hw/vga.c
      as for the shared_buf patch this is necessary to be able to handle a dynamic
      DisplaySurface bpp
      
      - changes to vga_draw_graphic in hw/vga.c
      this is the place where the DisplaySurface buffer is shared with the
      videoram, when possible;
      
      
      Compared to the last version the only changes are:
      
      - do not remove support to dpy_copy in cirrus_vga
      - change the name of the displaysurface handling functions
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6336 c046a42c-6fe2-441c-8c8c-71466251a162
      7d957bd8
  9. 15 1月, 2009 1 次提交
  10. 23 12月, 2008 1 次提交
  11. 14 12月, 2008 1 次提交
  12. 04 12月, 2008 1 次提交
  13. 03 12月, 2008 1 次提交
  14. 02 12月, 2008 2 次提交
  15. 01 12月, 2008 1 次提交
  16. 25 11月, 2008 1 次提交
  17. 13 11月, 2008 1 次提交
  18. 12 11月, 2008 1 次提交
  19. 25 10月, 2008 1 次提交
  20. 24 9月, 2008 1 次提交
  21. 16 9月, 2008 2 次提交
  22. 07 9月, 2008 2 次提交
  23. 24 8月, 2008 1 次提交
  24. 22 8月, 2008 1 次提交
  25. 06 8月, 2008 1 次提交
  26. 02 6月, 2008 1 次提交
  27. 25 5月, 2008 1 次提交