tools/hotplug: Add a qemu-ifup script on NetBSD

On NetBSD, qemu-xen will use a qemu-ifup script to setup the tap interfaces
(as qemu-xen-traditional used to). Copy the script from qemu-xen-traditional,
and install it on NetBSD. While there document parameters and environnement
variables.

Signed-off-by: Manuel Bouyer <bouyer@netbsd.org>
Acked-by: Ian Jackson <iwj@xenproject.org>
This commit is contained in:
Manuel Bouyer authored and Andrew Cooper committed 2021-02-04 21:26:41 +00:00
1 parent e8af540845
commit 4cc948020a
2 files changed
+10

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ XEN_SCRIPTS += locking.sh
XEN_SCRIPTS += block
XEN_SCRIPTS += vif-bridge
XEN_SCRIPTS += vif-ip
XEN_SCRIPTS += qemu-ifup
XEN_SCRIPT_DATA =
XEN_RCD_PROG = rc.d/xencommons rc.d/xendomains rc.d/xen-watchdog rc.d/xendriverdomain
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
#called by qemu when a HVM domU is started.
# first parameter is tap interface, second is the bridge name
# environement variable $XEN_DOMAIN_ID contains the domU's ID,
# which can be used to retrieve extra parameters from the xenstore.
ifconfig $1 up
exec /sbin/brconfig $2 add $1
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.