From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53A3D3DD514; Thu, 4 Jun 2026 08:28:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780561707; cv=none; b=KXUoYzk9KB1nf0ul+eIYPj5Af8po2NZ7OgtKA80jVkxs8ITL25ugd0dIDUmCu1MKbMn9rMLXZeO/4D/KfJY1TgjV9I2kTXxphTlB4tVmEVVQCnPVp6aZtu3+kXqNsRm4WDnDtb3L6pfStqA1VNI0+yWzCgxK6uGpV+k6V8JAIi4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780561707; c=relaxed/simple; bh=vUnqqsxv1EBJ+58jWdwqKtnqCiXqa68E72t8d17wGsY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZBxFd7o4HikXwZpUOfyMi+QN8BM4Qn0HCalSc4SVjsRilWtCGUa07T5RoULIMvMEN2oeoTIKV1Lilsmc3TiGtH/ttsqJ6qtI2oerUZ41VaOQCreCp33uDrAC2bEgXiKf1h0GWzL3iXuz7sgiqzoVVB3/lOb9siEfVefLwMt9rtc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BQ+THwyO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BQ+THwyO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78CD41F00893; Thu, 4 Jun 2026 08:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780561706; bh=3XPIGSkEIdQPrCd3EHkI8/wMO36/Ln2Q0vsOqyP86UI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=BQ+THwyO3atWKyuWbkbVjOSxBbCHiYYmqdOam81LAGMWWb5Rdz9SWtzSmnRE0lwqc vAChx67ngQ6INf4WnBfSmxa3nKV0wFfqSWSP1WFsbW+2GV1tYqxt2RdScHlBhiwA6q 1YfuPKklaQkVrvA9p0xWBIJEZ/VOeX07wL2vZUltNOJJdgLksK5Illri0f7Fr3gLZP yVnDBXEq26k37lo0yEWjSp4CpylOwlJePB8RlIg+NYlkN05MNUMDa9yQrezfbzS9Wa VdmfWs4MF5SvGmuh+sZsNrbb8Bf/ElOE8qDJupQO0EbUAQ41A2V2vMqfDD/dbP2skQ cmQHwXpU/+lMw== Date: Thu, 4 Jun 2026 09:28:19 +0100 From: Keith Busch To: Farhan Ali Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, alex@shazbot.org, helgaas@kernel.org, schnelle@linux.ibm.com, mjrosato@linux.ibm.com, Julian Ruess Subject: Re: [PATCH v18 3/4] vfio/pci: Add a reset_done callback for vfio-pci driver Message-ID: References: <20260603182415.2324-1-alifm@linux.ibm.com> <20260603182415.2324-4-alifm@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260603182415.2324-4-alifm@linux.ibm.com> On Wed, Jun 03, 2026 at 11:24:14AM -0700, Farhan Ali wrote: > +static void vfio_pci_core_aer_reset_done(struct pci_dev *pdev) > +{ > + struct vfio_pci_core_device *vdev = dev_get_drvdata(&pdev->dev); > + > + if (!vdev->pci_saved_state) > + return; > + > + pci_load_saved_state(pdev, vdev->pci_saved_state); > + pci_restore_state(pdev); > +} Shouldn't there be a cooresponding user space notification that the device has been restored? There's an eventfd on the error detected side so user space can know the device needs recovery, but how does it come to know that the reset is completed?