generic-poky/meta/packages/qemu
Kevin Tian 9207cd4015 qemu: fix VMware VGA depth calculation error
VMware SVGA presents to the guest with the depth of the host surface it renders
to, and rejects to work if the two sides are mismatched. One problem is that
current VMware VGA may calculate a wrong host depth, and then memcpy from virtual
framebuffer to host surface may trigger segmentation fault. For example, when
launching Qemu in a VNC connection, VMware SVGA thinks depth as '32', however the
actual depth of VNC is '16'. The fault also happens when the host depth is not
32 bit.

Qemu <4b5db3749c5fdba93e1ac0e8748c9a9a1064319f> tempts to fix a similar issue, by
changing from hard-coded 24bit depth to instead query the surface allocator
(e.g. sdl). However it doesn't really work, because the point where query
is invoked is earlier than the point where sdl is initialized. At query time,
qemu uses a default surface allocator which, again, provides another hard-coded
depth value - 32bit. So it happens to make VMware SVGA working on some hosts,
but still fails in others.

To solve this issue, this commit introduces a postcall interface to display
surface, which is walked after surface allocators are actually initialized.
At that point it's then safe to query host depth and present to the guest.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2010-06-29 12:34:38 +01:00
..
qemu-0.12.4 qemu: fix VMware VGA depth calculation error 2010-06-29 12:34:38 +01:00
qemu-helper qemu-helper-sdk: Add raw2flash / flash2raw converter 2008-02-11 10:22:06 +00:00
qemu-helper-nativesdk_1.0.bb qemu-helper-nativesdk: Fix after file:// url handling changes 2010-06-10 10:55:43 +01:00
qemu.inc qemu: Enable ppc system emulation and fix ppc build 2010-06-24 08:19:58 +01:00
qemu_0.12.4.bb qemu: fix VMware VGA depth calculation error 2010-06-29 12:34:38 +01:00
qemu_git.bb qemu: fix VMware VGA depth calculation error 2010-06-29 12:34:38 +01:00