Received: from eggs.gnu.org ([2001:4830:134:3::10]:48294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBvIb-000373-OD for qemu-devel@nongnu.org; Sat, 11 Jun 2016 22:38:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBvIX-0002J0-Os for qemu-devel@nongnu.org; Sat, 11 Jun 2016 22:38:53 -0400 Received: from [59.151.112.132] (port=26172 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBvIX-0002GF-1N for qemu-devel@nongnu.org; Sat, 11 Jun 2016 22:38:49 -0400 References: <1464315131-25834-1-git-send-email-zhoujie2011@cn.fujitsu.com> <20160527100655.60db8206@t450s.home> From: Zhou Jie Message-ID: <30d1cd95-7f67-29cf-c55e-0565364d89ff@cn.fujitsu.com> Date: Sun, 12 Jun 2016 10:38:33 +0800 MIME-Version: 1.0 In-Reply-To: <20160527100655.60db8206@t450s.home> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v8 11/12] vfio: register aer resume notification handler for aer resume List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: qemu-devel@nongnu.org, fan.chen@easystack.cn, izumi.taku@jp.fujitsu.com, caoj.fnst@cn.fujitsu.com, mst@redhat.com, Chen Fan Hi, Alex > It seems like we have a number of questions open in the thread with MST > from the previous version, particularly whether we should actually drop > the resume notifier and block the reset in the kernel. The concern > being that it's not very well specified what we can and cannot do > between the error interrupt and the resume interrupt. We'd probably > need some other indicate of whether the host has this capability, > perhaps a flag in vfio_device_info. Appreciate your opinions there. > Thanks, > > Alex Have you had a conclusion with MST? How about the process like following? 1. Detect support for VFIO reset blocking. Maybe use vfio_device_info. 2. Immediately notify the VM on error detected. 3. Invoke ioctl(VFIO_DEVICE_PCI_HOT_RESET). If kernel is doing reset, then block in ioctl. Can I ignore the resume notifier? else Shall ioctl block until after receiving resume notification? Sincerely Zhou Jie