[PATCH 1/3] xen/mce: Add mcelog support for Xen platform (RFC)

From: Liu, Jinsong
Date: Mon May 28 2012 - 10:48:10 EST


>
> ===================
>
> Borislav and Konrad,
>
> An approach which basically same as you suggested but w/ slightly
> update, is 1). at xen/mcelog.c, do
> misc_register(&xen_mce_chrdev_device) at xen_late_init_mcelog, define
> it as device_initcall(xen_late_init_mcelog) --> now linux dd ready,
> so xen mcelog divice would register successfully; 2). at native
> mce.c, change 1 line from device_initcall(mcheck_init_device) to
> device_initcall_sync(mcheck_init_device) --> so
> misc_register(&mce_chrdev_device) would be blocked by xen mcelog
> device;
>
> I have draft test it and works fine.
> Thought?
>

=====================
RFC patch attached:
=====================