PCI/VFIO: use pcie_flags_reg instead of access PCI-E Capabilities Register
authorYijing Wang <wangyijing@huawei.com>
Mon, 15 Apr 2013 14:45:10 +0000 (08:45 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 15 Apr 2013 14:45:10 +0000 (08:45 -0600)
commitaa2cba51a0a85dfbd5be58239e59bc5e8b5fb7cf
tree78d34a8efe088c0cbec88c152f1f47c61e247247
parenta7d1ea1c11b33bda2691f3294b4d735ed635535a
PCI/VFIO: use pcie_flags_reg instead of access PCI-E Capabilities Register

Currently, we use pcie_flags_reg to cache PCI-E Capabilities Register,
because PCI-E Capabilities Register bits are almost read-only. This patch
use pcie_caps_reg() instead of another access PCI-E Capabilities Register.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_config.c