Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen/mce: Register native mce handler as vMCE bounce back point

When Xen hypervisor inject vMCE to guest, use native mce handler
to handle it

Signed-off-by: Ke, Liping <liping.ke@intel.com>
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

authored by

Liu, Jinsong and committed by
Konrad Rzeszutek Wilk
05e36006 a8fccdb0

+7 -3
+7 -3
arch/x86/xen/enlighten.c
··· 626 626 /* 627 627 * Look for known traps using IST, and substitute them 628 628 * appropriately. The debugger ones are the only ones we care 629 - * about. Xen will handle faults like double_fault and 630 - * machine_check, so we should never see them. Warn if 629 + * about. Xen will handle faults like double_fault, 630 + * so we should never see them. Warn if 631 631 * there's an unexpected IST-using fault handler. 632 632 */ 633 633 if (addr == (unsigned long)debug) ··· 642 642 return 0; 643 643 #ifdef CONFIG_X86_MCE 644 644 } else if (addr == (unsigned long)machine_check) { 645 - return 0; 645 + /* 646 + * when xen hypervisor inject vMCE to guest, 647 + * use native mce handler to handle it 648 + */ 649 + ; 646 650 #endif 647 651 } else { 648 652 /* Some other trap using IST? */