aboutsummaryrefslogtreecommitdiff
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorAni Sinha <anisinha@redhat.com>2023-07-05 17:29:23 +0530
committerMichael S. Tsirkin <mst@redhat.com>2023-07-10 18:59:32 -0400
commitca92eb5defcf9d1c2106341744a73a03cf26e824 (patch)
tree8cdffd51b32cf83407d26571121556d41440dd68 /hw/net/virtio-net.c
parent579edbd459a53beb7929ee1169dc9675cc329865 (diff)
downloadqemu-ca92eb5defcf9d1c2106341744a73a03cf26e824.zip
qemu-ca92eb5defcf9d1c2106341744a73a03cf26e824.tar.gz
qemu-ca92eb5defcf9d1c2106341744a73a03cf26e824.tar.bz2
hw/pci: warn when PCIe device is plugged into non-zero slot of downstream port
PCIe downstream ports only have a single device 0, so PCI Express devices can only be plugged into slot 0 on a PCIe port. Add a warning to let users know when the invalid configuration is used. We may enforce this more strongly later once we get more clarity on whether we are introducing a bad regression for users currently using the wrong configuration. The change has been tested to not break or alter behaviors of ARI capable devices by instantiating seven vfs on an emulated igb device (the maximum number of vfs the igb device supports). The vfs are instantiated correctly and are seen to have non-zero device/slot numbers in the conventional PCI BDF representation. CC: jusual@redhat.com CC: imammedo@redhat.com CC: mst@redhat.com CC: akihiko.odaki@daynix.com Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2128929 Signed-off-by: Ani Sinha <anisinha@redhat.com> Reviewed-by: Julia Suvorova <jusual@redhat.com> Message-Id: <20230705115925.5339-6-anisinha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions