From: Farhan Ali <alifm@linux.ibm.com>
To: "Shameer Kolothum Thodi" <skolothumtho@nvidia.com>,
"Cédric Le Goater" <clg@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"qemu-s390x@nongnu.org" <qemu-s390x@nongnu.org>
Cc: "mjrosato@linux.ibm.com" <mjrosato@linux.ibm.com>,
"farman@linux.ibm.com" <farman@linux.ibm.com>,
"cohuck@redhat.com" <cohuck@redhat.com>,
"alex@shazbot.org" <alex@shazbot.org>,
"armbru@redhat.com" <armbru@redhat.com>
Subject: Re: [PATCH v4 2/4] vfio/pci: Add an error handler callback
Date: Thu, 3 Sep 2026 11:07:10 -0700 [thread overview]
Message-ID: <c761f020-4970-497d-a460-01933371cf0c@linux.ibm.com> (raw)
In-Reply-To: <SJ0PR12MB8614E80E4BAB0FC192BB224BABB62@SJ0PR12MB8614.namprd12.prod.outlook.com>
Hi Shameer,
Thanks for your response!
On 9/3/2026 5:08 AM, Shameer Kolothum Thodi wrote:
>>> That said, I'd prefer to see AER forwarding first.
>> I am curious too to understand how AER forwarding will work. Based on
>> qemu patches (which may not be complete) [1], I can't tell how AER or an
>> event will be sent to a guest to notify of an error. Based on the
>> discussion on the link you posted, it looks like APEI/GHES based events
>> would be sent to the guest?
> Right, that QEMU branch is an early prototype which only observes and
> logs, so the forwarding is not in it.
>
> I am working on a QEMU branch which adds it, based on the kernel RFC.
> The plan is to use native AER rather than GHES, so QEMU injects with
> pcie_aer_inject_error() and an emulated pcie-root-port raises the
> interrupt to the guest. I will post a link once it is ready.
I am very curious to know (and learn) how we would do this.
>> Another question regarding AER recovery series, do we need some
>> mechanism to get the AER information from the kernel for userspace?
> Not as it stands. The feature reports how severe the event was and what
> the host did, not which error occurred, so QEMU cannot forward the real
> status bits today. If it is something that is useful then it probably
> needs to be added
IMHO I think there might be value in providing more detailed information
to the QEMU/guest.
Based on my brief look at the kernel/QEMU patch series, it looks like
there is not much coordination between the guest and host recovery. So
when we inject an AER in the guest, is the device access still blocked?
Is the device access enabled only after a guest completed the recovery?
Thanks
Farhan
> Thanks,
> Shameer
next prev parent reply other threads:[~2026-09-03 18:08 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 18:31 [PATCH v4 0/4] Error recovery for zPCI passthrough devices Farhan Ali
2026-08-31 18:31 ` [PATCH v4 1/4] linux-headers: Update Linux header to 7.3-rc1 Farhan Ali
2026-08-31 18:31 ` [PATCH v4 2/4] vfio/pci: Add an error handler callback Farhan Ali
2026-09-02 8:07 ` Cédric Le Goater
2026-09-02 8:21 ` Shameer Kolothum Thodi
2026-09-02 10:39 ` Markus Armbruster
2026-09-02 16:23 ` Farhan Ali
2026-09-03 10:24 ` Markus Armbruster
2026-09-02 16:34 ` Farhan Ali
2026-09-03 12:08 ` Shameer Kolothum Thodi
2026-09-03 18:07 ` Farhan Ali [this message]
2026-09-04 9:58 ` Shameer Kolothum Thodi
2026-08-31 18:31 ` [PATCH v4 3/4] s390x/pci: Add PCI error handling for vfio pci devices Farhan Ali
2026-09-02 8:22 ` Cédric Le Goater
2026-09-02 16:43 ` Farhan Ali
2026-08-31 18:31 ` [PATCH v4 4/4] s390x/pci: Reset a device in error state Farhan Ali
2026-09-02 8:27 ` Cédric Le Goater
2026-09-02 16:48 ` Farhan Ali
2026-09-03 9:19 ` [PATCH v4 0/4] Error recovery for zPCI passthrough devices Cédric Le Goater
2026-09-03 17:55 ` Farhan Ali
2026-09-08 19:25 ` 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=c761f020-4970-497d-a460-01933371cf0c@linux.ibm.com \
--to=alifm@linux.ibm.com \
--cc=alex@shazbot.org \
--cc=armbru@redhat.com \
--cc=clg@redhat.com \
--cc=cohuck@redhat.com \
--cc=farman@linux.ibm.com \
--cc=mjrosato@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=skolothumtho@nvidia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.