From: Igor Mammedov <imammedo@redhat.com>
To: Isaku Yamahata <isaku.yamahata@gmail.com>
Cc: Reinoud Zandijk <reinoud@NetBSD.org>, qemu-devel@nongnu.org
Subject: Re: Windows 10 won't run on default x86_64 machine anymore
Date: Tue, 16 Mar 2021 13:33:54 +0100 [thread overview]
Message-ID: <20210316133354.20460aca@redhat.com> (raw)
In-Reply-To: <20210315220526.GB1004959@private.email.ne.jp>
On Mon, 15 Mar 2021 15:05:26 -0700
Isaku Yamahata <isaku.yamahata@gmail.com> wrote:
> On Mon, Mar 15, 2021 at 05:58:04PM +0100,
> Reinoud Zandijk <reinoud@NetBSD.org> wrote:
>
> > I think its better to revert this and fix Linux ;) or make it a selectable
> > feature as a workaround that's by default OFF :)
>
> Anyway here is a patch to flip the default.
> At the moment, this is compile-only tested to provide the change quickly
> and make discussion progress.
>
> From 50deeed38832ceccfb68f78dd66de5a1741b2897 Mon Sep 17 00:00:00 2001
> Message-Id: <50deeed38832ceccfb68f78dd66de5a1741b2897.1615845421.git.isaku.yamahata@intel.com>
> From: Isaku Yamahata <isaku.yamahata@intel.com>
> Date: Mon, 15 Mar 2021 14:42:33 -0700
> Subject: [PATCH] ich9, piix4: flip default value for smm-compat
>
> Make default value for smm-compat of ich9, piix4 true to keep old
> behavior.
> To get new (and more conformance to ACPI spec) behavior, explicitly
> set "-global ICH9-LPC.smm-compat=off" or
> "-global PIIX4_PM.smm-compat=off".
I'm not sure we should do that,
it's fine for non-versioned/new machine type to change in incompatible way with old images,
it's the job of old versioned machines types to maintain compatibility.
It's of cause pain for users if they use are unable to boot old image
on newest machine type, but we never promised that and if we made such
promise we would never be able to fix bugs.
> Reported-by: Reinoud Zandijk <reinoud@NetBSD.org>
> Fixes: 24cd04fce0 ("ich9, piix4: add property, smm-compat, to keep compatibility of SMM")
> Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
> ---
> hw/acpi/piix4.c | 2 +-
> hw/core/machine.c | 2 --
> hw/isa/lpc_ich9.c | 2 +-
> 3 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
> index 1efc0ded9f..34ade2c9bb 100644
> --- a/hw/acpi/piix4.c
> +++ b/hw/acpi/piix4.c
> @@ -644,7 +644,7 @@ static Property piix4_pm_properties[] = {
> use_acpi_root_pci_hotplug, true),
> DEFINE_PROP_BOOL("memory-hotplug-support", PIIX4PMState,
> acpi_memory_hotplug.is_enabled, true),
> - DEFINE_PROP_BOOL("smm-compat", PIIX4PMState, smm_compat, false),
> + DEFINE_PROP_BOOL("smm-compat", PIIX4PMState, smm_compat, true),
> DEFINE_PROP_END_OF_LIST(),
> };
>
> diff --git a/hw/core/machine.c b/hw/core/machine.c
> index 4386f57b5c..e644c4e07d 100644
> --- a/hw/core/machine.c
> +++ b/hw/core/machine.c
> @@ -37,8 +37,6 @@
> #include "hw/virtio/virtio-pci.h"
>
> GlobalProperty hw_compat_5_2[] = {
> - { "ICH9-LPC", "smm-compat", "on"},
> - { "PIIX4_PM", "smm-compat", "on"},
> };
> const size_t hw_compat_5_2_len = G_N_ELEMENTS(hw_compat_5_2);
>
> diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c
> index 3963b73520..b7ff3a9747 100644
> --- a/hw/isa/lpc_ich9.c
> +++ b/hw/isa/lpc_ich9.c
> @@ -775,7 +775,7 @@ static const VMStateDescription vmstate_ich9_lpc = {
>
> static Property ich9_lpc_properties[] = {
> DEFINE_PROP_BOOL("noreboot", ICH9LPCState, pin_strap.spkr_hi, true),
> - DEFINE_PROP_BOOL("smm-compat", ICH9LPCState, pm.smm_compat, false),
> + DEFINE_PROP_BOOL("smm-compat", ICH9LPCState, pm.smm_compat, true),
> DEFINE_PROP_BIT64("x-smi-broadcast", ICH9LPCState, smi_host_features,
> ICH9_LPC_SMI_F_BROADCAST_BIT, true),
> DEFINE_PROP_BIT64("x-smi-cpu-hotplug", ICH9LPCState, smi_host_features,
next prev parent reply other threads:[~2021-03-16 12:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-15 16:58 Windows 10 won't run on default x86_64 machine anymore Reinoud Zandijk
2021-03-15 17:19 ` Daniel P. Berrangé
2021-03-15 21:32 ` Isaku Yamahata
2021-03-15 17:53 ` Igor Mammedov
2021-03-15 22:27 ` Reinoud Zandijk
2021-03-16 1:55 ` Isaku Yamahata
2021-03-16 12:13 ` Igor Mammedov
2021-03-16 12:49 ` Paolo Bonzini
2021-03-16 13:10 ` Igor Mammedov
2021-03-16 16:49 ` Igor Mammedov
2021-03-16 17:33 ` Paolo Bonzini
2021-03-16 18:49 ` Igor Mammedov
2021-03-16 16:27 ` Reinoud Zandijk
2021-03-16 17:38 ` Paolo Bonzini
2021-03-16 16:20 ` Reinoud Zandijk
2021-03-16 16:41 ` Reinoud Zandijk
2021-03-16 12:53 ` Igor Mammedov
2021-03-16 16:28 ` Reinoud Zandijk
2021-03-16 17:17 ` Igor Mammedov
2021-03-16 20:34 ` Igor Mammedov
2021-03-17 8:58 ` Reinoud Zandijk
2021-03-17 9:54 ` Igor Mammedov
2021-03-17 15:10 ` Reinoud Zandijk
2021-03-17 15:13 ` Reinoud Zandijk
2021-03-15 21:59 ` Michael S. Tsirkin
2021-03-15 22:05 ` Isaku Yamahata
2021-03-16 12:33 ` Igor Mammedov [this message]
2021-03-16 12:40 ` Daniel P. Berrangé
2021-03-16 13:04 ` Igor Mammedov
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=20210316133354.20460aca@redhat.com \
--to=imammedo@redhat.com \
--cc=isaku.yamahata@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=reinoud@NetBSD.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 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).