[PATCH v9 3/4] x86, mce: Add __mcsafe_copy()

2016-02-02 Thread Tony Luck
Make use of the EXTABLE_FAULT exception table entries. This routine returns a structure to indicate the result of the copy: struct mcsafe_ret { u64 trapnr; u64 remain; }; If the copy is successful, then both 'trapnr' and 'remain' are zero. If we faulted during the copy, then

[PATCH v9 3/4] x86, mce: Add __mcsafe_copy()

2016-02-02 Thread Tony Luck
Make use of the EXTABLE_FAULT exception table entries. This routine returns a structure to indicate the result of the copy: struct mcsafe_ret { u64 trapnr; u64 remain; }; If the copy is successful, then both 'trapnr' and 'remain' are zero. If we faulted during the copy, then