]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/amd_iommu: Set PCI static/const fields via PCIDeviceClass
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Mar 2023 15:30:30 +0000 (16:30 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 08:25:52 +0000 (04:25 -0400)
commit7f5a459dc8132bd15c28a0d2af1f0cf844ee19f4
tree9bd8514f0bfe290ce1509ccff40a268f5915cc38
parentae097d8fbd405011afc5c35c7f95a90066a97262
hw/i386/amd_iommu: Set PCI static/const fields via PCIDeviceClass

Set PCI static/const fields once in amdvi_pci_class_init.
They will be propagated via DeviceClassRealize handler via
pci_qdev_realize() -> do_pci_register_device() -> pci_config_set*().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230313153031.86107-6-philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/amd_iommu.c