]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-ccw: Skip second copy of guest cp to host
authorEric Farman <farman@linux.ibm.com>
Tue, 18 Jun 2019 20:23:49 +0000 (22:23 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 21 Jun 2019 12:12:29 +0000 (14:12 +0200)
commite79791eb98e5fc44777288b4a6f31ce58f647ec7
treefcdd550725a592df9273e0ebfa43e7e095a785ef
parent3d20f9e5819af5780b2b84ff741ef12e3b97d17a
vfio-ccw: Skip second copy of guest cp to host

We already pinned/copied/unpinned 2K (256 CCWs) of guest memory
to the host space anchored off vfio_ccw_private.  There's no need
to do that again once we have the length calculated, when we could
just copy the section we need to the "permanent" space for the I/O.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20190618202352.39702-3-farman@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Farhan Ali <alifm@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_cp.c