Commit 5f55d2ae authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio-pci: Log device requests more verbosely

Log some clues indicating whether the user is receiving device
request interfaces or not listening.  This can help indicate why a
driver unbind is blocked or explain why QEMU automatically unplugged
a device from the VM.
Signed-off-by: default avatarAlex Williamson <>
parent b787f68c
......@@ -907,8 +907,14 @@ static void vfio_pci_request(void *device_data, unsigned int count)
if (vdev->req_trigger) {
dev_dbg(&vdev->pdev->dev, "Requesting device from user\n");
if (!(count % 10))
"Relaying device request to user (#%u)\n",
eventfd_signal(vdev->req_trigger, 1);
} else if (count == 0) {
"No device request channel registered, blocked until released by user\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment