|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 4/6] MCE: Fix the vMCE address translation for HVM gu
Fix the vMCE address translation for HVM guest.
Fix address translation when we inject a virtual MCE to HVM guest.
Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>
diff -r ac2951705a86 xen/arch/x86/cpu/mcheck/mce_intel.c
--- a/xen/arch/x86/cpu/mcheck/mce_intel.c Tue Jan 26 20:04:51 2010 +0800
+++ b/xen/arch/x86/cpu/mcheck/mce_intel.c Tue Jan 26 22:49:11 2010 +0800
@@ -371,8 +371,8 @@ static void intel_UCR_handler(struct mci
gfn =
mfn_to_gmfn(d, ((bank->mc_addr) >> PAGE_SHIFT));
- bank->mc_addr =
- gfn << PAGE_SHIFT | (bank->mc_addr & PAGE_MASK);
+ bank->mc_addr = gfn << PAGE_SHIFT |
+ (bank->mc_addr & (PAGE_SIZE -1 ));
if (fill_vmsr_data(bank, global->mc_gstatus) == -1)
{
mce_printk(MCE_QUIET, "Fill vMCE# data for DOM%d
"
mca_add_trans.patch
Description: mca_add_trans.patch
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 4/6] MCE: Fix the vMCE address translation for HVM guest.,
Jiang, Yunhong <=
|
|
|
|
|