Re: [PATCH v12] x86, mce: Add memcpy_trap()

2016-02-19 Thread Ingo Molnar
* Luck, Tony wrote: > 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 trap_nr; > u64 bytes_left; > }; > > If the copy is successful, then both 'trap_nr' and 'bytes_left'

[PATCH v12] x86, mce: Add memcpy_trap()

2016-02-18 Thread Luck, Tony
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 trap_nr; u64 bytes_left; }; If the copy is successful, then both 'trap_nr' and 'bytes_left' are zero. If we faulted during the copy,