From: Nikhil Kumar Singh <nikhilks@linux.ibm.com>
To: qemu-devel@nongnu.org
Subject: Re: [PATCH v3 1/6] ppc/spapr: Add VFIO EEH error injection backend
Date: Thu, 13 Aug 2026 22:05:14 +0530 [thread overview]
Message-ID: <e89bb6d3-3522-493c-8bac-106e374294c3@linux.ibm.com> (raw)
In-Reply-To: <20260520095446.64206-2-nnmlinux@linux.ibm.com>
On 20/05/26 15:24, Narayana Murty N wrote:
> + VFIOLegacyContainer *container = vfio_eeh_as_container(&sphb->iommu_as);
> + struct vfio_eeh_pe_op op = {
> + .op = VFIO_EEH_PE_INJECT_ERR,
> + .argsz = sizeof(op),
> + };
> +
[...]
> + /* Perform the ioctl to inject the error */
> + if (ioctl(container->fd, VFIO_EEH_PE_OP, &op) < 0) {
> + return RTAS_OUT_HW_ERROR;
> + }
Hi Narayana,
Sorry, one detail I missed in my previous review:
Could `container` be NULL here if `vfio_eeh_as_container()` fails or
returns NULL? If so, should we add a NULL check before dereferencing
`container->fd`?
Thanks,
Nikhil
next prev parent reply other threads:[~2026-08-13 16:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-20 9:54 [PATCH v3 0/6] ppc/spapr: Add RTAS error injection support for VFIO EEH Narayana Murty N
2026-05-20 9:54 ` [PATCH v3 1/6] ppc/spapr: Add VFIO EEH error injection backend Narayana Murty N
2026-08-13 16:02 ` Nikhil Kumar Singh
2026-08-13 16:35 ` Nikhil Kumar Singh [this message]
2026-05-20 9:54 ` [PATCH v3 2/6] ppc/spapr: Add ibm,errinjct RTAS call handler Narayana Murty N
2026-08-13 16:11 ` Nikhil Kumar Singh
2026-05-20 9:54 ` [PATCH v3 3/6] ppc/spapr: Add support for 'ibm, open-errinjct' and 'ibm, close-errinjct' Narayana Murty N
2026-08-13 16:39 ` Nikhil Kumar Singh
2026-05-20 9:54 ` [PATCH v3 4/6] ppc/spapr: Advertise RTAS error injection call support via FDT property Narayana Murty N
2026-05-22 9:07 ` Shivaprasad G Bhat
2026-06-01 6:05 ` Narayana Murty N
2026-08-13 16:49 ` Nikhil Kumar Singh
2026-05-20 9:54 ` [PATCH v3 5/6] ppc/spapr: Split VFIO code and refactor EEH interface Narayana Murty N
2026-05-22 16:07 ` Pierrick Bouvier
2026-05-22 16:29 ` Narayana Murty N
2026-08-14 6:26 ` Harsh Prateek Bora
2026-05-20 9:54 ` [PATCH v3 6/6] MAINTAINERS: Add entry for sPAPR PCI VFIO EEH support Narayana Murty N
2026-06-08 17:31 ` [PATCH v3 0/6] ppc/spapr: Add RTAS error injection support for VFIO EEH Anushree Mathur
2026-06-09 8:55 ` Narayana Murty N
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=e89bb6d3-3522-493c-8bac-106e374294c3@linux.ibm.com \
--to=nikhilks@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
/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.