From c00b0288a75782c75abd0b9959021fd2417c8a28 Mon Sep 17 00:00:00 2001 From: "Joshua M. Clulow" Date: Sun, 24 Nov 2019 09:13:47 -0800 Subject: [PATCH] 12014 virtio_init_complete() comment should describe interrupt type parameter Reviewed by: C Fraire Reviewed by: Toomas Soome Approved by: Dan McDonald --- usr/src/uts/common/io/virtio/virtio_impl.h | 2 +- usr/src/uts/common/io/virtio/virtio_main.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/src/uts/common/io/virtio/virtio_impl.h b/usr/src/uts/common/io/virtio/virtio_impl.h index 518667c7f4..af786583f4 100644 --- a/usr/src/uts/common/io/virtio/virtio_impl.h +++ b/usr/src/uts/common/io/virtio/virtio_impl.h @@ -258,7 +258,7 @@ struct virtio_vq_elem { /* * This structure is variously known as the "used" ring, or the device-owned * portion of the queue structure. It is used by the device to return - * completed descriptor chains to the device. + * completed descriptor chains to the driver. */ struct virtio_vq_device { uint16_t vqde_flags; diff --git a/usr/src/uts/common/io/virtio/virtio_main.c b/usr/src/uts/common/io/virtio/virtio_main.c index cb81142a53..04b22709e8 100644 --- a/usr/src/uts/common/io/virtio/virtio_main.c +++ b/usr/src/uts/common/io/virtio/virtio_main.c @@ -323,7 +323,9 @@ virtio_init(dev_info_t *dip, uint64_t driver_features, boolean_t allow_indirect) /* * This function must be called by the driver once it has completed early setup - * calls. + * calls. The value of "allowed_interrupt_types" is a mask of interrupt types + * (DDI_INTR_TYPE_MSIX, etc) that we'll try to use when installing handlers, or + * the special value 0 to allow the system to use any available type. */ int virtio_init_complete(virtio_t *vio, int allowed_interrupt_types) -- 2.45.2