* Pierre Morel <pmorel@xxxxxxxxxxxxxxxxxx> [2018-05-03 16:26:29 +0200]:
On 02/05/2018 09:46, Dong Jia Shi wrote:As far as I see, that's not true. ;)
* Cornelia Huck <cohuck@xxxxxxxxxx> [2018-04-30 17:33:05 +0200]::) Isn't it exactly what my patch series handle?
On Thu, 26 Apr 2018 15:48:06 +0800We cann't... So let's assign fsm_nop() as the interrupt callback for
Dong Jia Shi <bjsdjshi@xxxxxxxxxxxxxxxxxx> wrote:
* Dong Jia Shi <bjsdjshi@xxxxxxxxxxxxxxxxxx> [2018-04-26 15:30:54 +0800]:But how do we even get into that situation when we don't have an mdev
[...]
I see my problem, for STANDBY state, we should introduce another event@@ -179,7 +160,7 @@ static int fsm_irq(struct vfio_ccw_private *private,This is not right. For example, if we are in STANDBY state (subch driver
if (private->io_trigger)
eventfd_signal(private->io_trigger, 1);
- return private->state;
+ return VFIO_CCW_STATE_IDLE;
is probed, but mdev device is not created), we can not jump to IDLE
state.
callback for VFIO_CCW_EVENT_INTERRUPT. It doesn't make sense to call
fsm_irq() which tries to signal userspace with interrupt notification
when mdev is not created yet... So we'd need a separated fix for this
issue too.
yet?
STANDBY state?
After this series applied,
vfio_ccw_jumptable[VFIO_CCW_STATE_STANDBY][VFIO_CCW_EVENT_INTERRUPT] is
still fsm_irq().