|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH][XM-TEST][1/3] New Network Infrastructure for Xm-Test
Hi,
This patch and the two that will follow add a new network infrastructure
to xm-test. The goal is to make writing tests with networking easy. The
patches add a new XenDevice class and NetConfig class. The XenDevice and
the XenNetDevice subclass represent devices in xm-test and are linked to
the XenDomains. The NetConfig class manages xm-test's network
configuration.
The patches make it possible to easily create a domain with a network
device. The XmTestNetDomain class creates a domain with a single
ethernet device. It automatically grabs an IP and runs the necessary
commands on the guest domain - ifconfig - for you. Or, you can create
domains with XmTestDomain and then use the new device factory to add new
devices to the domain:
domain = XmTestDomain()
domain.newDevice(XenNetDevice, "eth0")
Xm-test networking must be configured when it's made. There are new
options for configure that set IP address range - it uses the zeroconf
range as default, IP network address, and IP netmask. Xm-test refers to
this range for grabbing and configuring IPs for test domains.
NOTE: Xm-Test with these patches will only support a bridged environment
and the range of addresses provided.
Features that need to be added following this set:
1) DHCP - setting configuration to use DHCP for IPs rather than a
configured range.
2) NAT environment
3) Routed environment
4) Attaching and detaching devices to existing domains.
The first patch, which is included, creates a domain type attribute for
XenDomain, marking the domain as either PV for Para-virt domU or HVM for
a fully virtualized domain. The XenNetDevice checks to see what the
current domain is to set specific parameters.
All comments are welcome.
Thanks,
Dan
xmtest-add-domain-type-1.patch
Description: Text Data
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH][XM-TEST][1/3] New Network Infrastructure for Xm-Test,
Daniel Stekloff <=
|
|
|
|
|