hi,
but what is the usecase of this "feature"
it allows you to set an arbitrary vendor ID and device ID for the passthroughed device, e.g. your GPU.
the guest would then see that ID, instead of the actual vendor of the device.
for a standard PCI passthrough normally it's not necessary to spoof this value.
what format do i have to enter the Vendor / Device ID?
it's in the form of hexadecimal numbers, for example
0x1002
or
0x1022
in the beginning is for AMD devices (vendor ID). you can also look them up in
/usr/share/misc/pci.ids
. to see your devices ids' you can use
lspci -nn
. the last part that looks like
[somenumber:somenumber]
is the identifier, e.g.
[10de:0040]
would be NVIDIA GeForce 6800 Ultra, and would have the values
0x10de
(vendor ID) and
0x0040
(device ID).
also take a look here [0] and
man pci.ids
hope this explains some things for you!
[0]:
https://wiki.debian.org/HowToIdentifyADevice/PCI