hw/i386/amd_iommu: Move capab_offset from AMDVIState to AMDVIPCIState
commitae097d8fbd405011afc5c35c7f95a90066a97262
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Mar 2023 15:30:29 +0000 (13 16:30 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 08:25:52 +0000 (21 04:25 -0400)
tree0bc1f4d22b1feb263eceae03f78fe08399e3a1e0
parent531f50ab058c6e443194cdda1a8eaf010c6e740a
hw/i386/amd_iommu: Move capab_offset from AMDVIState to AMDVIPCIState

The 'PCI capability offset' is a *PCI* notion. Since AMDVIPCIState
inherits PCIDevice and hold PCI-related fields, move capab_offset
from AMDVIState to AMDVIPCIState.

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