diff options
Diffstat (limited to 'drivers/vfio/pci/vfio_pci.c')
| -rw-r--r-- | drivers/vfio/pci/vfio_pci.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index 69fab0fd15ae..e9851add6f4e 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c | |||
| @@ -907,8 +907,14 @@ static void vfio_pci_request(void *device_data, unsigned int count) | |||
| 907 | mutex_lock(&vdev->igate); | 907 | mutex_lock(&vdev->igate); |
| 908 | 908 | ||
| 909 | if (vdev->req_trigger) { | 909 | if (vdev->req_trigger) { |
| 910 | dev_dbg(&vdev->pdev->dev, "Requesting device from user\n"); | 910 | if (!(count % 10)) |
| 911 | dev_notice_ratelimited(&vdev->pdev->dev, | ||
| 912 | "Relaying device request to user (#%u)\n", | ||
| 913 | count); | ||
| 911 | eventfd_signal(vdev->req_trigger, 1); | 914 | eventfd_signal(vdev->req_trigger, 1); |
| 915 | } else if (count == 0) { | ||
| 916 | dev_warn(&vdev->pdev->dev, | ||
| 917 | "No device request channel registered, blocked until released by user\n"); | ||
| 912 | } | 918 | } |
| 913 | 919 | ||
| 914 | mutex_unlock(&vdev->igate); | 920 | mutex_unlock(&vdev->igate); |
