On Thu, May 23, 2019 at 2:55 PM Stefan Hajnoczi wrote:
> @@ -2253,10 +2254,18 @@ static void virtio_vmstate_change(void *opaque, int
> running, RunState state)
> virtio_set_status(vdev, vdev->status);
> }
>
> +if (!backend_run && k->vmstate_change) {
> +vdc->vmstate_chan
The core virtio code invokes ->set_status() followed by
->ioeventfd_start() when the guest resumes execution. Both of these
functions are also called in other cases unrelated to vm change state.
This patch introduces ->vmstate_change() so that devices can act on
guest pause/resume. The existing