From: "Michał Winiarski" <michal.winiarski@intel.com>
To: Alex Williamson <alex@shazbot.org>,
<intel-xe@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
<kvm@vger.kernel.org>
Cc: "Jason Gunthorpe" <jgg@ziepe.ca>,
"Yishai Hadas" <yishaih@nvidia.com>,
"Shameer Kolothum" <skolothumtho@nvidia.com>,
"Kevin Tian" <kevin.tian@intel.com>,
"Michał Winiarski" <michal.winiarski@intel.com>,
"Niklas Schnelle" <schnelle@linux.ibm.com>,
stable@vger.kernel.org
Subject: [PATCH v2 2/2] vfio/xe: Add a missing vfio_pci_core_release_dev()
Date: Sat, 11 Apr 2026 00:49:48 +0200 [thread overview]
Message-ID: <20260410224948.900550-2-michal.winiarski@intel.com> (raw)
In-Reply-To: <20260410224948.900550-1-michal.winiarski@intel.com>
The driver is implementing its own .release(), which means that it needs
to call vfio_pci_core_release_dev().
Add the missing call.
Fixes: 1f5556ec8b9ef ("vfio/xe: Add device specific vfio_pci driver variant for Intel graphics")
Reported-by: Niklas Schnelle <schnelle@linux.ibm.com>
Closes: https://lore.kernel.org/kvm/408e262c507e8fd628a71e39904fedd99fa0ee8e.camel@linux.ibm.com/
Cc: stable@vger.kernel.org
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
---
drivers/vfio/pci/xe/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/vfio/pci/xe/main.c b/drivers/vfio/pci/xe/main.c
index c20011eb4af3d..4ecadbbfd86ec 100644
--- a/drivers/vfio/pci/xe/main.c
+++ b/drivers/vfio/pci/xe/main.c
@@ -518,6 +518,7 @@ static void xe_vfio_pci_release_dev(struct vfio_device *core_vdev)
container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);
mutex_destroy(&xe_vdev->state_mutex);
+ vfio_pci_core_release_dev(core_vdev);
}
static const struct vfio_device_ops xe_vfio_pci_ops = {
--
2.53.0
next prev parent reply other threads:[~2026-04-10 22:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-10 22:49 [PATCH v2 1/2] vfio/xe: Reorganize the init to decouple migration from reset Michał Winiarski
2026-04-10 22:49 ` Michał Winiarski [this message]
2026-04-13 6:42 ` Tian, Kevin
2026-04-13 21:58 ` Alex Williamson
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=20260410224948.900550-2-michal.winiarski@intel.com \
--to=michal.winiarski@intel.com \
--cc=alex@shazbot.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jgg@ziepe.ca \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=schnelle@linux.ibm.com \
--cc=skolothumtho@nvidia.com \
--cc=stable@vger.kernel.org \
--cc=yishaih@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox