direct-io.hg

view tools/domain_builder/vifinit @ 204:0e45b167992d

bitkeeper revision 1.65 (3e536858YdNPGFSv3J35Fl8zAGLJjQ)

sched.h, xen_block.c, domain.c:
Now have per-domain IO completion queue.
author kaf24@labyrinth.cl.cam.ac.uk
date Wed Feb 19 11:19:52 2003 +0000 (2003-02-19)
parents 9713c0d10ee7
children 15edce7a072a 7f19fcd72411
line source
1 #!/bin/bash
2 #
3 # vifinit
4 #
5 # This is a silly little script to dump a couple of simple rules down to
6 # the hypervisor to assign a full static IP to a given virtual interface.
7 #
8 # Usage is:
9 #
10 # vifinit [vif id] [dotted decimal ip address]
11 #
12 if [ $# -ne 2 ] ;
13 then
14 echo "usage: vifinit [vif id] [dotted decimal ip address]"
15 exit
16 fi
18 #outbound rule:
19 echo "ADD ACCEPT srcaddr=$2 srcaddrmask=255.255.255.255 srcint=$1 dstint=-1 proto=any" > /proc/vfr
21 #inbound rule:
22 echo "ADD ACCEPT dstaddr=$2 dstaddrmask=255.255.255.255 srcint=-4 dstint=$1 proto=any" > /proc/vfr
24 #----] done.