diff options
| author | Dong Jia Shi | 2017-05-03 22:52:35 +0200 |
|---|---|---|
| committer | Alex Williamson | 2017-05-03 22:52:35 +0200 |
| commit | 6e4e6f0d403b1fb25f9dfdbe17754c643997753d (patch) | |
| tree | 5fd5722cb8795c847f72c1b04b39bb5162ff010c | |
| parent | vfio: enable 8-byte reads/writes to vfio (diff) | |
| download | qemu-6e4e6f0d403b1fb25f9dfdbe17754c643997753d.tar.gz qemu-6e4e6f0d403b1fb25f9dfdbe17754c643997753d.tar.xz qemu-6e4e6f0d403b1fb25f9dfdbe17754c643997753d.zip | |
vfio/pci: Fix incorrect error message
When the "No host device provided" error occurs, the hint message
that starts with "Use -vfio-pci," makes no sense, since "-vfio-pci"
is not a valid command line parameter.
Correct this by replacing "-vfio-pci" with "-device vfio-pci".
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
| -rw-r--r-- | hw/vfio/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 03a3d01549..32aca77701 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -2625,8 +2625,8 @@ static void vfio_realize(PCIDevice *pdev, Error **errp) if (!(~vdev->host.domain || ~vdev->host.bus || ~vdev->host.slot || ~vdev->host.function)) { error_setg(errp, "No provided host device"); - error_append_hint(errp, "Use -vfio-pci,host=DDDD:BB:DD.F " - "or -vfio-pci,sysfsdev=PATH_TO_DEVICE\n"); + error_append_hint(errp, "Use -device vfio-pci,host=DDDD:BB:DD.F " + "or -device vfio-pci,sysfsdev=PATH_TO_DEVICE\n"); return; } vdev->vbasedev.sysfsdev = |
