VMware Cloud Community
renjunw
Contributor
Contributor

ESXi6.7- PCIe passThrough device not working with MSI interrupt mode.

hi all

     I have a PCIe device on ESXi6.7, and config it passThrough to guest operation system(ubuntu 16.04TLS).I refer to the following knowledge base pages:

https://kb.vmware.com/s/article/2142307

https://kb.vmware.com/s/article/1010789

The PCIe device driver under guest os must use MSI interrupt mode with 32 messages request.

Using command "lspci -xxx" got different MSI register value on host ESXi and guest operation system.

The "81  01" value for MSI means allows 1 messages request.So the driver not working.

why the register value are different in host ESXi and guest OS?

host ESXi  lspci -d

00: 57 1e 01 00 06 04 10 00 00 00 00 12 10 00 00 00

10: 00 00 30 f7 00 00 00 00 0c 00 e4 ff 2f 00 00 00

20: 0c 00 e0 ff 2f 00 00 00 00 00 00 00 57 1e 01 00

30: 00 00 00 00 40 00 00 00 00 00 00 00 0a 01 00 00

40: 01 50 c3 df 08 00 00 00 00 00 00 00 00 00 00 00

50: 05 70 8b 01 98 02 e0 fe 00 00 00 00 00 00 00 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 10 00 02 00 c2 8f 2c 11 30 20 10 00 01 6d 43 00

80: 40 00 81 10 00 00 00 00 00 00 00 00 00 00 00 00

90: 00 00 00 00 10 00 00 80 00 00 00 00 02 00 00 80

a0: 03 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00

b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

guest lspci -xxx

00: 57 1e 01 00 07 04 10 00 00 00 00 12 10 40 00 00

10: 00 00 30 fd 00 00 00 00 0c 00 af e7 00 00 00 00

20: 0c 00 a8 e7 00 00 00 00 00 00 00 00 57 1e 01 00

30: 00 00 00 00 40 00 00 00 00 00 00 00 07 01 00 00

40: 01 50 c3 df 08 00 00 00 00 00 00 00 00 00 00 00

50: 05 70 81 01 00 00 e0 fe 00 00 00 00 e5 40 00 00

60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

70: 10 00 02 00 00 00 00 00 00 00 00 00 02 06 00 00

80: 00 00 02 02 00 00 00 00 00 00 00 00 00 00 00 00

90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Tags (1)
0 Kudos
0 Replies