From: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
To: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Cc: Qemu Developers <qemu-devel@nongnu.org>,
Babu Moger <babu.moger@amd.com>,
"richard.henderson@linaro.org" <richard.henderson@linaro.org>,
Eduardo Habkost <ehabkost@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v2] i386: Add the support for AMD EPYC 3rd generation processors
Date: Mon, 1 Mar 2021 17:45:41 +0100 [thread overview]
Message-ID: <CALzYo33ACktZcsQ2u=Q2=6drtKDvZYhBOhXXRhDDZRoh7WWu3A@mail.gmail.com> (raw)
In-Reply-To: <CAM9Jb+jWfW5yFMy5b9fGXr9Hk4TUv5roOQGEm5C+BSR89e9C_g@mail.gmail.com>
Hi Babu,
I tried to test below patch for AMD EPYC Rome CPU and I got below error [1]:
Also, I noticed SSBD CPU flag for guest was still available even
without this patch,
I noticed that for the guest, AMD_SSBD not got set.
Guest:
0x80000008 0x00: eax=0x00003028 ebx=0x00009205 ecx=0x00002003 edx=0x00000000
[1]
[ 0.008000] unchecked MSR access error: WRMSR to 0x48 (tried to
write 0x0000000000000000) at rIP: 0xffffffff9245c9e4
(native_write_msr+0x4/0x20)
[ 0.008000] [<ffffffff9243a6c5>] ? x86_spec_ctrl_setup_ap+0x35/0x50
[ 0.008000] [<ffffffff92439423>] ? identify_secondary_cpu+0x53/0x80
[ 0.008000] [<ffffffff9244adfa>] ? start_secondary+0x6a/0x1b0
0.011970] unchecked MSR access error: RDMSR from 0x48 at rIP:
0xffffffff9245c772 (native_read_msr+0x2/0x40)
Thanks,
Pankaj
> > It is normally added as v2 for compatibility. Like this.
>
> o.k. Thanks!
> I will test this tomorrow.
>
> >
> > diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> > index 24db7ed892..f721d0db78 100644
> > --- a/target/i386/cpu.c
> > +++ b/target/i386/cpu.c
> > @@ -4179,6 +4179,20 @@ static X86CPUDefinition builtin_x86_defs[] = {
> > .xlevel = 0x8000001E,
> > .model_id = "AMD EPYC-Rome Processor",
> > .cache_info = &epyc_rome_cache_info,
> > + .versions = (X86CPUVersionDefinition[]) {
> > + { .version = 1 },
> > + {
> > + .version = 2,
> > + .props = (PropValue[]) {
> > + { "ibrs", "on" },
> > + { "amd-ssbd", "on" },
> > + { "model-id",
> > + "AMD EPYC-Rome Processor" },
> > + { /* end of list */ }
> > + }
> > + },
> > + { /* end of list */ }
> > + }
> > },
> > {
> > .name = "EPYC-Milan",
next prev parent reply other threads:[~2021-03-01 17:03 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-09 21:04 [PATCH v2] i386: Add the support for AMD EPYC 3rd generation processors Babu Moger
2021-02-09 23:26 ` Eduardo Habkost
2021-02-23 16:32 ` Pankaj Gupta
2021-02-23 18:15 ` Babu Moger
2021-02-24 8:18 ` Pankaj Gupta
2021-02-24 15:55 ` Babu Moger
2021-02-24 16:06 ` no-reply
2021-02-24 16:13 ` Pankaj Gupta
2021-03-01 16:45 ` Pankaj Gupta [this message]
2021-03-01 19:45 ` Babu Moger
2021-03-01 20:22 ` Pankaj Gupta
2021-03-01 20:38 ` Babu Moger
2021-03-02 18:38 ` Pankaj Gupta
2021-03-02 19:00 ` Babu Moger
2021-03-02 19:09 ` Pankaj Gupta
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='CALzYo33ACktZcsQ2u=Q2=6drtKDvZYhBOhXXRhDDZRoh7WWu3A@mail.gmail.com' \
--to=pankaj.gupta@cloud.ionos.com \
--cc=babu.moger@amd.com \
--cc=ehabkost@redhat.com \
--cc=pankaj.gupta.linux@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).