OSDN Git Service

vfio-pci: Re-order device reset
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 7 Dec 2012 20:43:50 +0000 (13:43 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 7 Dec 2012 20:43:50 +0000 (13:43 -0700)
commit2007722a606bf9f195217f7afd2fbee4bc202c42
tree991cbafd15d3686e028a9314804db8f3c264cd5d
parent3a1f7041ddd59ec3aceb042892f811cc76e05288
vfio-pci: Re-order device reset

Move the device reset to the end of our disable path, the device
should already be stopped from pci_disable_device().  This also allows
us to manipulate the save/restore to avoid the save/reset/restore +
save/restore that we had before.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c