From: Paolo Bonzini <pbonzini@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>,
Brijesh Singh <brijesh.singh@amd.com>,
Babu Moger <babu.moger@amd.com>
Cc: qemu-devel@nongnu.org, Tom Lendacky <Thomas.Lendacky@amd.com>,
Richard Henderson <rth@twiddle.net>,
"Daniel P. Berrange" <berrange@redhat.com>,
Jon Masters <jcm@redhat.com>
Subject: Re: [Qemu-devel] MSRC001_102C on EPYC (was Re: [PATCH v3] target-i386/cpu: Add new EPYC CPU model)
Date: Wed, 27 Jun 2018 17:07:30 +0200 [thread overview]
Message-ID: <ee18a045-4fd1-4088-44e7-3a97fc759aa3@redhat.com> (raw)
In-Reply-To: <20180627144834.GA20218@localhost.localdomain>
On 27/06/2018 16:48, Eduardo Habkost wrote:
> Hi,
>
> On Tue, Aug 15, 2017 at 12:00:51PM -0500, Brijesh Singh wrote:
>> Add a new base CPU model called 'EPYC' to model processors from AMD EPYC
>> family (which includes EPYC 76xx,75xx,74xx, 73xx and 72xx).
>>
>> The following features bits have been added/removed compare to Opteron_G5
>>
>> Added: monitor, movbe, rdrand, mmxext, ffxsr, rdtscp, cr8legacy, osvw,
>> fsgsbase, bmi1, avx2, smep, bmi2, rdseed, adx, smap, clfshopt, sha
>> xsaveopt, xsavec, xgetbv1, arat
>>
>> Removed: xop, fma4, tbm
>>
> [...]
>> + {
>> + .name = "EPYC",
>> + .level = 0xd,
>> + .vendor = CPUID_VENDOR_AMD,
>> + .family = 23,
>> + .model = 1,
>> + .stepping = 2,
>
> These f/m/s values trigger model-specific code in Windows 10
> guests[1], and I couldn't find any public information that allow
> us to fix the problem.
At least family 17h should be set for EPYC processors.
> Windows 10 tries to set bit 15 of MSRC001_102C, in code that
> looks like workarounds for CPU Erratas.
>
> I found a Revision Guide for family 17h[2], but it has no mention
> of MSRC001_102C at all.
I also found a "Processor Programming Reference"
(https://support.amd.com/TechDocs/54945_PPR_Family_17h_Models_00h-0Fh.pdf)
but it's not there either.
It's okay I think if KVM is modified to either return zero and ignore
writes, or return 0x8000, but I'd like confirmation from AMD too.
Paolo
next prev parent reply other threads:[~2018-06-27 15:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-15 17:00 [Qemu-devel] [PATCH v3] target-i386/cpu: Add new EPYC CPU model Brijesh Singh
2017-08-17 3:55 ` Wanpeng Li
2017-08-17 16:21 ` Brijesh Singh
2017-08-17 16:45 ` Paolo Bonzini
2017-08-17 18:37 ` Brijesh Singh
2017-08-21 11:52 ` Brijesh Singh
2017-08-22 14:44 ` Brijesh Singh
2017-08-22 15:49 ` Paolo Bonzini
2017-08-23 14:17 ` Eduardo Habkost
2018-06-27 14:48 ` [Qemu-devel] MSRC001_102C on EPYC (was Re: [PATCH v3] target-i386/cpu: Add new EPYC CPU model) Eduardo Habkost
2018-06-27 15:07 ` Paolo Bonzini [this message]
2018-06-27 15:09 ` Brijesh Singh
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=ee18a045-4fd1-4088-44e7-3a97fc759aa3@redhat.com \
--to=pbonzini@redhat.com \
--cc=Thomas.Lendacky@amd.com \
--cc=babu.moger@amd.com \
--cc=berrange@redhat.com \
--cc=brijesh.singh@amd.com \
--cc=ehabkost@redhat.com \
--cc=jcm@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).