Commit Graph
28 Commits
Author SHA1 Message Date
kaf24@localhost.localdomain b8da5b43b1 [QEMU] Fix a number of signedness issues plus a typo in the version checking in vnc.c.
Signed-off-by:  Anthony Liguori <aliguori@us.ibm.com>
2006-12-28 17:11:31 +00:00
Ewan Mellor 4a0a4459e9 Fix numpad handling in QEMU's VNC server. The keymaps that we have include
information on which keys change depending upon the numlock setting, but
this isn't being used.  By forcing numlock on and off as necessary, when
receiving these keysyms through the VNC connection, we ensure that the
server's numlock status is the same as the client's.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-04 17:52:33 +00:00
kfraser@localhost.localdomain 2a7916e953 [QEMU] Do shift-key processing in QEMU monitor terminal when connected via VNC.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-11-30 17:47:50 +00:00
Tim Deegan e481cc001d [HVM] Avoid buffer overrun in qemu-dm
The array offset in set_bits_in_row here comes from an otherwise un-checked
VNC client request.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-25 11:39:57 +01:00
kfraser@localhost.localdomain 6c96f33316 [HVM] Implement password authentication of VNC connections.
The specification is as mentioned at
http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00666.html
(However, password came to describe plain text)

The difference is follows.
- protocol_authtype() without the necessity was deleted.
- The check on the protocol version was added.
- And, some small modification.

Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
2006-10-20 09:50:09 +01:00
Christian Limpach 56525bb669 [HVM/vncserver] Implement a 'vnclisten' option to limit the interface
that the VNC server from qemu listens on. 

Defaults to only listen on 127.0.0.1

The old behaviour (listen on all interfaces) can be restored, by
- changing the system-wide default in /etc/xen/xend-config.sxp by adding:
(vnc-listen '0.0.0.0')
- changing individual domain config files by adding:
vnclisten="0.0.0.0"

Also allows specifying the hostname associated with an interface to limit
to that interface.

Signed-off-by:  Daniel P. Berrange <berrange@redhat.com>
2006-10-05 14:53:29 +01:00
Steven Smith ed3d710e85 [HVM][VNC] Fix typo.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-26 19:50:07 +01:00
Steven Smith a58d1ba3cd [HVM][VNC] Work around a bug in the newest version of xvncviewer which
could lead to the display locking up after it's been idle for a while.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-26 16:47:35 +01:00
Steven Smith 54c338f9de [HVM][VNC] Make sure that qemu doesn't go into an infinite loop when
it receives certain invalid requests from the viewer.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-26 16:46:47 +01:00
Steven Smith 97cb77381a [HVM][VNC] Make sure that the vnc viewer gets the right resolution when it
connects.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-22 20:20:57 +01:00
Steven Smith bb53feb6ec [HVM][VNC] Fix bug in the VNC copyrect implementation which crept in
with the update backoff patch.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-22 09:12:00 +01:00
Steven Smith fc99b58762 [HVM][VNC] Add a backoff feature to the vnc server, so that if it detects
that the display hasn't changed for a while it starts scanning more slowly.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-21 18:29:48 +01:00
Steven Smith 15c05dca32 [HVM] Reduce VNC overhead, by (a) only scanning framebuffer when a client
is connected, and (b) fixing an overflow bug in the scanning code which
prevented the dirty bit from ever getting cleared.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-21 17:56:14 +01:00
chris@kneesaa.uk.xensource.com 26453d70cc [qemu] Add vncunused option.
If the port used for the requested display number is in use, try
additional ports until a free port is found.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-09 15:03:38 +01:00
chris@kneesaa.uk.xensource.com b5d8830efe [qemu] Update ioemu to qemu 0.8.2.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-07 18:25:30 +01:00
chris@kneesaa.uk.xensource.com 3c2eba856f [qemu] Add access to the monito vt over VNC.
Recognize ctrl+alt+1/2/3 to switch among screens.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-26 14:52:47 +01:00
chris@kneesaa.uk.xensource.com e9f8582d3a [qemu] Use domain-name in VNC window title.
Set the VNC window title with domain-name.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-26 14:26:03 +01:00
chris@kneesaa.uk.xensource.com 56e84492d5 [qemu] Re-calculate color_table after color depth reset.
VNC client may reset color depth after connection, so if we don't
re-calculate color_table, monitor/console's background is abnormal.

Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-26 14:20:13 +01:00
chris@kneesaa.uk.xensource.com da71e93abc Spawn vncviewer from qemu-dm.
- add vncviewer option to qemu-dm to spawn a vncviewer process.
- add the `vncconsole' config parameter which enables qemu-dm's vncviewer
  option.

Based on a patch from: Don Dugger <donald.d.dugger@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-14 18:53:27 +01:00
chris@kneesaa.uk.xensource.com 8f4b90220c Add qemu 0.8.1 based ioemu.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 19:16:10 +01:00
chris@kneesaa.uk.xensource.com ef52abce73 Remove qemu 0.6.1 based ioemu.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-12 19:16:07 +01:00
kaf24@firebug.cl.cam.ac.uk cd9d70925c [HVM][DM] Backport the USB support from QEMU 0.8.1 to the current Xen
device model. To support USB there are two new optional config lines
that can be added to the guest config file:

    usb=1
        This will enable USB without defining a specific USB device.
        This option is assumed and not needed if the `usbdevice' option
        is given.

    usbdevice='device'
        This will enable USB and also enable support for the given device.
        Currently, the only two devices are `mouse' (a PS/2 mouse) and
        `tablet' (an absolute pointing device).  The advantage of `tablet'
        is that Windows guests will automatically recognize and support this
        device so specifying the config line:

                usbdevice='tablet'

        will create a mouse that works transparently with Windows guests
        under VNC.  (Linux doesn't recognize the USB tablet yet so Linux
        guests under VNC will still need the Summagraphics emulation.)

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
2006-06-12 09:06:55 +01:00
kaf24@firebug.cl.cam.ac.uk 7d258cc98e Add Summagraphics Tablet emulation for VNC users. The current PS/2 emulation
is unusable under VNC since a PS/2 mouse provides deltas while VNC only
provides absolute coordinates.  Fortunately, the Summagraphics Tablet provides
absolute coordinates and works perfectly with VNC.

Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
2006-03-16 18:57:54 +01:00
kaf24@firebug.cl.cam.ac.uk f2e2149629 Set the device model windows title as the domain name
This helps when creating multile vmx domain.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-03 17:58:31 +01:00
kaf24@firebug.cl.cam.ac.uk f8e8438eef Remove unnecessary NULL checks before freeing memory blocks.
The following functions check for NULL internally:
 free, kfree, xfree, free_xenheap_page[s]

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-11 12:55:47 +01:00
kaf24@firebug.cl.cam.ac.uk 4fb5e20a8d Translate some control characters in the qemu monitor.
This removes odd control characters displayed in the qemu monitor with vnc

Signed-off-by: Edwin Zhain <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:00:30 +00:00
rneugeba@wyvis.research.intel-research.net 61a185c7b6 bitkeeper revision 1.1515.1.1 (42922641RfGxKY5iamyIb3lRFjlpzQ)
better support for vnc in qemu device model:
- different ports for different VMs
- allow reverse connect to a running viewer

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@intel.com>
2005-05-23 18:51:45 +00:00
kaf24@firebug.cl.cam.ac.uk 0df278a2d6 bitkeeper revision 1.1476 (428d0d8esmCTqdrDnpEQ1XlfV6CWGg)
New qemu-based ioemu for fully virtualised guests.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-19 22:05:02 +00:00