Commit Graph
8355 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com c25bfd147c Added error message if the user attempts to shutdown Domain-0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2005-12-14 12:03:40 +00:00
stekloff@elm3b216.beaverton.ibm.com b945dd3342 Adding SKIP() to tests that aren't supported for VMX domains.
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
2005-12-14 11:59:19 +00:00
emellor@leeni.uk.xensource.com 933f5440b4 Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists before
trying to save into it.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-14 11:56:25 +00:00
emellor@leeni.uk.xensource.com c215f50020 Added a stress test for the Xenstore-Python interface layer.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-14 11:54:39 +00:00
emellor@leeni.uk.xensource.com d6f8e9a68e Merged. 2005-12-13 18:08:26 +00:00
emellor@leeni.uk.xensource.com a2529a2204 Added unit test for VMX configuration files.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:08:17 +00:00
emellor@leeni.uk.xensource.com 54fd0f2fb9 When we see a httplib.BadStatusLine, sleep 5 seconds and then retry. This
happens when Xend crashes, so retrying once allows it to restart and recover.
If we see Xend crash twice, we give up, but throw a more polite exception than
the BadStatusLine splat that we got previously.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:07:51 +00:00
emellor@leeni.uk.xensource.com 464379d285 Resurrect vifname xm create vif option support. This was present in earlier
versions of Xen, and allows one to name a vif when it is created.  This is
useful for integration with IP accounting packages, for example.

Closes bug #439.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 18:06:03 +00:00
danms@us.ibm.com dc0c9e694b Grab the test ID from the report submission response and provide a link
to the user's test report
Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-12-13 18:00:50 +00:00
emellor@leeni.uk.xensource.com dc3c184731 Fix reference to HttpXendClientProtocol. This was previously referring to the
abstract base class, which was never going to work.  (This is debugging code
only, so I presume that no-one has used it for a long time, but it's doing no
harm hanging around.)

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 17:31:35 +00:00
emellor@leeni.uk.xensource.com 056647a91c Merged. 2005-12-13 16:26:33 +00:00
emellor@leeni.uk.xensource.com bf68bfcf48 Change the way domain configuration is handled in xm-test.
This will simplify the way we differentiate between HV and PV domains,
as well as make it easier to run normal tests in either HV or PV mode.

This patch has been modified by Ewan Mellor, to match his recent changes to
remove the nics= configuration option.

Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
2005-12-13 16:26:24 +00:00
kaf24@firebug.cl.cam.ac.uk 25cb41a8aa Tony found a direct userspace access with his unit test for
grant_table.c.  We access "uop->frame_list" (a pointer) directly, rather
than using "op.frame_list".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2005-12-13 17:15:26 +01:00
kaf24@firebug.cl.cam.ac.uk f0756c96a0 A new ACM security tool providing support to aid in the
creation/generation of the XML security policy files for the Xen ACM
security architecture.  It is a python- based, web-based tool named
xensec_gen that allows users to create or modify XML policy files
through a browser.  The resulting XML policy files can then be copied
or moved to the appropriate location in the /etc/xen/acm-security
directory structure in order to be translated into binary and used
within the Xen system.

Signed-off-by: Tom Lendacky <toml@us.ibm.com>
2005-12-13 17:12:59 +01:00
kaf24@firebug.cl.cam.ac.uk bb79a7bc45 Support VMX guest accesses to IA32_TIME_STAMP_COUNTER MSR.
Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
2005-12-13 17:08:05 +01:00
kaf24@firebug.cl.cam.ac.uk bed1b35f48 Fix shadow_guest32 depenency in Xen/x86 Makefile.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-12-13 17:02:55 +01:00
kaf24@firebug.cl.cam.ac.uk 2bdefee6ab Add an option for device model to disable key repeat.
On slow network, when creating a vmx guest remotely,
the key repeat feature may make it hard to even type
the user name and password to login in to guest OS.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-13 17:01:09 +01:00
emellor@leeni.uk.xensource.com a9b9f0585c Merged. 2005-12-13 10:57:18 +00:00
Xiaofeng Ling e697c7e8ef change the NIC configuration accordingly after remove "nics=n"
otherwise, nics=-1 will be passed to device model and cause device
model exiting.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-12-13 10:57:04 +00:00
kaf24@firebug.cl.cam.ac.uk adec4de131 Fix rx buffer allocation in netfront. The final allocation size
was ending up bigger than PAGE_SIZE.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-13 03:47:47 +01:00
emellor@leeni.uk.xensource.com b57b530e0a Match previous changeset removing nics option.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:56:50 +00:00
emellor@leeni.uk.xensource.com 8da1a42f90 Merged. 2005-12-13 00:16:02 +00:00
emellor@leeni.uk.xensource.com bc8ed50e6c Deprecate the nics option from the xm create configuration. Instead, we use the
entries in vif to guide the configuration.  This is much less confusing.

Closes bug #440.

Change the example configuration files to match.  Also change them to use the
XenSource OUI in the MAC addresses.  Also change xm-test to match.

Remove the obsolete ipaddr configuration entry, and the backend_mac vif config
option.

Remove the preprocess_vifs function, folding it into the configure_vifs
function, and creating a simple comma_sep_kv_to_dict helper.

