svm: Re-enable 2MB super paging
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
Signed-off-by Wei Wang <[email protected]>
Acked-by Wei Huang <[email protected]>
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
@@ -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