aer: fix wrong check on expose aer tlp prefix log
commit77a3c1d730a14c86f3f5692be9906b206afc3d3e
authorChen Fan <chen.fan.fnst@cn.fujitsu.com>
Fri, 13 Mar 2015 03:18:04 +0000 (13 11:18 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Mar 2015 11:14:45 +0000 (18 12:14 +0100)
treec3a36ae3d6ffe7ae36d551fe29d55682e6ba766f
parent30b04f8711c5191929af4ed03a779646ced3456e
aer: fix wrong check on expose aer tlp prefix log

when specify TLP Prefix log as using pcie_aer_inject_error,
the TLP prefix log is always discarded. because the check
is incorrect, the End-End TLP Prefix Supported bit
(PCI_EXP_DEVCAP2_EETLPP) should be in Device Capabilities 2 Register.

Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pcie_aer.c