Driver is not working under Virtual machine

Hello,

I wrote a device driver for a PCIe card.

Basically, the card gets a fast serial data. The HW copies the data to the PC’s RAM.

Upon 4MB of data the FPGA creates an interrupt.

It works Ok under windows 7-64.

But the same driver is not working in a virtual machine.

No interrupts received.

Should I modify the driver to support this scenario or is it a problem in the virtual machine (VMware).

Thank you,
Z.V

Sent from Mail for Windows 10

Hi Z.V,

check the following:

  1. The specific hardware exist in the virtual machine. Normally you need a
    PCI-Pass-Through technique to make the PCIE card appears in VM.
  2. If the card is recognized in VM, check if you have “IOMMU” enabled in
    BIOS. For Intel platform, this is called Intel VT-d technology. For AMD
    platform, it is called IOMMU or something like that.
  3. If you are using MSI or MSI-x interrupt, you need to check MSI/MSI-x is
    properly configured in hypervisor. I am not familiar with VMWare, but I am
    able to do MSI/MSI-x on QEMU/kvm. As far as I can recall, there is some
    trick to enable MSI/MSI-x in VM. You just need to Google it.

Good luck.

JiaBang

2017-03-09 11:05 GMT+08:00 :

> Hello,
>
>
>
> I wrote a device driver for a PCIe card.
>
>
>
> Basically, the card gets a fast serial data. The HW copies the data to the
> PC’s RAM.
>
>
>
> Upon 4MB of data the FPGA creates an interrupt.
>
>
>
> It works Ok under windows 7-64.
>
>
>
> But the same driver is not working in a virtual machine.
>
>
>
> No interrupts received.
>
>
>
> Should I modify the driver to support this scenario or is it a problem in
> the virtual machine (VMware).
>
>
>
> Thank you,
>
> Z.V
>
>
>
> Sent from Mail https: for
> Windows 10
>
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: http:> showlists.cfm?list=ntdev>
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:></http:></https:>