ia64/xen-unstable

view .hgignore @ 17036:7b0c0ab0566b

ioemu: Dynamic VNC colour depth.

The qemu vnc server changes its internal colour depth based on the
client request. This way just one colour conversion is done: the one
in vga_template.h, from the guest colour depth and the vnc server
internal colour depth.

This patch is meant to remove this colour conversion to improve
performances. It accomplishes the goal making the qemu internal colour
depth always the same as the guest colour depth.
The basic idea is that the vnc client is the one that should do the
colour conversion, if necessary. In general it should accept the pixel
format suggested by the server during the initial negotiation. This
behaviour can be set in most vnc clients (vncviewer included).

If the guest changes colour depth, the qemu vnc server changes colour
depth too and notifies the client. The problem is that the vnc
protocol doesn't provide a message from the server to the client to
ask for a colour depth change. So what I am doing is either:

1) quietly starting to do the conversion on vnc server (not gaining
any performance here);

2) closing the vnc connection with the client, so the client can
reconnect and choose the new pixel format.

By default I am doing 1), however the second choice can be enabled
passing the -vnc-switch-bpp command line option.
In order to do the colour conversion on the vnc server I had to
improve the colour conversion code already in place because it only
supported conversions from 32 bpp. The patch adds colour conversion
code that support conversions from any resolution to any resolution.

A last note: to get most out of this patch it is best to set Windows
to 16 bit colour depth, because the 24 bit mode is 24 bit depth and 24
bpp, meaning no alpha channel. The vnc protocol doesn't support 24
bpp, only 32 bpp, so this conversion is unavoidable.

