hw/vfio/pci: add type, name and group fields in VFIODevice
commit462037c9e85b27149e71d7f5c7f41375ca6e47d5
authorEric Auger <eric.auger@linaro.org>
Mon, 22 Dec 2014 16:54:31 +0000 (22 09:54 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Dec 2014 16:54:31 +0000 (22 09:54 -0700)
tree1ae817abeccd8c10a8a044508962f1101feb690c
parent5546a621a8801351601537b311539486b9b3ee79
hw/vfio/pci: add type, name and group fields in VFIODevice

Add 3 new fields in the VFIODevice struct. Type is set to
VFIO_DEVICE_TYPE_PCI. The type enum value will later be used
to discriminate between VFIO PCI and platform devices. The name is
set to domain:bus:slot:function. Currently used to test whether
the device already is attached to the group. Later on, the name
will be used to simplify all traces. The group is simply moved
from VFIOPCIDevice to VFIODevice.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
[Fix g_strdup_printf() usage]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c