File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -530,8 +530,11 @@ int vfio_pci_core_enable(struct vfio_pci_core_device *vdev)
530
530
vdev -> msix_bar = table & PCI_MSIX_TABLE_BIR ;
531
531
vdev -> msix_offset = table & PCI_MSIX_TABLE_OFFSET ;
532
532
vdev -> msix_size = ((flags & PCI_MSIX_FLAGS_QSIZE ) + 1 ) * 16 ;
533
- } else
533
+ vdev -> has_dyn_msix = pci_msix_can_alloc_dyn (pdev );
534
+ } else {
534
535
vdev -> msix_bar = 0xFF ;
536
+ vdev -> has_dyn_msix = false;
537
+ }
535
538
536
539
if (!vfio_vga_disabled () && vfio_pci_is_vga (pdev ))
537
540
vdev -> has_vga = true;
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ struct vfio_pci_core_device {
68
68
u16 msix_size ;
69
69
u32 msix_offset ;
70
70
u32 rbar [7 ];
71
+ bool has_dyn_msix :1 ;
71
72
bool pci_2_3 :1 ;
72
73
bool virq_disabled :1 ;
73
74
bool reset_works :1 ;
You can’t perform that action at this time.
0 commit comments