mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Niklas Schnelle <schnelle@linux.ibm.com>
To: Farhan Ali <alifm@linux.ibm.com>,
	linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pci@vger.kernel.org
Cc: helgaas@kernel.org, alex@shazbot.org, mjrosato@linux.ibm.com
Subject: Re: [PATCH v17 4/7] s390/pci: Store PCI error information for passthrough devices
Date: Wed, 20 May 2026 21:41:34 +0200	[thread overview]
Message-ID: <65dcffc86f7cc33ebde7bb7c937d094d8457b3a7.camel@linux.ibm.com> (raw)
In-Reply-To: <20260520171113.1111-5-alifm@linux.ibm.com>

On Wed, 2026-05-20 at 10:11 -0700, Farhan Ali wrote:
> For a passthrough device we need co-operation from user space to recover
> the device. This would require to bubble up any error information to user
> space.  Let's store this error information for passthrough devices, so it
> can be retrieved later.
> 
> We can now have userspace drivers (vfio-pci based) on s390x. The userspace
> drivers will not have any KVM fd and so no kzdev associated with them. So
> we need to update the logic for detecting passthrough devices to not depend
> on struct kvm_zdev.
> 
> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
> Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
> ---
>  arch/s390/include/asm/pci.h      |  30 ++++++++
>  arch/s390/pci/pci.c              |   1 +
>  arch/s390/pci/pci_event.c        | 116 +++++++++++++++++--------------
>  drivers/vfio/pci/vfio_pci_zdev.c |  18 ++++-
>  4 files changed, 111 insertions(+), 54 deletions(-)
> 

Looks good to me now and I do think the zpci_store_pci_error() makes
the code easier to read and gives a clear destinction for mediated
recovery mode. Oh and Sashiko just came back with no issues found too.

Feel free to add my:

Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>

Thanks,
Niklas

  reply	other threads:[~2026-05-20 19:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-20 17:11 [PATCH v17 0/7] Error recovery for vfio-pci devices on s390x Farhan Ali
2026-05-20 17:11 ` [PATCH v17 1/7] PCI: Allow per function PCI slots to fix slot reset on s390 Farhan Ali
2026-05-20 17:11 ` [PATCH v17 2/7] PCI: Avoid saving config space state if inaccessible Farhan Ali
2026-05-20 17:11 ` [PATCH v17 3/7] PCI: Fail FLR when config space is inaccessible Farhan Ali
2026-05-20 17:11 ` [PATCH v17 4/7] s390/pci: Store PCI error information for passthrough devices Farhan Ali
2026-05-20 19:41   ` Niklas Schnelle [this message]
2026-05-20 17:11 ` [PATCH v17 5/7] vfio-pci/zdev: Add a device feature for error information Farhan Ali
2026-06-02 20:32   ` Alex Williamson
2026-06-02 21:38     ` Farhan Ali
2026-06-02 22:33       ` Alex Williamson
2026-05-20 17:11 ` [PATCH v17 6/7] vfio/pci: Add a reset_done callback for vfio-pci driver Farhan Ali
2026-05-20 17:11 ` [PATCH v17 7/7] vfio/pci: Remove the pcie check for VFIO_PCI_ERR_IRQ_INDEX Farhan Ali
2026-06-01 16:47 ` [PATCH v17 0/7] Error recovery for vfio-pci devices on s390x Farhan Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=65dcffc86f7cc33ebde7bb7c937d094d8457b3a7.camel@linux.ibm.com \
    --to=schnelle@linux.ibm.com \
    --cc=alex@shazbot.org \
    --cc=alifm@linux.ibm.com \
    --cc=helgaas@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mjrosato@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome