Skip to contentSkip to conversation

svm: Re-enable 2MB super paging

PATCH New Wei Wang2 1 participant 1 message Oct 19, 2010

lore
Share & tools
lore

Wei Wang2

author
#0 lore raw

PATCH 1/1 svm: Re-enable 2MB super paging

Bitwise OR operator has higher precedence than conditional operator. This patch fixes the incorrect associativity and re-enables 2MB paging for AMD family 10h system.
Thanks,
Wei

Legal Information:
Advanced Micro Devices GmbH
Sitz: Dornach, Gemeinde Aschheim,
Landkreis München Registergericht München,
HRB Nr. 43632
Geschäftsführer:
Alberto Bozzo, Andrew Bowd

xen/arch/x86/hvm/svm/svm.c +2 -2
diff -r 3a5755249361 xen/arch/x86/hvm/svm/svm.c
@@ -904,8 +904,8 @@ struct hvm_function_table * __init start
 
     svm_function_table.hap_supported = cpu_has_svm_npt;
     svm_function_table.hap_capabilities = HVM_HAP_SUPERPAGE_2MB |
-        ((CONFIG_PAGING_LEVELS == 4) && (cpuid_edx(0x80000001) & 0x04000000)) ?
-            HVM_HAP_SUPERPAGE_1GB : 0;
+        (((CONFIG_PAGING_LEVELS == 4) && (cpuid_edx(0x80000001) & 0x04000000)) ?
+            HVM_HAP_SUPERPAGE_1GB : 0);
 
     return &svm_function_table;
 }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel