qemu-e2k/hw
Alex Williamson 69970fcef9 vfio/pci: Fix RTL8168 NIC quirks
The RTL8168 quirk correctly describes using bit 31 as a signal to
mark a latch/completion, but the code mistakenly uses bit 28.  This
causes the Realtek driver to spin on this register for quite a while,
20k cycles on Windows 7 v7.092 driver.  Then it gets frustrated and
tries to set the bit itself and spins for another 20k cycles.  For
some this still results in a working driver, for others not.  About
the only thing the code really does in its current form is protect
the guest from sneaking in writes to the real hardware MSI-X table.
The fix is obviously to use bit 31 as we document that we should.

The other problem doesn't seem to affect current drivers as nobody
seems to use these window registers for writes to the MSI-X table, but
we need to use the stored data when a write is triggered, not the
value of the current write, which only provides the offset.

Note that only the Windows drivers from Realtek seem to use these
registers, the Microsoft drivers provided with Windows 8.1 do not
access them, nor do Linux in-kernel drivers.

Link: https://bugs.launchpad.net/qemu/+bug/1384892
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: qemu-stable@nongnu.org # v2.1+
2015-07-22 14:56:01 -06:00
..
9pfs
acpi ich9: fix skipped vmstate_memhp_state subsection 2015-07-20 14:19:40 +03:00
alpha
arm musicpal: Drop eth_can_receive 2015-07-20 17:47:24 +01:00
audio
block nvme: properly report volatile write caches 2015-07-14 15:55:19 +02:00
bt
char
core pc,virtio: fixes for 2.4 2015-07-13 13:35:51 +01:00
cpu
cris
display qxl: Fix new function name for spice-server library 2015-07-22 16:38:42 +02:00
dma
gpio
i2c
i386 pc,virtio: fixes for 2.4 2015-07-13 13:35:51 +01:00
ide ahci: Force ICC bits in PxCMD to zero 2015-07-20 12:21:18 -04:00
input hid: clarify hid_keyboard_process_keycode 2015-07-17 08:44:41 +02:00
intc
ipack
isa
lm32
m68k
mem
microblaze
mips
misc
moxie
net lan9118: Drop lan9118_can_receive 2015-07-20 17:47:24 +01:00
nvram
openrisc
pci pci_add_capability: remove duplicate comments 2015-07-20 14:19:41 +03:00
pci-bridge
pci-host
pcmcia
ppc timer: rename NSEC_PER_SEC due to Mac OS X header clash 2015-07-20 17:01:00 +01:00
s390x s390/virtio-ccw: Fix migration 2015-07-14 19:10:03 +02:00
scsi
sd
sh4
sparc
sparc64
ssi
timer timer: rename NSEC_PER_SEC due to Mac OS X header clash 2015-07-20 17:01:00 +01:00
tpm
tricore
unicore32
usb timer: rename NSEC_PER_SEC due to Mac OS X header clash 2015-07-20 17:01:00 +01:00
vfio vfio/pci: Fix RTL8168 NIC quirks 2015-07-22 14:56:01 -06:00
virtio virtio, vhost, pc fixes for 2.4 2015-07-20 13:25:28 +01:00
watchdog watchdog/diag288: correctly register for system reset requests 2015-07-14 19:10:03 +02:00
xen
xenpv
xtensa
Makefile.objs