* [Qemu-devel] Windows host broken
@ 2009-10-10 11:56 malc
2009-10-10 12:57 ` [Qemu-devel] Bochs BIOS writes incorrect value into MTRR MSR Stanislav
2009-10-10 14:36 ` [Qemu-devel] Windows host broken TeLeMan
0 siblings, 2 replies; 4+ messages in thread
From: malc @ 2009-10-10 11:56 UTC (permalink / raw)
To: qemu-devel
By 45a50b1668822c23afc2a89f724654e176518bc4, symptoms VM starts but the
screen stays black.
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Bochs BIOS writes incorrect value into MTRR MSR
2009-10-10 11:56 [Qemu-devel] Windows host broken malc
@ 2009-10-10 12:57 ` Stanislav
2009-10-10 14:36 ` [Qemu-devel] Windows host broken TeLeMan
1 sibling, 0 replies; 4+ messages in thread
From: Stanislav @ 2009-10-10 12:57 UTC (permalink / raw)
To: qemu-devel
Hi All,
Bochs Bios has a bug in setup_mtrr function in rombios.cc
The code:
/* Mark 3.5-4GB as UC, anything not specified defaults to WB */
wrmsr_smp(MTRRphysBase_MSR(0), 0xe0000000ull | 0);
wrmsr_smp(MTRRphysMask_MSR(0), ~(0x20000000ull - 1) | 0x800);
sets reserved bits in the MTRRphysMask MSR which would cause #GP on real
hardware.
The right way is to use physical address size provided in CPUID left
0x80000008 or set up only no more than 32 bit value.
Could somebody help to fix it ?
Thanks,
Stanislav
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Windows host broken
2009-10-10 11:56 [Qemu-devel] Windows host broken malc
2009-10-10 12:57 ` [Qemu-devel] Bochs BIOS writes incorrect value into MTRR MSR Stanislav
@ 2009-10-10 14:36 ` TeLeMan
2009-10-10 15:03 ` malc
1 sibling, 1 reply; 4+ messages in thread
From: TeLeMan @ 2009-10-10 14:36 UTC (permalink / raw)
To: qemu-devel
rom_add_file in loader.c:
"fd = open(rom->path, O_RDONLY);" should be "fd = open(rom->path,
O_RDONLY|O_BINARY);"
malc-4 wrote:
>
>
> By 45a50b1668822c23afc2a89f724654e176518bc4, symptoms VM starts but the
> screen stays black.
>
> --
> mailto:av1474@comtv.ru
>
>
>
>
--
View this message in context: http://www.nabble.com/Windows-host-broken-tp25833538p25834748.html
Sent from the QEMU - Dev mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Windows host broken
2009-10-10 14:36 ` [Qemu-devel] Windows host broken TeLeMan
@ 2009-10-10 15:03 ` malc
0 siblings, 0 replies; 4+ messages in thread
From: malc @ 2009-10-10 15:03 UTC (permalink / raw)
To: TeLeMan; +Cc: qemu-devel
On Sat, 10 Oct 2009, TeLeMan wrote:
>
> rom_add_file in loader.c:
>
> "fd = open(rom->path, O_RDONLY);" should be "fd = open(rom->path,
> O_RDONLY|O_BINARY);"
Thank you.
[..snip..]
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-10 15:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-10 11:56 [Qemu-devel] Windows host broken malc
2009-10-10 12:57 ` [Qemu-devel] Bochs BIOS writes incorrect value into MTRR MSR Stanislav
2009-10-10 14:36 ` [Qemu-devel] Windows host broken TeLeMan
2009-10-10 15:03 ` malc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).