OSDN Git Service

virtio-net: add support for configure interrupt
authorCindy Lu <lulu@redhat.com>
Thu, 4 Nov 2021 16:48:25 +0000 (00:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Jan 2022 10:19:55 +0000 (05:19 -0500)
commit497679d51087090d5a22fd265d1b96cf92d49d9d
treeda7779e60752070ef5f918dfdc634ce6c4544818
parentf7220a7ce21604a4bc6260ccca4dc9068c1f27f2
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>
hw/net/vhost_net-stub.c
hw/net/vhost_net.c
hw/net/virtio-net.c
include/net/vhost_net.h