debuggers.hg

changeset 20910:da5faf9f5df8

x86 mca: 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@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 29 06:49:13 2010 +0000 (2010-01-29)
parents 805eae786b50
children 088f1b01d852
files xen/arch/x86/cpu/mcheck/mce_intel.c
line diff
     1.1 --- a/xen/arch/x86/cpu/mcheck/mce_intel.c	Fri Jan 29 06:48:37 2010 +0000
     1.2 +++ b/xen/arch/x86/cpu/mcheck/mce_intel.c	Fri Jan 29 06:49:13 2010 +0000
     1.3 @@ -371,8 +371,8 @@ static void intel_UCR_handler(struct mci
     1.4  
     1.5                            gfn =
     1.6                                mfn_to_gmfn(d, ((bank->mc_addr) >> PAGE_SHIFT));
     1.7 -                          bank->mc_addr =
     1.8 -                              gfn << PAGE_SHIFT | (bank->mc_addr & PAGE_MASK);
     1.9 +                          bank->mc_addr =  gfn << PAGE_SHIFT |
    1.10 +                                        (bank->mc_addr & (PAGE_SIZE -1 ));
    1.11                            if (fill_vmsr_data(bank, global->mc_gstatus) == -1)
    1.12                            {
    1.13                                mce_printk(MCE_QUIET, "Fill vMCE# data for DOM%d "