projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87ca6a2
)
x86/traps: Add Hygon Dhyana support
author
Pu Wen
<puwen@hygon.cn>
Thu, 4 Apr 2019 13:47:54 +0000
(21:47 +0800)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Thu, 6 Jun 2019 14:28:21 +0000
(15:28 +0100)
The Hygon Dhyana processor has the methold to get the last exception
source IP from MSR0000_01DD. So add support for it if the boot param
ler is true.
Signed-off-by: Pu Wen <puwen@hygon.cn>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/traps.c
b/xen/arch/x86/traps.c
index ba1053fa68a5e2389417a46f3821ddb633137533..8097ef3bf509a2f1561e8babc6aab43990fc2314 100644
(file)
--- a/
xen/arch/x86/traps.c
+++ b/
xen/arch/x86/traps.c
@@
-1973,6
+1973,9
@@
static unsigned int calc_ler_msr(void)
return MSR_IA32_LASTINTFROMIP;
}
break;
+
+ case X86_VENDOR_HYGON:
+ return MSR_IA32_LASTINTFROMIP;
}
return 0;