这个是虚拟机安装固有的BUG,代码差异如下:

  1. diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
  2. index d1ca26e..c46a00f 100644
  3. --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
  4. +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
  5. @@-505,14+505,11@@ igbuio_pci_probe(struct pci_dev *dev,conststruct pci_device_id *id)
  6. }
  7. /* fall back to INTX */
  8. case RTE_INTR_MODE_LEGACY:
  9. -if(pci_intx_mask_supported(dev)){
  10. - dev_dbg(&dev->dev,"using INTX");
  11. - udev->info.irq_flags = IRQF_SHARED;
  12. - udev->info.irq = dev->irq;
  13. - udev->mode = RTE_INTR_MODE_LEGACY;
  14. -break;
  15. -}
  16. - dev_notice(&dev->dev,"PCI INTX mask not supported\n");
  17. + dev_dbg(&dev->dev,"using INTX");
  18. + udev->info.irq_flags = IRQF_SHARED;
  19. + udev->info.irq = dev->irq;
  20. + udev->mode = RTE_INTR_MODE_LEGACY;
  21. +break;
  22. /* fall back to no IRQ */
  23. case RTE_INTR_MODE_NONE:
  24. udev->mode = RTE_INTR_MODE_NONE;
虚拟机EAL: Error reading from file descriptor-LMLPHP

 
04-26 15:32