pcie_sriov: Ensure VF addr does not overflow
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 16 Jan 2025 09:00:58 +0000 (18:00 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 20 Feb 2025 23:23:19 +0000 (18:23 -0500)
commit3391d68e906114c364c173c7f3f7389d47d15a11
tree547aecc0f1590f92c7ec4edb8b356c832d8dca86
parente8b827ce7c4bf9a334c46282779f234d1a011cd1
pcie_sriov: Ensure VF addr does not overflow

pci_new() aborts when creating a VF with addr >= PCI_DEVFN_MAX.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20250116-reuse-v20-7-7cb370606368@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/pcie_sriov.txt
hw/net/igb.c
hw/nvme/ctrl.c
hw/pci/pcie_sriov.c
include/hw/pci/pcie_sriov.h