projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c585f9f
)
x86/svm: Replace opencoded 1GB superpage check
author
Andrew Cooper
<andrew.cooper3@citrix.com>
Tue, 3 Jan 2017 17:46:58 +0000
(17:46 +0000)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Wed, 4 Jan 2017 18:03:03 +0000
(18:03 +0000)
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/svm/svm.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/svm/svm.c
b/xen/arch/x86/hvm/svm/svm.c
index 89daa39cd205ea4fd8a45cc850b8c4c1e8aa628e..04a7b605532a4207d461c09281e56c74d3aa05c4 100644
(file)
--- a/
xen/arch/x86/hvm/svm/svm.c
+++ b/
xen/arch/x86/hvm/svm/svm.c
@@
-1473,7
+1473,7
@@
const struct hvm_function_table * __init start_svm(void)
svm_function_table.hap_supported = !!cpu_has_svm_npt;
svm_function_table.hap_capabilities = HVM_HAP_SUPERPAGE_2MB |
- (
(cpuid_edx(0x80000001) & 0x04000000)
? HVM_HAP_SUPERPAGE_1GB : 0);
+ (
cpu_has_page1gb
? HVM_HAP_SUPERPAGE_1GB : 0);
return &svm_function_table;
}