[Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Alex Williamson
When using VFIO to assign a device to a guest, we want to make sure the device is quiesced on VM reset to stop all DMA within the guest mapped memory. Add an ioctl which just calls pci_reset_function() and returns whether it succeeds. Signed-off-by: Alex Williamson alex.william...@redhat.com ---

Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Randy Dunlap
On Tue, 19 Apr 2011 14:32:59 -0600 Alex Williamson wrote: When using VFIO to assign a device to a guest, we want to make sure the device is quiesced on VM reset to stop all DMA within the guest mapped memory. Add an ioctl which just calls pci_reset_function() and returns whether it succeeds.

Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Chris Wright
* Randy Dunlap (rdun...@xenotime.net) wrote: I can't find include/linux/vfio.h in linux-next or mainline git, but ioctls need to be documented in Documentation/ioctl/ioctl-number.txt It is in the full patchset: https://github.com/pugs/vfio-linux-2.6

Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Chris Wright
* Alex Williamson (alex.william...@redhat.com) wrote: When using VFIO to assign a device to a guest, we want to make sure the device is quiesced on VM reset to stop all DMA within the guest mapped memory. Add an ioctl which just calls pci_reset_function() and returns whether it succeeds.

Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Alex Williamson
On Tue, 2011-04-19 at 15:07 -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: When using VFIO to assign a device to a guest, we want to make sure the device is quiesced on VM reset to stop all DMA within the guest mapped memory. Add an ioctl which just calls

Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Chris Wright
* Alex Williamson (alex.william...@redhat.com) wrote: On Tue, 2011-04-19 at 15:07 -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: When using VFIO to assign a device to a guest, we want to make sure the device is quiesced on VM reset to stop all DMA within

Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Alex Williamson
On Tue, 2011-04-19 at 15:26 -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: On Tue, 2011-04-19 at 15:07 -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: When using VFIO to assign a device to a guest, we want to make sure

Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Chris Wright
* Alex Williamson (alex.william...@redhat.com) wrote: On Tue, 2011-04-19 at 15:26 -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: On Tue, 2011-04-19 at 15:07 -0700, Chris Wright wrote: * Alex Williamson (alex.william...@redhat.com) wrote: When using

Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device

2011-04-19 Thread Tom Lyon
On Tuesday, April 19, 2011 01:32:59 pm Alex Williamson wrote: When using VFIO to assign a device to a guest, we want to make sure the device is quiesced on VM reset to stop all DMA within the guest mapped memory. Add an ioctl which just calls pci_reset_function() and returns whether it