Remove the configure_vfr method, as it is unused.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:15:53 +00:00
emellor@leeni.uk.xensource.com 296749cb10 Don't try and close the pipe to the grandparent if it has already been closed
(i.e. we have restarted Xend).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:10:19 +00:00
rread@ubuntu.eng.hq.xensource.com d1bab24950 Increase the default ramdisk size to 16384 to support SLES initrds. 2005-12-12 11:45:53 -07:00
emellor@leeni.uk.xensource.com 17d0f5bf16 Read the domid and vifid from the store, rather than horribly slicing up the
store path.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 17:13:38 +00:00
emellor@leeni.uk.xensource.com 742b21299e Added xend-relocation-hosts-allow option.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:48:24 +00:00
emellor@leeni.uk.xensource.com 151c1bdf9c Squelch error message from iptables (we log this later if necessary).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:44:27 +00:00
emellor@leeni.uk.xensource.com 03bbc8cec6 Added a hosts-allow facility to TCP connections, which allows us to restrict
the acceptable connections based upon a regular expression comparison with the
FQDN or the IP address.

Use the hosts-allow facility to restrict access to the relocation socket.  This
adds the configuration option xend-relocation-hosts-allow, which takes a
space-separated sequence of regular expressions.

Pass the protocol class instance through to SocketServerConnection, rather than
a new instance of that class.  This means that the new instance need not be
passed through SocketListener.acceptConnection.

Make the SocketServerConnection and SocketListener classes start their
corresponding threads and open their sockets (in the case of SocketListener)
automatically.  This means that callers do not need to save an instance locally,
just to call run() or listen() on it.  This also means that listenTCP and
listenUnix can go -- simply creating a TCPListener or UnixListener instance is
sufficient.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:43:48 +00:00
emellor@leeni.uk.xensource.com 91da6b2f1c Minor tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:32:50 +00:00
emellor@leeni.uk.xensource.com 6efef1afab Make from_string('') return []. This means that it is not necessary for our
callers to special-case this value -- the [] is a valid sxp.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:32:19 +00:00
emellor@leeni.uk.xensource.com 3b7940ffef Minor import tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 16:24:32 +00:00
Anthony Liguori d4895766cb Make sure to fork again after setsid() so that child cannot regain CTTY.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-12-12 15:11:13 +00:00
emellor@leeni.uk.xensource.com 56233085ef Remove unused netmask,network etc. These were used when we called ifconfig to
set up the networking, but now that we use ip directly, we don't need them, and
they were in any case broken when the ip address was specified without a suffix.

This work is by James Dykman <dykman@us.ibm.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-12 11:15:29 +00:00
kaf24@firebug.cl.cam.ac.uk c141dd87af Rename QEMU device model log file from /tmp/qemu.log to
/var/log/qemu-dm.<pid>.log.
Also redirect stderr to this log file.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-11 00:20:08 +01:00
kaf24@firebug.cl.cam.ac.uk 3668504a37 VMX domain should call domain_crash_synchronous instead of domain_crash.
Since domain_crash will return at last, and I watched system crash after
its return.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-11 00:17:11 +01:00
kaf24@firebug.cl.cam.ac.uk e53027149f Fix indentation in a few places.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-12-11 00:16:26 +01:00
kaf24@firebug.cl.cam.ac.uk 523283aa07 Fix ia64 blkback build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-11 00:11:44 +01:00
kaf24@firebug.cl.cam.ac.uk 9b10397406 Initilaise new cpu's processed-time value from cpu0's
timestamp. The new cpu's timestamp is not initialised yet,
so should not be used.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-10 16:21:43 +01:00
kaf24@firebug.cl.cam.ac.uk 6aca98f1f5 Remove GPL from a couple of Xen public interfaces. There are
a few more files to be done, after consulting their authors.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-12-10 16:07:03 +01:00
kaf24@firebug.cl.cam.ac.uk 1f430d3e74 Update "make uninstall" to reflect new files.
Signed-off-by: Natasha Jarymowycz <natasha@us.ibm.com>
2005-12-10 15:57:11 +01:00
kaf24@firebug.cl.cam.ac.uk 5d6660e256 In all cases in dom0_ops.c, return EFAULT if copy_user
fails.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-12-10 15:54:27 +01:00
vhanquez@kneesa.uk.xensource.com dc5e7fd510 Allows a 'make prep-kernels' which sets up the kernel directories, allowing
certain types of test automation to be done more easily.

Signed-off-by: Paul Larson <pl@us.ibm.com>
2005-12-10 00:11:33 +00:00
emellor@leeni.uk.xensource.com 2fdffd69ae Merged. 2005-12-09 11:05:06 +00:00
stekloff@elm3b216.beaverton.ibm.com 86867006af Add initial VMX support to xm-test:
1) Added script create_disk_image to make full virt image
2) Changed XenDomain.py to build separate XmTestDomain object
   for vmx guests (this structure will need to be cleaned up)
3) Changed ramdisk Makefile.am to create disk.img if vmx configured

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2005-12-09 11:04:55 +00:00
emellor@leeni.uk.xensource.com 53dcf75ccb Merged. 2005-12-09 10:51:35 +00:00
emellor@leeni.uk.xensource.com 3732520993 Use new do_without_error function to squelch the error when closing down the
interface.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-09 10:51:20 +00:00
emellor@leeni.uk.xensource.com c9392b836d Use new do_without_error function to squelch the errors when closing down an
interface.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-09 10:50:49 +00:00
emellor@leeni.uk.xensource.com c542b41feb Added do_without_error function, and squelch the error from mkdir when trying
to create the lock directory.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-09 10:50:26 +00:00
emellor@leeni.uk.xensource.com 9ab74b250b Add one more fork to the Xend start-up process, this time with the parent
staying alive to watch the child.  If the child crashes, then the parent
starts another one in its place.  This provides robustness in the face of
crashes like one currently tracked as bug #411.

Tidy up chunks of SrvDaemon.py on the way past.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-09 10:49:29 +00:00