hw/virtio-pci Added counter for pcie capabilities offsets.
commit06e97442420b03a1e0ff05e8eb554fac684ca736
authorAndrew Melnychenko <andrew@daynix.com>
Thu, 3 Dec 2020 11:07:12 +0000 (3 13:07 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 9 Dec 2020 18:04:17 +0000 (9 13:04 -0500)
tree9c04be3ff30dd5fe7a36916e7f9b1c702c0b40db
parent8ad4e4519c6d0981bd511f7ad9107c16c7a94f5c
hw/virtio-pci Added counter for pcie capabilities offsets.

Removed hardcoded offset for ats. Added cap offset counter
for future capabilities like AER.

Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
Message-Id: <20201203110713.204938-2-andrew@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c