aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2019-09-24 09:02:08 -0400
committerThanos <tmakatos@gmail.com>2019-09-27 15:59:11 +0100
commit067dc61aad2d6da96b91b67cf3a932a40ce6b837 (patch)
treee065d0605a0ec5646aa19b56cd804fdf1544edbb /lib
parent8f01dc79daf77a04053c475c510964888ebfc74a (diff)
downloadlibvfio-user-067dc61aad2d6da96b91b67cf3a932a40ce6b837.zip
libvfio-user-067dc61aad2d6da96b91b67cf3a932a40ce6b837.tar.gz
libvfio-user-067dc61aad2d6da96b91b67cf3a932a40ce6b837.tar.bz2
add FIXME comment
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libmuser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libmuser.c b/lib/libmuser.c
index 0660511..140ad9f 100644
--- a/lib/libmuser.c
+++ b/lib/libmuser.c
@@ -1074,6 +1074,10 @@ lm_ctx_create(lm_dev_info_t * const dev_info)
return NULL;
}
+ /*
+ * FIXME need to check that the number of MSI and MSI-X IRQs are valid
+ * (1, 2, 4, 8, 16 or 32 for MSI and up to 2048 for MSI-X).
+ */
for (i = 0; i < LM_DEV_NUM_IRQS; i++) {
if (max_ivs < dev_info->pci_info.irq_count[i]) {
max_ivs = dev_info->pci_info.irq_count[i];