* [PATCH] svm: Re-enable 2MB super paging
@ 2010-10-19 15:38 Wei Wang2
0 siblings, 0 replies; only message in thread
From: Wei Wang2 @ 2010-10-19 15:38 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 469 bytes --]
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 <wei.wang2@amd.com>
Acked-by: Wei Huang <wei.huang2@amd.com>
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
[-- Attachment #2: fix_2mb.patch --]
[-- Type: text/x-diff, Size: 645 bytes --]
diff -r 3a5755249361 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c Thu Oct 14 12:46:29 2010 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c Tue Oct 19 14:40:13 2010 +0200
@@ -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;
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-19 15:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19 15:38 [PATCH] svm: Re-enable 2MB super paging Wei Wang2
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.