qdev: make the non-legacy pci address property accept an integer
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Feb 2012 16:12:19 +0000 (17:12 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Feb 2012 12:52:41 +0000 (13:52 +0100)
commitb403298adb54ca683b895ebddd412dcb092cb780
tree546444904ff3f774b1cd0968e4a900e6098aeefc
parente39e5d60c9a65f36946454ddf8c9be9c582ffef8
qdev: make the non-legacy pci address property accept an integer

PCI addresses are set with qdev_prop_uint32.  Thus we make the QOM
property accept a device and function encoded in an 8-bit integer,
instead of the magic dd.f hex string.

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/qdev-properties.c