* [PATCH] i386: Add missing cpu feature bits in EPYC-Rome model
@ 2021-03-02 21:20 Babu Moger
2021-03-03 9:42 ` David Edmondson
0 siblings, 1 reply; 3+ messages in thread
From: Babu Moger @ 2021-03-02 21:20 UTC (permalink / raw)
To: pbonzini, richard.henderson, ehabkost
Cc: babu.moger, pankaj.gupta, qemu-devel
Found the following cpu feature bits missing from EPYC-Rome model.
ibrs : Indirect Branch Restricted Speculation
ssbd : Speculative Store Bypass Disable
These new features will be added in EPYC-Rome-v2. The -cpu help output
after the change.
x86 EPYC-Rome (alias configured by machine type)
x86 EPYC-Rome-v1 AMD EPYC-Rome Processor
x86 EPYC-Rome-v2 AMD EPYC-Rome Processor
Reported-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
---
target/i386/cpu.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 6a53446e6a..9b5a31783d 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",
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] i386: Add missing cpu feature bits in EPYC-Rome model
2021-03-02 21:20 [PATCH] i386: Add missing cpu feature bits in EPYC-Rome model Babu Moger
@ 2021-03-03 9:42 ` David Edmondson
2021-03-03 15:42 ` Babu Moger
0 siblings, 1 reply; 3+ messages in thread
From: David Edmondson @ 2021-03-03 9:42 UTC (permalink / raw)
To: Babu Moger, pbonzini, richard.henderson, ehabkost
Cc: babu.moger, pankaj.gupta, qemu-devel
On Tuesday, 2021-03-02 at 15:20:00 -06, Babu Moger wrote:
> Found the following cpu feature bits missing from EPYC-Rome model.
> ibrs : Indirect Branch Restricted Speculation
> ssbd : Speculative Store Bypass Disable
>
> These new features will be added in EPYC-Rome-v2. The -cpu help output
> after the change.
>
> x86 EPYC-Rome (alias configured by machine type)
> x86 EPYC-Rome-v1 AMD EPYC-Rome Processor
> x86 EPYC-Rome-v2 AMD EPYC-Rome Processor
>
> Reported-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
> Signed-off-by: Babu Moger <babu.moger@amd.com>
> Signed-off-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
> ---
> target/i386/cpu.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> index 6a53446e6a..9b5a31783d 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" },
If the model-id isn't changing, is there any need to specify it?
> + { /* end of list */ }
> + }
> + },
> + { /* end of list */ }
> + }
> },
> {
> .name = "EPYC-Milan",
dme.
--
In heaven there is no beer, that's why we drink it here.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] i386: Add missing cpu feature bits in EPYC-Rome model
2021-03-03 9:42 ` David Edmondson
@ 2021-03-03 15:42 ` Babu Moger
0 siblings, 0 replies; 3+ messages in thread
From: Babu Moger @ 2021-03-03 15:42 UTC (permalink / raw)
To: David Edmondson, pbonzini, richard.henderson, ehabkost
Cc: pankaj.gupta, qemu-devel
On 3/3/21 3:42 AM, David Edmondson wrote:
> On Tuesday, 2021-03-02 at 15:20:00 -06, Babu Moger wrote:
>
>> Found the following cpu feature bits missing from EPYC-Rome model.
>> ibrs : Indirect Branch Restricted Speculation
>> ssbd : Speculative Store Bypass Disable
>>
>> These new features will be added in EPYC-Rome-v2. The -cpu help output
>> after the change.
>>
>> x86 EPYC-Rome (alias configured by machine type)
>> x86 EPYC-Rome-v1 AMD EPYC-Rome Processor
>> x86 EPYC-Rome-v2 AMD EPYC-Rome Processor
>>
>> Reported-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
>> Signed-off-by: Babu Moger <babu.moger@amd.com>
>> Signed-off-by: Pankaj Gupta <pankaj.gupta@cloud.ionos.com>
>> ---
>> target/i386/cpu.c | 14 ++++++++++++++
>> 1 file changed, 14 insertions(+)
>>
>> diff --git a/target/i386/cpu.c b/target/i386/cpu.c
>> index 6a53446e6a..9b5a31783d 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" },
>
> If the model-id isn't changing, is there any need to specify it?
ok. Sending v2 removing model-id. Thanks
>
>> + { /* end of list */ }
>> + }
>> + },
>> + { /* end of list */ }
>> + }
>> },
>> {
>> .name = "EPYC-Milan",
>
> dme.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-03 15:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 21:20 [PATCH] i386: Add missing cpu feature bits in EPYC-Rome model Babu Moger
2021-03-03 9:42 ` David Edmondson
2021-03-03 15:42 ` Babu Moger
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.