libs/light: pass some infos to qemu
authorManuel Bouyer <bouyer@netbsd.org>
Tue, 26 Jan 2021 22:47:58 +0000 (23:47 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 Jan 2021 22:50:08 +0000 (22:50 +0000)
commitc2517364eb64088abe7afba79e13cb1ba5a12585
tree6a6b9e29732b40508d49db7f8c922eb84fb132c7
parent9e80a1e37bc3813d02ee7a647201c7153420113e
libs/light: pass some infos to qemu

Pass bridge name to qemu as command line option
When starting qemu, set an environnement variable XEN_DOMAIN_ID,
to be used by qemu helper scripts
The only functional difference of using the br parameter is that the
bridge name gets passed to the QEMU script.
NetBSD doesn't have the ioctl to rename network interfaces implemented, and
thus cannot rename the interface from tapX to vifX.Y-emu. Only qemu knowns
the tap interface name, so we need to use the qemu script from qemu itself.

Signed-off-by: Manuel Bouyer <bouyer@netbsd.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
tools/libs/light/libxl_dm.c