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

From: Peter Zijlstra
Date: Thu Feb 18 2016 - 05:35:59 EST


On Thu, Feb 18, 2016 at 11:19:42AM +0100, Ingo Molnar wrote:
> > I think the whole notion of mcsafe here is 'wrong'. This copy variant simply
> > reports the kind of trap that happened (#PF or #MC) and could arguably be
> > extended to include more types if the hardware were to generate more.
>
> What would a better name be? memcpy_ret() or so?

Yeah, uhmm.. naming. More options from the lack of inspiration department:

memcpy_trap()
memcpy_ex()