um: virtio: disable VQs during suspend
authorJohannes Berg <johannes.berg@intel.com>
Tue, 15 Dec 2020 09:52:23 +0000 (10:52 +0100)
committerRichard Weinberger <richard@nod.at>
Fri, 12 Feb 2021 20:22:32 +0000 (21:22 +0100)
commit9b84512cfe601759f66ee594b2d5aa07788251ea
tree366fbad250a9585f47366aee25bfc9f347a66ffa
parent10c2b5aeb21c439251e5e828bf1362f89ab3de49
um: virtio: disable VQs during suspend

If the system is suspended, the device shouldn't be able to send
anything to it. Disable virtqueues in suspend to simulate this,
and as we might be only using s2idle (kernel services are still
on), prevent sending anything on them as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/virtio_uml.c