libxl: set correct nic type depending on the guest
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jul 2012 15:47:33 +0000 (16:47 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jul 2012 15:47:33 +0000 (16:47 +0100)
commit24bc7a06aea0dd3cb3c9e0ba6c0367d54fdd503e
treef4067a4c79079169d2d8fb5b6d82c32e8ce88e7d
parent314e64084d310263417f5caf0668cca3d160ba1c
libxl: set correct nic type depending on the guest

Fix the use of nic type, which results in the following for each type
of domain:

 * HVM: let the user choose, if none specified use VIF_IOEMU.
 * PV: use VIF is none provided, return error if VIF_IOEMU requested.

Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_create.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h