ia64/xen-unstable

view tools/hotplug/NetBSD/vif-ip-nbsd @ 19731:01748ccc4da3

Intel VT-d: fix Stoakley boot issue with iommu=1

Signed-off-by: Weidong Han <Weidong.han@intel.com>
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 05 09:25:50 2009 +0100 (2009-06-05)
parents 4bfc67b09e9c
children 415505139333
line source
1 #!/bin/sh -e
3 # $NetBSD: vif-ip-nbsd,v 1.1.1.1 2008/08/07 20:26:57 cegger Exp $
4 # Called by xenbackendd
5 # Usage: vif-ip xsdir_backend_path state
7 PATH=/bin:/usr/bin:/sbin:/usr/sbin
8 export PATH
10 xpath=$1
11 xstatus=$2
13 case $xstatus in
14 6)
15 # device removed
16 xenstore-rm $xpath
17 exit 0
18 ;;
19 2)
20 xip=$(xenstore-read "$xpath/ip")
21 xfid=$(xenstore-read "$xpath/frontend-id")
22 xhandle=$(xenstore-read "$xpath/handle")
23 iface=xvif$xfid.$xhandle
24 echo ifconfig $iface $xip up
25 ifconfig $iface $xip up
26 xenstore-write $xpath/hotplug-status connected
27 echo xenstore-write $xpath/hotplug-status connected
28 exit 0
29 ;;
30 *)
31 exit 0
32 ;;
33 esac