[PATCH v2] drm/virtio: fixed memory leak in virtio_gpu_execbuffer_ioctl()

2020-07-20 Thread hexin
drm/virtio: add in/out fence support for explicit synchronization") Signed-off-by: Liu Qi Signed-off-by: hexin --- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_ioctl.c b/drivers/gpu/drm/virtio/virtgpu_ioctl.

[PATCH v3] vfio_pci: Restore original state on release

2019-08-21 Thread hexin
, 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: 890ed578df82 ("vfio-pci: Use pci "try" reset interface") Signed-off-b

Re: [PATCH v2] vfio_pci: Replace pci_try_reset_function() with __pci_reset_function_locked() to ensure that the pci device configuration space is restored to its original state

2019-08-21 Thread hexin
Alex Williamson 于2019年8月20日周二 上午3:53写道: > > On Sat, 17 Aug 2019 19:51:03 +0800 > hexin wrote: > > > In vfio_pci_enable(), save the device's initial configuration information > > and then restore the configuration in vfio_pci_disable(). However, the > > execution

[PATCH v2] vfio_pci: Replace pci_try_reset_function() with __pci_reset_function_locked() to ensure that the pci device configuration space is restored to its original state

2019-08-17 Thread hexin
restored by pci_load_and_free_saved_state() will be overwritten. The __pci_reset_function_locked() function can be used to prevent the configuration space from being overwritten. Fixes: 890ed578df82 ("vfio-pci: Use pci "try" reset interface") Signed-off-by: hexin Signed-off-by

[PATCH] vfio_pci: Replace pci_try_reset_function() with __pci_reset_function_locked() to ensure that the pci device configuration space is restored to its original state

2019-08-15 Thread hexin
restored by pci_load_and_free_saved_state() will be overwritten. The __pci_reset_function_locked() function can be used to prevent the configuration space from being overwritten. Signed-off-by: hexin Signed-off-by: Liu Qi Signed-off-by: Zhang Yu --- drivers/vfio/pci/vfio_pci.c | 10 -- 1