projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b516f0
)
x86/apic: Add Hygon Dhyana support
author
Pu Wen
<puwen@hygon.cn>
Thu, 4 Apr 2019 13:46:42 +0000
(21:46 +0800)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Thu, 6 Jun 2019 14:28:21 +0000
(15:28 +0100)
Add Hygon Dhyana support to use modern APIC.
Signed-off-by: Pu Wen <puwen@hygon.cn>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/apic.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/apic.c
b/xen/arch/x86/apic.c
index fafc0bdcde80cba391e46c25b354e4a5850f16fd..9c3c998d3430049ffc13efa01f4486287cf6265a 100644
(file)
--- a/
xen/arch/x86/apic.c
+++ b/
xen/arch/x86/apic.c
@@
-92,6
+92,11
@@
static int modern_apic(void)
if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD &&
boot_cpu_data.x86 >= 0xf)
return 1;
+
+ /* Hygon systems use modern APIC */
+ if (boot_cpu_data.x86_vendor == X86_VENDOR_HYGON)
+ return 1;
+
lvr = apic_read(APIC_LVR);
version = GET_APIC_VERSION(lvr);
return version >= 0x14;