x86/HVM: fix AMD ECS handling for Fam 10
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.
xen/arch/x86/hvm/ioreq.c +1 -1
@@ -1284,7 +1284,7 @@ struct hvm_ioreq_server *hvm_select_ioreif (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
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")Signed-off-by Jan Beulich <[email protected]>
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_ioreif (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
[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")Signed-off-by Jan Beulich <[email protected]>Reviewed-by Andrew Cooper <[email protected]>
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_ioreif (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;
Ping²: [PATCH] x86/HVM: fix AMD ECS handling for Fam 10
In reply to Andrew CooperQuoted 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")Signed-off-by Jan Beulich <[email protected]>Reviewed-by Andrew Cooper <[email protected]>
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_ioreif (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;
Paul Durrant
Reviewed-byRE: 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 10Quoted 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")Signed-off-by Jan Beulich <[email protected]>Reviewed-by Andrew Cooper <[email protected]>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
-0x86_fam < 0x17 ) {uint64_t msr_val;