s390/cio: Set vfio-ccw FSM state before ioeventfd
authorEric Farman <farman@linux.ibm.com>
Tue, 14 May 2019 23:42:43 +0000 (01:42 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 3 Jun 2019 10:02:55 +0000 (12:02 +0200)
commit4e31d6aecfbbe63cf09b8fe48572d20d2062c406
treeb94b89dd94a3baf03007a75e187bd0cd17573a41
parent15f0eb3d6a62b22b27449329f04ee9aa0d218c6a
s390/cio: Set vfio-ccw FSM state before ioeventfd

Otherwise, the guest can believe it's okay to start another I/O
and bump into the non-idle state.  This results in a cc=2 (with
the asynchronous CSCH/HSCH code) returned to the guest, which is
unfortunate since everything is otherwise working normally.

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