]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commit
passthrough: gfx_passthru: warning when vgabios rom has invalid checksum xen-4.0.0-rc5
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 1 Mar 2010 16:14:50 +0000 (16:14 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 1 Mar 2010 16:14:50 +0000 (16:14 +0000)
commitf3f98c2c705fbb773e88692e016d828a060793c8
tree77329919279521881376c1d2a755aa600635fefb
parente5d14857cd67490bf956d97c8888c0be95ed3f78
passthrough: gfx_passthru: warning when vgabios rom has invalid checksum

In the native environment, the VGABIOS, the expansion ROM on the
graphics card, is placed into the 0C0000h address space, and then
executed. Of course, the checksum of the ROM must be valid.

After this initialization, the system BIOS, the actual BIOS of the M/B,
can resize the expansion ROM code to reduce the amount of occupied
space. If the system BIOS resizes it, a new checksum must be calculated
and stored in the ROM image that is on the RAM.

So, normally, shadowed VGABIOS, that is placed in 0C0000h, is already
modified and its checksum must be recalculated.

Qemu-dm copies 0C0000h's contents of the dom0 to guest's 0C0000h.
Guest re-uses dom0's used-up VGABIOS.

The problem that I mentioned is about this recalculated checksum.

System BIOS must guarantee the checksum after the resizing, but,
some M/B does not.
However, after adjusting the checksum, guest seems to work, and
current qemu-dm does so. The buggy system BIOS might just forgets
to recalculate.

Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
Acked-by: Weidong Han <weidong.han@intel.com>
hw/pass-through.c