WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][XM-TEST][1/3] New Network Infrastructure for Xm-Test

To: Ewan Mellor <ewan@xxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][XM-TEST][1/3] New Network Infrastructure for Xm-Test
From: Daniel Stekloff <dsteklof@xxxxxxxxxx>
Date: Mon, 24 Apr 2006 16:34:25 -0700
Cc: Dan Smith <danms@xxxxxxxxxx>
Delivery-date: Mon, 24 Apr 2006 16:35:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

Attachment: 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 <=