Pci_passthrough

Reuven

Member
Oct 22, 2019
73
2
11
58
Hi. In the wiki here

https://pve.proxmox.com/wiki/Pci_passthrough

there is a script that seems contradictory. It is supposed to tell you whether your system has Interrupt remapping support but in this script there are 2 answer options which are really the same:

#!/bin/sh
if [ $(dmesg | grep ecap | wc -l) -eq 0 ]; then
echo "No interrupt remapping support found"
exit 1
fi

for i in $(dmesg | grep ecap | awk '{print $NF}'); do
if [ $(( (0x$i & 0xf) >> 3 )) -ne 1 ]; then
echo "Interrupt remapping not supported"
exit 1
fi
done

Which is the answer for yes and which one is for no ??

Thanks for your help in advance....
 
The first if statement is just an early exit, because no further check needed if there is no output from grep for "ecap".
 
Which is the answer for yes and which one is for no ??

I was also puzzled at first glance as the descriptive text suggest an answer in the case that you have irq remapping support, but it is not. If the command does not output that you do not have irq remapping support, you will actually have remapping support and everything should work as expected.