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

[Xen-devel] [PATCH v2 1/3] x86/AMD: feature masking is unavailable on Fam11



Reported-by: Aravind Gopalakrishnan<aravind.gopalakrishnan@xxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/x86/cpu/amd.c
+++ b/xen/arch/x86/cpu/amd.c
@@ -107,6 +107,10 @@ static void __devinit set_cpuidmask(cons
        ASSERT((status == not_parsed) && (smp_processor_id() == 0));
        status = no_mask;
 
+       /* Fam11 doesn't support masking at all. */
+       if (c->x86 == 0x11)
+               return;
+
        if (~(opt_cpuid_mask_ecx & opt_cpuid_mask_edx &
              opt_cpuid_mask_ext_ecx & opt_cpuid_mask_ext_edx)) {
                feat_ecx = opt_cpuid_mask_ecx;
@@ -176,7 +180,6 @@ static void __devinit set_cpuidmask(cons
               extfeat_ecx, extfeat_edx);
 
  setmask:
-       /* FIXME check if processor supports CPUID masking */
        /* AMD processors prior to family 10h required a 32-bit password */
        if (c->x86 >= 0x10) {
                wrmsr(MSR_K8_FEATURE_MASK, feat_edx, feat_ecx);



Attachment: x86-AMD-Fam11-no-feature-masks.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.