From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCJ5K-0001a8-RX for qemu-devel@nongnu.org; Tue, 19 Apr 2011 18:07:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCJ5K-0000m2-8I for qemu-devel@nongnu.org; Tue, 19 Apr 2011 18:07:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCJ5J-0000lm-VD for qemu-devel@nongnu.org; Tue, 19 Apr 2011 18:07:50 -0400 Date: Tue, 19 Apr 2011 15:07:43 -0700 From: Chris Wright Message-ID: <20110419220743.GO12133@x200.localdomain> References: <20110419203234.4254.94914.stgit@s20.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110419203234.4254.94914.stgit@s20.home> Subject: Re: [Qemu-devel] [PATCH] vfio: Add an ioctl to reset the device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: chrisw@redhat.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, aafabbri@cisco.com, dwang2@cisco.com, pugs@ieee.org, benve@cisco.com * Alex Williamson (alex.williamson@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. Shouldn't there be a reset when binding/unbinding vfio to/from a pci device?