]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86 mce: fix c/s 17968 for 32-on-64
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 12:11:56 +0000 (13:11 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 12:11:56 +0000 (13:11 +0100)
commit57f5ad16f884c8a1ce326dcf0272b4fb4abc8c8d
tree42298acd97219747d75a9adec51ce5c3f3cc74f1
parent39a239fc0439e21684b75494fd2506ef7ce74b26
x86 mce: fix c/s 17968 for 32-on-64

32-on-64 aspects were not properly considered. Add respective
checking, and adjust structure layouts for the cases where the
checking pointed out issues.

Also,
- fix a potential memory corruption issue (do_mca() could write beyond
  log_cpus' end if the guest specified less than the number of online
  CPUs
- there is no reason to make the (not even properly prefixed)
  definitions in xen/public/arch-x86/xen-mca.h globally visible by
  including the file from xen/public/arch-x86/xen.h.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/x86_mca.h
xen/include/public/arch-x86/xen-mca.h
xen/include/public/arch-x86/xen.h
xen/include/xlat.lst
xen/tools/get-fields.sh