6c43eaffe4
At this time xentools413 will only build on a very recent -current (as of an hour ago or do - with /usr/include/xen/xenio.h 1.12 or newer) Xen is a hypervisor which supports running multiple guest operating systems on a single machine. Guest OSes (also called "domains") can be either paravirtualised (i.e. make hypercalls in order to access hardware), run in HVM (Hardware Virtualisation Mode) where they will be presented with virtual devices, or a combination where they use hypercalls to access hardware but manage memory themselves. At boot, the xen kernel is loaded along with the guest kernel for the first domain (called domain0). domain0 has privileges to access the physical hardware (PCI and ISA devices), administrate other domains and provide virtual devices (disks and network) to other domains.
16 lines
644 B
Text
16 lines
644 B
Text
$NetBSD: patch-tools_hotplug_NetBSD_vif-bridge,v 1.1 2020/05/26 11:12:11 bouyer Exp $
|
|
|
|
--- tools/hotplug/NetBSD/vif-bridge.orig 2015-01-12 17:53:24.000000000 +0100
|
|
+++ tools/hotplug/NetBSD/vif-bridge 2015-01-19 13:16:37.000000000 +0100
|
|
@@ -23,7 +23,10 @@
|
|
xbridge=$(xenstore-read "$xpath/bridge")
|
|
xfid=$(xenstore-read "$xpath/frontend-id")
|
|
xhandle=$(xenstore-read "$xpath/handle")
|
|
- iface=$(xenstore-read "$xpath/vifname")
|
|
+ iface=$(xenstore-read "$xpath/vifname") || true
|
|
+ if [ x${iface} = "x" ] ; then
|
|
+ iface=xvif$xfid.$xhandle
|
|
+ fi
|
|
ifconfig $iface up
|
|
brconfig $xbridge add $iface
|
|
xenstore-write $xpath/hotplug-status connected
|