On Tue, 18 Jun 2019 22:23:51 +0200 Eric Farman <farman@xxxxxxxxxxxxx> wrote: > This is a really useful function, but it's buried in the > copy_ccw_from_iova() routine so that ccwchain_calc_length() > can just work with Format-1 CCWs while doing its counting. > But it means we're translating a full 2K of "CCWs" to Format-1, > when in reality there's probably far fewer in that space. > > Let's factor it out, so maybe we can do something with it later. Agreed, this looks sensible. > > Signed-off-by: Eric Farman <farman@xxxxxxxxxxxxx> > --- > drivers/s390/cio/vfio_ccw_cp.c | 48 ++++++++++++++++++---------------- > 1 file changed, 25 insertions(+), 23 deletions(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>