diff options
author | Cindy Lu | 2021-11-04 17:48:25 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2022-01-07 11:19:55 +0100 |
commit | 497679d51087090d5a22fd265d1b96cf92d49d9d (patch) | |
tree | da7779e60752070ef5f918dfdc634ce6c4544818 /include/net | |
parent | vhost: add support for configure interrupt (diff) | |
download | qemu-497679d51087090d5a22fd265d1b96cf92d49d9d.tar.gz qemu-497679d51087090d5a22fd265d1b96cf92d49d9d.tar.xz qemu-497679d51087090d5a22fd265d1b96cf92d49d9d.zip |
virtio-net: add support for configure interrupt
Add functions to support configure interrupt in virtio_net
The functions are config_pending and config_mask, while
this input idx is VIRTIO_CONFIG_IRQ_IDX will check the
function of configure interrupt.
Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20211104164827.21911-9-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/vhost_net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/vhost_net.h b/include/net/vhost_net.h index 387e913e4e..fc37498550 100644 --- a/include/net/vhost_net.h +++ b/include/net/vhost_net.h @@ -39,6 +39,8 @@ int vhost_net_set_config(struct vhost_net *net, const uint8_t *data, bool vhost_net_virtqueue_pending(VHostNetState *net, int n); void vhost_net_virtqueue_mask(VHostNetState *net, VirtIODevice *dev, int idx, bool mask); +bool vhost_net_config_pending(VHostNetState *net); +void vhost_net_config_mask(VHostNetState *net, VirtIODevice *dev, bool mask); int vhost_net_notify_migration_done(VHostNetState *net, char* mac_addr); VHostNetState *get_vhost_net(NetClientState *nc); |