From: Paolo Bonzini <pbonzini@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org, Vadim Rozenfeld <vrozenfe@redhat.com>
Subject: Re: [PATCH] target/i386: introduce CPU property to work around Windows reset bug
Date: Thu, 24 Mar 2022 12:24:02 +0100 [thread overview]
Message-ID: <6bad2204-4a21-19e7-e2f6-3ef30632bda4@redhat.com> (raw)
In-Reply-To: <YjxQAKKKBR3oHdRN@redhat.com>
On 3/24/22 12:03, Daniel P. Berrangé wrote:
>
> "This only applies to virtual machine hardware version 10 as Windows
> resets the TSC on all CPUs on virtual machines with older hardware
> versions (which do not support hypervisor.cpuid.v2)."
>
> do you know what they mean when they refer to 'hypervisor.cpuid.v2'
> here ? I wonder if it gives any hints as to a root cause that could
> be fixed ?
The difference between hardware versions probably is that older versions
do not support Hyper-V enlightenments. The bug does not happen if
Windows uses the RTC for timekeeping, which is consistent with the
description above.
> This hardware version 10 is well old - their current hardware version
> is 19, so it seems to show the implemented some built-in fix in newer
> hardware versions (their equiv of machine types). The vmware setting
> dates from 2013, and if I read that kbase correctly isn't needed on
> their modern hardware versions. Or maybe monitor_control.enable_softResetClearTSC
> became the default in newer hardware versions ?
Yeah, maybe it became the default but they didn't want to change
previously-released hardware versions. So that would be basically
treating it as an ABI change, and only enable it in 7.0 machine types.
That said, the VMware kbase does paint a slightly different picture. It
implies that starting with hardware version 11 rebooting Windows is done
through a hard reset instead of INIT. I'm not sure how that would be
done, but in the meanwhile our fix should take care of do_cpu_init as well.
Paolo
next prev parent reply other threads:[~2022-03-24 11:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-24 8:23 [PATCH] target/i386: introduce CPU property to work around Windows reset bug Paolo Bonzini
2022-03-24 9:13 ` Daniel P. Berrangé
2022-03-24 9:15 ` Daniel P. Berrangé
2022-03-24 9:42 ` Paolo Bonzini
2022-03-24 11:03 ` Daniel P. Berrangé
2022-03-24 11:24 ` Paolo Bonzini [this message]
2022-03-24 17:13 ` Paolo Bonzini
2022-03-24 17:37 ` Daniel P. Berrangé
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=6bad2204-4a21-19e7-e2f6-3ef30632bda4@redhat.com \
--to=pbonzini@redhat.com \
--cc=berrange@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vrozenfe@redhat.com \
/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).