Skip to contentSkip to conversation

x86/HVM: fix AMD ECS handling for Fam 10

PATCH In review Jan Beulich 3 participants 5 messages Mar 16, 2020 – Mar 31, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/HVM: fix AMD ECS handling for Fam 10

The involved comparison was, very likely inadvertently, converted from

Quoted 1 line

= to > when making changes unrelated to the actual family range.

Fixes 9841eb71ea87 ("x86/cpuid: Drop a guests cached x86 family and model information")
xen/arch/x86/hvm/ioreq.c +1 -1
@@ -1284,7 +1284,7 @@ struct hvm_ioreq_server *hvm_select_iore
         if ( CF8_ADDR_HI(cf8) &&
              d->arch.cpuid->x86_vendor == X86_VENDOR_AMD &&
              (x86_fam = get_cpu_family(
-                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) > 0x10 &&
+                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) >= 0x10 &&
              x86_fam < 0x17 )
         {
             uint64_t msr_val;

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jan Beulich

The involved comparison was, very likely inadvertently, converted from

Quoted 1 line

= to > when making changes unrelated to the actual family range.

Fixes 9841eb71ea87 ("x86/cpuid: Drop a guests cached x86 family and model information")

xen/arch/x86/hvm/ioreq.c struct hvm_ioreq_server *hvm_select_iore · line 1290

Quoted 13 lines
xen/arch/x86/hvm/ioreq.c +1 -1
@@ -1284,7 +1284,7 @@ struct hvm_ioreq_server *hvm_select_iore
         if ( CF8_ADDR_HI(cf8) &&
              d->arch.cpuid->x86_vendor == X86_VENDOR_AMD &&
              (x86_fam = get_cpu_family(
-                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) > 0x10 &&
+                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) >= 0x10 &&
              x86_fam < 0x17 )
         {
             uint64_t msr_val;

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw

[Xen-devel] Ping: [PATCH] x86/HVM: fix AMD ECS handling for Fam 10

Quoted 8 lines · Andrew Cooper
Quoted 5 lines · Jan Beulich

The involved comparison was, very likely inadvertently, converted from

Quoted 1 line

= to > when making changes unrelated to the actual family range.

Fixes 9841eb71ea87 ("x86/cpuid: Drop a guests cached x86 family and model information")

Paul?

Quoted 13 lines
Quoted 12 lines
xen/arch/x86/hvm/ioreq.c +1 -1
@@ -1284,7 +1284,7 @@ struct hvm_ioreq_server *hvm_select_iore
         if ( CF8_ADDR_HI(cf8) &&
              d->arch.cpuid->x86_vendor == X86_VENDOR_AMD &&
              (x86_fam = get_cpu_family(
-                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) > 0x10 &&
+                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) >= 0x10 &&
              x86_fam < 0x17 )
         {
             uint64_t msr_val;
#3 lore raw

Ping²: [PATCH] x86/HVM: fix AMD ECS handling for Fam 10

In reply to Andrew Cooper
Quoted 8 lines · Andrew Cooper
Quoted 5 lines · Jan Beulich

The involved comparison was, very likely inadvertently, converted from

Quoted 1 line

= to > when making changes unrelated to the actual family range.

Fixes 9841eb71ea87 ("x86/cpuid: Drop a guests cached x86 family and model information")

Paul?

Quoted 13 lines
Quoted 12 lines
xen/arch/x86/hvm/ioreq.c +1 -1
@@ -1284,7 +1284,7 @@ struct hvm_ioreq_server *hvm_select_iore
         if ( CF8_ADDR_HI(cf8) &&
              d->arch.cpuid->x86_vendor == X86_VENDOR_AMD &&
              (x86_fam = get_cpu_family(
-                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) > 0x10 &&
+                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) >= 0x10 &&
              x86_fam < 0x17 )
         {
             uint64_t msr_val;
Reviewed-by
#4 lore raw

RE: Ping²: [PATCH] x86/HVM: fix AMD ECS handling for Fam 10

Quoted 11 lines

-----Original Message-----
From: Jan Beulich <[email protected]>
Sent: 31 March 2020 13:16
To: Paul Durrant <[email protected]>
Cc: Andrew Cooper <[email protected]>; [email protected]; Wei Liu <[email protected]>; Roger Pau Monné <[email protected]>
Subject: Ping²: [PATCH] x86/HVM: fix AMD ECS handling for Fam 10

Quoted 2 lines · Andrew Cooper
Quoted 1 line · Jan Beulich

The involved comparison was, very likely inadvertently, converted from

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

= to > when making changes unrelated to the actual family range.

Fixes 9841eb71ea87 ("x86/cpuid: Drop a guests cached x86 family and model information")

Paul?

Sorry, missed that. My mail filters appear to have let me down...

Quoted 8 lines
Quoted 8 lines

xen/arch/x86/hvm/ioreq.c struct hvm_ioreq_server *hvm_select_iore · line 1287

Quoted 8 lines
xen/arch/x86/hvm/ioreq.c +1 -1
@@ -1284,7 +1284,7 @@ struct hvm_ioreq_server *hvm_select_iore
         if ( CF8_ADDR_HI(cf8) &&
              d->arch.cpuid->x86_vendor == X86_VENDOR_AMD &&
              (x86_fam = get_cpu_family(
-                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) > 0x10 &&
+                 d->arch.cpuid->basic.raw_fms, NULL, NULL)) >= 0x10 &&

LGTM

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
xen/arch/x86/hvm/ioreq.c +0 -0
              x86_fam < 0x17 )
         {
             uint64_t msr_val;