qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH RESEND 4/4] target/i386: Add notes for versioned CPU models


From: Xiaoyao Li
Subject: Re: [PATCH RESEND 4/4] target/i386: Add notes for versioned CPU models
Date: Thu, 5 Dec 2019 16:44:55 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

On 12/2/2019 2:32 PM, Tao Xu wrote:
Add which features are added or removed in this version. Remove the
changed model-id in versioned CPU models.

Signed-off-by: Tao Xu <address@hidden>
---
  target/i386/cpu.c | 50 +++++++++++++++++++++++------------------------
  1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 7b3bd6d4db..c82fbfd02e 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c

[...]

@@ -3141,6 +3133,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
          .versions = (X86CPUVersionDefinition[]) {
              { .version = 1 },
              { .version = 2,
+              .note = "ARCH_CAPABILITIES",

Here ARCH_CAPABILITIES doesn't tell what bits in MSR_IA32_ARCH_CAPABILITIES this version has, which makes it meaningless.

Maybe
        .note = "ARCH_CAPABLITIES(rdctl-no, ibrs-all, skip-l1dfl-vmentry, 
mds-no)",

is better?

                .props = (PropValue[]) {
                    { "arch-capabilities", "on" },
                    { "rdctl-no", "on" },
@@ -3152,6 +3145,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
              },
              { .version = 3,
                .alias = "Cascadelake-Server-noTSX",
+              .note = "no TSX",
                .props = (PropValue[]) {
                    { "hle", "off" },
                    { "rtm", "off" },





reply via email to

[Prev in Thread] Current Thread [Next in Thread]