]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/pci: Fix vfio_rtl8168_quirk_data_read address offset
authorThorsten Kohfeldt <thorsten.kohfeldt@gmx.de>
Mon, 17 Oct 2016 16:58:02 +0000 (10:58 -0600)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 14 Dec 2016 22:34:09 +0000 (16:34 -0600)
commit223d1a2da1713adba84115150bd59bd2f9d06866
tree31f97c626ef2dd649928d40359d1fb02ceacbc2f
parent7f7ac2141e3c71a6be354d3928cfa24a64268a70
vfio/pci: Fix vfio_rtl8168_quirk_data_read address offset

Introductory comment for rtl8168 VFIO MSI-X quirk states:
At BAR2 offset 0x70 there is a dword data register,
         offset 0x74 is a dword address register.
vfio: vfio_bar_read(0000:05:00.0:BAR2+0x70, 4) = 0xfee00398 // read data

Thus, correct offset for data read is 0x70,
but function vfio_rtl8168_quirk_data_read() wrongfully uses offset 0x74.

Signed-off-by: Thorsten Kohfeldt <thorsten.kohfeldt@gmx.de>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
(cherry picked from commit 31e6a7b17b35711eb44f0e686b5ba68d15bfe4c1)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/vfio/pci-quirks.c