From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 11 14:55:33 2008 +0000 (2008-02-11)
parents bb0477a0e9f2
children a905c582a406
line source
1 .*\.a$
2 .*\.cmi$
3 .*\.cmo$
4 .*\.d$
5 .*\.o$
6 .*\.opic$
7 .*\.pyc$
8 .*\.so$
9 .*\.so\..*$
10 .*\.tar\.bz2$
11 .*\.tar\.gz$
12 .*~$
13 .*\.flc$
14 .*\.orig$
15 .*\.rej$
16 .*/a\.out$
17 .*/Modules\.symvers$
18 .*/cscope\..*$
19 ^cscope.*$
20 ^[^/]*\.bz2$
21 ^\.config$
22 ^\.pc
23 ^TAGS$
24 ^tags$
25 ^build-.*$
26 ^dist/.*$
27 ^docs/.*\.aux$
28 ^docs/.*\.dvi$
29 ^docs/.*\.log$
30 ^docs/.*\.pdf$
31 ^docs/.*\.ps$
32 ^docs/.*\.toc$
33 ^docs/api/.*$
34 ^docs/figs/xenserver\.eps$
35 ^docs/html/.*$
36 ^docs/interface/WARNINGS$
37 ^docs/interface/images\.pl$
38 ^docs/interface/images\.tex$
39 ^docs/interface/img1\.png$
40 ^docs/interface/index\.html$
41 ^docs/interface/interface\.css$
42 ^docs/interface/interface\.html$
43 ^docs/interface/labels\.pl$
44 ^docs/man1/
45 ^docs/man5/
46 ^docs/pdf/.*$
47 ^docs/ps/.*$
48 ^docs/user/WARNINGS$
49 ^docs/user/images\.pl$
50 ^docs/user/images\.tex$
51 ^docs/user/img1\.png$
52 ^docs/user/img2\.png$
53 ^docs/user/img3\.png$
54 ^docs/user/index\.html$
55 ^docs/user/internals\.pl$
56 ^docs/user/labels\.pl$
57 ^docs/user/user\.css$
58 ^docs/user/user\.html$
59 ^docs/xen-api/vm_lifecycle.eps$
60 ^docs/xen-api/xenapi-datamodel-graph.eps$
61 ^extras/mini-os/h/hypervisor-ifs$
62 ^extras/mini-os/h/xen-public$
63 ^extras/mini-os/mini-os.*$
64 ^install/.*$
65 ^linux-[^/]*-paravirt/.*$
66 ^linux-2.6[^/]*/.*$
67 ^linux-[^/]*-rc/.*$
68 ^linux-[^/]*-tip/.*$
69 ^linux-[^/]*-git/.*$
70 ^linux-[^/]*\.patch$
71 ^mkddbxen$
72 ^netbsd-[^/]*-tools/.*$
73 ^netbsd-[^/]*-xen0/.*$
74 ^netbsd-[^/]*-xenU/.*$
75 ^netbsd-[^/]*\.patch$
76 ^patches/.*/\.makedep$
77 ^patches/ebtables-brnf-5_vs_2\.4\.25\.diff$
78 ^patches/ebtables\.diff$
79 ^patches/tmp/.*$
80 ^pristine-.*$
81 ^ref-.*$
82 ^tmp-.*$
83 ^tools/.*/TAGS$
84 ^tools/.*/build/lib.*/.*\.py$
85 ^tools/blktap/Makefile\.smh$
86 ^tools/blktap/drivers/blktapctrl$
87 ^tools/blktap/drivers/img2qcow$
88 ^tools/blktap/drivers/qcow-create$
89 ^tools/blktap/drivers/qcow2raw$
90 ^tools/blktap/drivers/tapdisk$
91 ^tools/check/\..*$
92 ^tools/console/xenconsole$
93 ^tools/console/xenconsoled$
94 ^tools/debugger/gdb/gdb-6\.2\.1-linux-i386-xen/.*$
95 ^tools/debugger/gdb/gdb-6\.2\.1/.*$
96 ^tools/debugger/gdb/gdb-6\.2\.1\.tar\.bz2$
97 ^tools/debugger/pdb/._bcdi/.*$
98 ^tools/debugger/pdb/linux-[0-9.]*-module/.*\.ko$
99 ^tools/debugger/pdb/linux-[0-9.]*-module/.*\.mod.c$
100 ^tools/debugger/pdb/linux-[0-9.]*-module/.tmp_versions/.*$
101 ^tools/debugger/pdb/linux-[0-9.]*-module/\..*\.cmd$
102 ^tools/debugger/pdb/pdb$
103 ^tools/debugger/xenitp/xenitp$
104 ^tools/firmware/.*/biossums$
105 ^tools/firmware/.*\.bin$
106 ^tools/firmware/.*\.sym$
107 ^tools/firmware/.*bios/.*bios.*\.txt$
108 ^tools/firmware/etherboot/eb-rom-list\.h$
109 ^tools/firmware/etherboot/etherboot-5
110 ^tools/firmware/etherboot/etherboot-build
111 ^tools/firmware/etherboot/.*\.zrom\.h$
112 ^tools/firmware/extboot/extboot.img$
113 ^tools/firmware/extboot/signrom$
114 ^tools/firmware/hvmloader/acpi/acpigen$
115 ^tools/firmware/hvmloader/hvmloader$
116 ^tools/firmware/hvmloader/roms\.h$
117 ^tools/firmware/rombios/BIOS-bochs-[^/]*$
118 ^tools/firmware/rombios/_rombios[^/]*_\.c$
119 ^tools/firmware/rombios/rombios[^/]*\.s$
120 ^tools/firmware/rombios/32bit/32bitbios_flat\.h$
121 ^tools/firmware/vmxassist/gen$
122 ^tools/firmware/vmxassist/offsets\.h$
123 ^tools/firmware/vmxassist/vmxassist$
124 ^tools/flask/loadpolicy/flask-loadpolicy$
125 ^tools/include/xen/.*$
126 ^tools/include/xen-foreign/.*\.(c|h|size)$
127 ^tools/include/xen-foreign/checker$
128 ^tools/ioemu/\.pc/.*$
129 ^tools/ioemu/config-host\.h$
130 ^tools/ioemu/config-host\.mak$
131 ^tools/ioemu/i386-dm/config\.h$
132 ^tools/ioemu/i386-dm/config\.mak$
133 ^tools/ioemu/i386-dm/qemu-dm$
134 ^tools/ioemu/qemu-doc\.html$
135 ^tools/ioemu/qemu-img\.1$
136 ^tools/ioemu/qemu-img\.pod$
137 ^tools/ioemu/qemu-tech\.html$
138 ^tools/ioemu/qemu\.1$
139 ^tools/ioemu/qemu\.pod$
140 ^tools/libxc/ia64/asm/acpi\.h$
141 ^tools/libxc/ia64/xen/list\.h$
142 ^tools/libxen/libxenapi-
143 ^tools/libxen/test/test_bindings$
144 ^tools/libxen/test/test_event_handling$
145 ^tools/libaio/src/.*\.ol$
146 ^tools/libaio/src/.*\.os$
147 ^tools/misc/cpuperf/cpuperf-perfcntr$
148 ^tools/misc/cpuperf/cpuperf-xen$
149 ^tools/misc/lomount/lomount$
150 ^tools/misc/mbootpack/bin2c$
151 ^tools/misc/mbootpack/bootsect$
152 ^tools/misc/mbootpack/bzimage_header\.c$
153 ^tools/misc/mbootpack/mbootpack$
154 ^tools/misc/mbootpack/setup$
155 ^tools/misc/miniterm/miniterm$
156 ^tools/misc/xc_shadow$
157 ^tools/misc/xen_cpuperf$
158 ^tools/misc/xen-detect$
159 ^tools/misc/xenperf$
160 ^tools/pygrub/build/.*$
161 ^tools/python/build/.*$
162 ^tools/python/xen/util/xsm/xsm\.py$
163 ^tools/security/secpol_tool$
164 ^tools/security/xen/.*$
165 ^tools/security/xensec_tool$
166 ^tools/tests/blowfish\.bin$
167 ^tools/tests/blowfish\.h$
168 ^tools/tests/test_x86_emulator$
169 ^tools/vnet/Make.local$
170 ^tools/vnet/build/.*$
171 ^tools/vnet/gc$
172 ^tools/vnet/gc.*/.*$
173 ^tools/vnet/vnet-module/.*\.ko$
174 ^tools/vnet/vnet-module/\..*\.cmd$
175 ^tools/vnet/vnet-module/\.tmp_versions/.*$
176 ^tools/vnet/vnet-module/vnet_module\.mod\..*$
177 ^tools/vnet/vnetd/vnetd$
178 ^tools/vtpm/tpm_emulator-.*\.tar\.gz$
179 ^tools/vtpm/tpm_emulator/.*$
180 ^tools/vtpm/vtpm/.*$
181 ^tools/vtpm_manager/manager/vtpm_managerd$
182 ^tools/xcutils/xc_restore$
183 ^tools/xcutils/xc_save$
184 ^tools/xcutils/readnotes$
185 ^tools/xenfb/sdlfb$
186 ^tools/xenfb/vncfb$
187 ^tools/xenmon/xentrace_setmask$
188 ^tools/xenmon/xenbaked$
189 ^tools/xenstat/xentop/xentop$
190 ^tools/xenstore/testsuite/tmp/.*$
191 ^tools/xenstore/xen$
192 ^tools/xenstore/xenstore-chmod$
193 ^tools/xenstore/xenstore-exists$
194 ^tools/xenstore/xenstore-list$
195 ^tools/xenstore/xenstore-read$
196 ^tools/xenstore/xenstore-rm$
197 ^tools/xenstore/xenstore-write$
198 ^tools/xenstore/xenstore-control$
199 ^tools/xenstore/xenstore-ls$
200 ^tools/xenstore/xenstored$
201 ^tools/xenstore/xenstored_test$
202 ^tools/xenstore/xs_crashme$
203 ^tools/xenstore/xs_random$
204 ^tools/xenstore/xs_stress$
205 ^tools/xenstore/xs_tdb_dump$
206 ^tools/xenstore/xs_test$
207 ^tools/xenstore/xs_watch_stress$
208 ^tools/xentrace/xentrace_setsize$
209 ^tools/xentrace/tbctl$
210 ^tools/xentrace/xenctx$
211 ^tools/xentrace/xentrace$
212 ^tools/xm-test/ramdisk/buildroot
213 ^tools/xm-test/aclocal.m4$
214 ^tools/xm-test/autom4te
215 ^tools/xm-test/install-sh$
216 ^tools/xm-test/mkinstalldirs$
217 ^tools/xm-test/missing$
218 ^tools/xm-test/config(ure|.log|.status|.guess|.sub)$
219 ^tools/xm-test/Makefile(.in)*$
220 ^tools/xm-test/.*/Makefile(.in)*$
221 ^tools/xm-test/lib/XmTestLib/config.py$
222 ^tools/xm-test/lib/XmTestReport/xmtest.py$
223 ^tools/xm-test/tests/.*\.test$
224 ^xen/BLOG$
225 ^xen/System.map$
226 ^xen/TAGS$
227 ^xen/arch/x86/asm-offsets\.s$
228 ^xen/arch/x86/boot/mkelf32$
229 ^xen/arch/x86/xen\.lds$
230 ^xen/ddb/.*$
231 ^xen/include/asm$
232 ^xen/include/asm-.*/asm-offsets\.h$
233 ^xen/include/asm-ia64/asm-xsi-offsets\.h$
234 ^xen/include/compat/.*$
235 ^xen/include/hypervisor-ifs/arch$
236 ^xen/include/public/public$
237 ^xen/include/xen/.*\.new$
238 ^xen/include/xen/acm_policy\.h$
239 ^xen/include/xen/banner\.h$
240 ^xen/include/xen/compile\.h$
241 ^xen/tags$
242 ^xen/tools/figlet/figlet$
243 ^xen/tools/symbols$
244 ^xen/xen$
245 ^xen/xen-syms$
246 ^xen/xen\..*$
247 ^xen/arch/ia64/asm-offsets\.s$
248 ^xen/arch/ia64/asm-xsi-offsets\.s$
249 ^xen/arch/ia64/map\.out$
250 ^xen/arch/ia64/xen\.lds\.s$
251 ^xen/arch/powerpc/dom0\.bin$
252 ^xen/arch/powerpc/asm-offsets\.s$
253 ^xen/arch/powerpc/firmware$
254 ^xen/arch/powerpc/firmware.dbg$
255 ^xen/arch/powerpc/firmware_image.bin$
256 ^xen/arch/powerpc/xen\.lds$
257 ^xen/arch/powerpc/\.xen-syms$
258 ^xen/arch/powerpc/xen-syms\.S$
259 ^xen/arch/powerpc/cmdline.dep$
260 ^unmodified_drivers/linux-2.6/\.tmp_versions
261 ^unmodified_drivers/linux-2.6/.*\.cmd$
262 ^unmodified_drivers/linux-2.6/.*\.ko$
263 ^unmodified_drivers/linux-2.6/.*\.mod\.c$
264 ^LibVNCServer.*