Daniel Stekloff
2006-Apr-24 23:34 UTC
[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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Apparently Analagous Threads
- [PATCH] xm-test: fix the ip allocation function
- [PATCH] xm,xend: flesh out xm sched-sedf
- [PATCHv2 1/2] Xen PV backend (for qemu-upstream-4.2-testing): Move call to bdrv_new from blk_init to blk_connect
- [PATCH][XM-TEST] Fix for 15_create_smallmem_pos.py test - Bug 616
- [PATCH v3] xen_disk: cope with missing xenstore "params" node