From: Kevin O'Connor <kevin@koconnor.net>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Laszlo Ersek <lersek@redhat.com>,
Phil Dennis-Jordan <lists@philjordan.eu>,
Igor Mammedov <imammedo@redhat.com>,
Phil Dennis-Jordan <phil@philjordan.eu>,
"seabios@seabios.org" <seabios@seabios.org>,
"qemu-devel@nongnu.org qemu-devel" <qemu-devel@nongnu.org>,
Programmingkid <programmingkidx@gmail.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [SeaBIOS] Commit 77af8a2b95b79699de650965d5228772743efe84 breaks Windows 2000 support
Date: Tue, 25 Jul 2017 18:01:50 -0400 [thread overview]
Message-ID: <20170725220150.GA2891@morn.lan> (raw)
In-Reply-To: <a92581c5-87b8-26d0-15d3-33ea6e87d442@redhat.com>
On Tue, Jul 25, 2017 at 07:10:21PM +0200, Paolo Bonzini wrote:
> On 25/07/2017 18:23, Paolo Bonzini wrote:
> > On 25/07/2017 18:14, Laszlo Ersek wrote:
> >> "No regressions became apparent in tests with a range of Windows
> >> (XP-10)"
> >>
> >> In theory, w2k falls within that range.
> >
> > Nope, Windows 2000 is like NT 5.0, XP is like NT 5.1. :(
> >
> > One possibility is to fix it in SeaBIOS instead: if you get a 2.0 FADT
> > and an XSDT and no RSDT, it can build an RSDT and a 1.0 FADT itself,
> > patching the RSDT to point to it.
> >
> > It's a hack, but it's the only place I see to make it "just work". And
> > it could be extended nicely in the future.
It's an impressive hack!
> >
> > All QEMU would have to do is to provide an XSDT _instead_ of an RSDT.
[...]
> SeaBIOS:
>
> From 73b0facdb7349f5dbf24dc675647b68eeeec0ff4 Mon Sep 17 00:00:00 2001
> From: Paolo Bonzini <pbonzini@redhat.com>
> Date: Tue, 25 Jul 2017 18:50:19 +0200
> Subject: [PATCH 1/2] seabios: build RSDT from XSDT
>
> Old operating systems would like to have a v1 FADT, but new
> operating systems would like to have v3.
>
> Since old operating systems do not know about XSDTs, the
> solution is to point the RSDT to a v1 FADT and the XSDT to a
> v3 FADT.
>
> But, OVMF is not able to do that and barfs when it sees the
> second FADT---plus really it's only BIOS operating systems
> such as win2k that complain. So instead: 1) make QEMU provide
> an XSDT only; 2) build the RSDT and v1 FADT in SeaBIOS.
>
> This patch makes SeaBIOS build an RSDT out of an existing XSDT.
I'd really prefer not to have SeaBIOS go back to producing ACPI
tables.
As an alternative, how about some other possible hacks:
1 - ovmf filters out the extra tables that it barfs on.
2 - change ovmf to read the fw_cfg linker script
'etc/table-loader-ovmf' instead of '/etc/table-loader' and change
qemu to generate two linker scripts - one for seabios and one for
ovmf.
3 - same as 2, but change seabios to use 'etc/table-loader-seabios'
and leave ovmf unchanged.
4 - change seabios to read both the linker script 'etc/table-loader'
_and_ some new linker script '/etc/table-loader-legacy'. Have
qemu introduce the RSDT/FADTv1 in the "legacy" linker script.
-Kevin
next prev parent reply other threads:[~2017-07-25 22:01 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-20 16:40 [Qemu-devel] Commit 77af8a2b95b79699de650965d5228772743efe84 breaks Windows 2000 support Programmingkid
2017-07-20 19:29 ` Phil Dennis-Jordan
2017-07-21 0:00 ` Programmingkid
2017-07-21 9:06 ` Igor Mammedov
2017-07-21 9:11 ` Phil Dennis-Jordan
2017-07-21 9:23 ` Daniel P. Berrange
2017-07-21 12:34 ` Igor Mammedov
2017-07-21 18:29 ` Phil Dennis-Jordan
2017-07-25 16:14 ` Laszlo Ersek
2017-07-25 16:23 ` Paolo Bonzini
2017-07-25 17:10 ` Paolo Bonzini
2017-07-25 21:25 ` Phil Dennis-Jordan
2017-07-26 8:53 ` Paolo Bonzini
2017-07-26 11:42 ` Laszlo Ersek
2017-07-26 12:06 ` Paolo Bonzini
2017-07-25 22:01 ` Kevin O'Connor [this message]
2017-07-26 7:20 ` [Qemu-devel] [SeaBIOS] " Paolo Bonzini
2017-07-26 19:12 ` Kevin O'Connor
2017-07-26 20:21 ` Paolo Bonzini
2017-07-27 8:39 ` Gerd Hoffmann
2017-07-27 12:26 ` Paolo Bonzini
2017-07-27 14:59 ` Kevin O'Connor
2017-07-27 17:46 ` Laszlo Ersek
2017-07-28 6:57 ` Gerd Hoffmann
2017-07-26 13:08 ` [Qemu-devel] " Igor Mammedov
2017-07-26 13:10 ` Paolo Bonzini
2017-07-26 13:30 ` Igor Mammedov
2017-07-26 13:33 ` Paolo Bonzini
2017-07-26 13:43 ` Igor Mammedov
2017-07-26 14:04 ` Daniel P. Berrange
2017-07-26 16:13 ` Michael S. Tsirkin
2017-07-26 13:57 ` Michael S. Tsirkin
2017-07-24 12:45 ` Gerd Hoffmann
2017-07-24 16:43 ` John Snow
2017-07-24 17:30 ` Programmingkid
2017-07-21 9:20 ` Daniel P. Berrange
2017-07-21 9:46 ` Igor Mammedov
2017-07-21 10:39 ` Phil Dennis-Jordan
2017-07-21 10:50 ` BALATON Zoltan
2017-07-21 11:46 ` Phil Dennis-Jordan
2017-07-21 17:17 ` BALATON Zoltan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170725220150.GA2891@morn.lan \
--to=kevin@koconnor.net \
--cc=imammedo@redhat.com \
--cc=kraxel@redhat.com \
--cc=lersek@redhat.com \
--cc=lists@philjordan.eu \
--cc=pbonzini@redhat.com \
--cc=phil@philjordan.eu \
--cc=programmingkidx@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=seabios@seabios.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.