ia64/xen-unstable
changeset 17225:3ab6635f783d
Each TAP/TUN device name for a HVM guest includes its domain ID.
The TAP/TUN devices are used for connection to a HVM domain, but there
is no relationship between each name of the devices and its domain
ID. This patch assigns a HVM domain ID to each TAP/TUN device name.
Signed-off-by: MIYAJIMA Mitsuharu <miyajima.mitsuharu@anchor.jp>
The TAP/TUN devices are used for connection to a HVM domain, but there
is no relationship between each name of the devices and its domain
ID. This patch assigns a HVM domain ID to each TAP/TUN device name.
Signed-off-by: MIYAJIMA Mitsuharu <miyajima.mitsuharu@anchor.jp>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue Mar 18 11:02:00 2008 +0000 (2008-03-18) |
parents | 3633eae53572 |
children | 2ed94b9b10b3 |
files | tools/python/xen/xend/image.py |
line diff
1.1 --- a/tools/python/xen/xend/image.py Tue Mar 18 10:59:46 2008 +0000 1.2 +++ b/tools/python/xen/xend/image.py Tue Mar 18 11:02:00 2008 +0000 1.3 @@ -580,7 +580,8 @@ class HVMImageHandler(ImageHandler): 1.4 ret.append("nic,vlan=%d,macaddr=%s,model=%s" % 1.5 (nics, mac, model)) 1.6 ret.append("-net") 1.7 - ret.append("tap,vlan=%d,bridge=%s" % (nics, bridge)) 1.8 + ret.append("tap,vlan=%d,ifname=tap%d.%d,bridge=%s" % 1.9 + (nics, self.vm.getDomid(), nics-1, bridge)) 1.10 1.11 return ret 1.12