RE: [RFC Part1 PATCH v3 13/17] x86/io: Unroll string I/O when SEV is active

From: David Laight
Date: Thu Jul 27 2017 - 03:45:46 EST


From: Brijesh Singh
> Sent: 26 July 2017 21:07
...
> I am not sure if I understand your concern.
>
> Are you commenting on amount of code duplication ? If so, I can certainly improve
> and use the similar macro used into header file to generate the functions body.

If you are careful the real functions could expand the inline functions
that get used when SEV is compiled out.

Oh, if you are looking at this, can you fix memcpy_to_io()
so that it is never 'rep movsb'?

David