vfio/pci: Handle host oversight
commit4a946268504e72fe0c547b9dda97adbe277a585f
authorEric Auger <eric.auger@redhat.com>
Mon, 17 Oct 2016 16:58:02 +0000 (17 10:58 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 17 Oct 2016 16:58:02 +0000 (17 10:58 -0600)
tree4f91362ab0ecb0e9d966540a8074e7991a1b212b
parente04cff9d975389b83d59b89cc3904b20ae0b4ce1
vfio/pci: Handle host oversight

In case the end-user calls qemu with -vfio-pci option without passing
either sysfsdev or host property value, the device is interpreted as
0000:00:00.0. Let's create a specific error message to guide the end-user.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c