libxl: Set vfb and vkb devid if not done so by the caller
authorJim Fehlig <jfehlig@suse.com>
Fri, 11 Jan 2013 12:22:26 +0000 (12:22 +0000)
committerJim Fehlig <jfehlig@suse.com>
Fri, 11 Jan 2013 12:22:26 +0000 (12:22 +0000)
commit5420f26507fc5c9853eb1076401a8658d72669da
tree7fa2e90ec747bd0133d56a0120be495956752bda
parent11e65dc903a6b93919c9a69278499ac85332207c
libxl: Set vfb and vkb devid if not done so by the caller

Other devices set a sensible devid if the caller has not done so.
Do the same for vfb and vkb.  While at it, factor out the common code
used to determine a sensible devid, so it can be used by other
libxl__device_*_add functions.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c