linux-stable/drivers/vfio
hexin ed9544cadc vfio_pci: Restore original state on release
[ Upstream commit 92c8026854 ]

vfio_pci_enable() saves the device's initial configuration information
with the intent that it is restored in vfio_pci_disable().  However,
the commit referenced in Fixes: below replaced the call to
__pci_reset_function_locked(), which is not wrapped in a state save
and restore, with pci_try_reset_function(), which overwrites the
restored device state with the current state before applying it to the
device.  Reinstate use of __pci_reset_function_locked() to return to
the desired behavior.

Fixes: 890ed578df ("vfio-pci: Use pci "try" reset interface")
Signed-off-by: hexin <hexin15@baidu.com>
Signed-off-by: Liu Qi <liuqi16@baidu.com>
Signed-off-by: Zhang Yu <zhangyu31@baidu.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-07 18:55:03 +02:00
..
mdev vfio/mdev: Check globally for duplicate devices 2018-08-03 07:50:22 +02:00
pci vfio_pci: Restore original state on release 2019-10-07 18:55:03 +02:00
platform
Kconfig
Makefile
vfio.c vfio: Fix WARNING "do not call blocking ops when !TASK_RUNNING" 2019-06-15 11:54:54 +02:00
vfio_iommu_spapr_tce.c
vfio_iommu_type1.c vfio/type1: Limit DMA mappings per container 2019-05-02 09:40:30 +02:00
vfio_spapr_eeh.c
virqfd.c