vhost: add support for configure interrupt
commitf7220a7ce21604a4bc6260ccca4dc9068c1f27f2
authorCindy Lu <lulu@redhat.com>
Thu, 4 Nov 2021 16:48:24 +0000 (5 00:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Jan 2022 11:11:39 +0000 (6 06:11 -0500)
treed78cec9ed991623ee953ddbcd040ab100c7409f8
parent081f864f56307551f59c5e934e3f30a7290d0faa
vhost: add support for configure interrupt

Add functions to support configure interrupt.
The configure interrupt process will start in vhost_dev_start
and stop in vhost_dev_stop.

Also add the functions to support vhost_config_pending and
vhost_config_mask, for masked_config_notifier, we only
use the notifier saved in vq 0.

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20211104164827.21911-8-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c
include/hw/virtio/vhost.h