x86/HVM: fix AMD ECS handling for Fam10
authorJan Beulich <jbeulich@suse.com>
Wed, 1 Apr 2020 10:28:30 +0000 (12:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 1 Apr 2020 10:28:30 +0000 (12:28 +0200)
The involved comparison was, very likely inadvertently, converted from
>= 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 <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
xen/arch/x86/hvm/ioreq.c

index 70e61788d788ec144565c3841328860fa2f3344a..c55c4bc4bca5ece57d8bca87cb68494f7bd02318 100644 (file)
@@ -1285,7 +1285,7 @@ struct hvm_ioreq_server *hvm_select_ioreq_server(struct domain *d,
         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;