pci.c (d328fef93ae757a0dd65ed786a4086e27952eef3) | pci.c (fdaa774e67435a328c0e28006c4d749f2198294a) |
---|---|
1/* 2 * vfio based device assignment support 3 * 4 * Copyright Red Hat, Inc. 2012 5 * 6 * Authors: 7 * Alex Williamson <alex.williamson@redhat.com> 8 * --- 2474 unchanged lines hidden (view full) --- 2483 2484 *info_p = info; 2485 return 0; 2486} 2487 2488static int vfio_pci_hot_reset(VFIOPCIDevice *vdev, bool single) 2489{ 2490 VFIODevice *vbasedev = &vdev->vbasedev; | 1/* 2 * vfio based device assignment support 3 * 4 * Copyright Red Hat, Inc. 2012 5 * 6 * Authors: 7 * Alex Williamson <alex.williamson@redhat.com> 8 * --- 2474 unchanged lines hidden (view full) --- 2483 2484 *info_p = info; 2485 return 0; 2486} 2487 2488static int vfio_pci_hot_reset(VFIOPCIDevice *vdev, bool single) 2489{ 2490 VFIODevice *vbasedev = &vdev->vbasedev; |
2491 const VFIOIOMMUOps *ops = vbasedev->bcontainer->ops; | 2491 const VFIOIOMMUClass *ops = vbasedev->bcontainer->ops; |
2492 2493 return ops->pci_hot_reset(vbasedev, single); 2494} 2495 2496/* 2497 * We want to differentiate hot reset of multiple in-use devices vs hot reset 2498 * of a single in-use device. VFIO_DEVICE_RESET will already handle the case 2499 * of doing hot resets when there is only a single device per bus. The in-use --- 960 unchanged lines hidden --- | 2492 2493 return ops->pci_hot_reset(vbasedev, single); 2494} 2495 2496/* 2497 * We want to differentiate hot reset of multiple in-use devices vs hot reset 2498 * of a single in-use device. VFIO_DEVICE_RESET will already handle the case 2499 * of doing hot resets when there is only a single device per bus. The in-use --- 960 unchanged lines hidden --- |