diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-11-24 18:10:49 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-10 09:58:33 +0100 |
commit | 8cf364898cfe4ae761f2253e91a040633d6f87be (patch) | |
tree | 056bc466b445d527bda61b0021c63bf3d152f4b8 /qemu-options.hx | |
parent | e26437c2d4a7f6cbbc0bbd51b08a2dcce84bb93b (diff) | |
download | qemu-8cf364898cfe4ae761f2253e91a040633d6f87be.zip qemu-8cf364898cfe4ae761f2253e91a040633d6f87be.tar.gz qemu-8cf364898cfe4ae761f2253e91a040633d6f87be.tar.bz2 |
vnc: implement shared flag handling.
VNC clients send a shared flag in the client init message. Up to now
qemu completely ignores this. This patch implements shared flag
handling. It comes with three policies: By default qemu behaves as one
would expect: Asking for a exclusive access grants exclusive access to
the client connecting. There is also a desktop sharing mode which
disallows exclusive connects (so one forgetting -shared wouldn't drop
everybody else) and a compatibility mode which mimics the traditional
(but non-conforming) qemu behavior.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qemu-options.hx')
-rw-r--r-- | qemu-options.hx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qemu-options.hx b/qemu-options.hx index f577cc8..4bb3617 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1095,6 +1095,19 @@ This can be really helpful to save bandwidth when playing videos. Disabling adaptive encodings allows to restore the original static behavior of encodings like Tight. +@item share=[allow-exclusive|force-shared|ignore] + +Set display sharing policy. 'allow-exclusive' allows clients to ask +for exclusive access. As suggested by the rfb spec this is +implemented by dropping other connections. Connecting multiple +clients in parallel requires all clients asking for a shared session +(vncviewer: -shared switch). This is the default. 'force-shared' +disables exclusive client access. Useful for shared desktop sessions, +where you don't want someone forgetting specify -shared disconnect +everybody else. 'ignore' completely ignores the shared flag and +allows everybody connect unconditionally. Doesn't conform to the rfb +spec but is traditional qemu behavior. + @end table ETEXI |