So, honestly, there are no ways to know the parent PCI device since we don't persist mdevs and to be honest, that's not something Nova should do since it's a KVM/kernel issue.
Leaving the bug open until we figure out a good way to either document or fix this.
Thanks for reporting !
Oh shit, you're right, we can't lookup the existing mdev info [1] to know its parent PCI device since the mdev disappeared after rebooting...
[1] https:/ /github. com/openstack/ nova/blob/ 450213f/ nova/virt/ libvirt/ driver. py#L816
So, honestly, there are no ways to know the parent PCI device since we don't persist mdevs and to be honest, that's not something Nova should do since it's a KVM/kernel issue.
Leaving the bug open until we figure out a good way to either document or fix this.