x86/mce: set mcinfo_comm.type and .size in x86_mcinfo_reserve()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Wed, 8 Mar 2017 14:10:06 +0000 (15:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Mar 2017 14:10:06 +0000 (15:10 +0100)
commit2bb81abf0430cbe9a7d4dd29f32ee1d0b47a16d7
tree91818ba2052507890e6f68877c02aeb2d40a6c67
parent9dfba75334d31aa09a66ff5476ddf16595a41697
x86/mce: set mcinfo_comm.type and .size in x86_mcinfo_reserve()

All existing calls to x86_mcinfo_reserve() are followed by statements
that set the size and the type of the reserved space, so move them into
x86_mcinfo_reserve() to simplify the code.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/mcaction.c
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/cpu/mcheck/mce_amd.c
xen/arch/x86/cpu/mcheck/mce_intel.c