Commit Graph
7966 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk c4da02a2ab Fix the zombie domain when destroying 2.6 linux vmx guest.
The zombie domain is caused by unreleased shadow page
because of lack of put_shadow_ref.
When unshadow a L1 page, set l2e to zero and put ref.

Signed-off-by: <xiaofeng.ling@intel.com>
2005-11-22 07:08:57 +01:00
rread@ubuntu.eng.hq.xensource.com 0a9b9b5eb2 Build the USB boot keyboard and mouse drivers as modules, so the real
USB modules will be loaded after boot.
2005-11-21 15:19:26 -07:00
smh22@firebug.cl.cam.ac.uk 297fc3718d Fix syntax error.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-21 19:28:50 +01:00
emellor@leeni.uk.xensource.com 10edfe8abf Merged. 2005-11-21 19:08:44 +01:00
emellor@leeni.uk.xensource.com cd082ee2d3 Misc fixes for breakage when moving to new Python/C interface style.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 19:08:27 +01:00
kgrant@localhost.localdomain b12096d703 use help in create.py for "xm help create" 2005-11-21 18:53:31 +01:00
xenrtd@shispar-rt.testdev.hq.xensource.com 859804fbea Catch parsing errors in xm create. 2005-11-21 18:52:40 +01:00
emellor@leeni.uk.xensource.com dd6ab4433e Merged. 2005-11-21 18:47:31 +01:00
emellor@leeni.uk.xensource.com aecd7580d4 As with xs.c, change the module interface to match the current Python/C
tutorial, simplifying the interface here, and making it more conventional.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 18:46:09 +01:00
smh22@firebug.cl.cam.ac.uk a346ac4c89 Remove unnecessary assert.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-21 18:45:09 +01:00
emellor@leeni.uk.xensource.com 2b2f00d237 Tidy use of module / package names.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 18:34:25 +01:00
emellor@leeni.uk.xensource.com 4922a76ab2 Merged. 2005-11-21 18:33:27 +01:00
emellor@leeni.uk.xensource.com 78d2a7ffe3 Return the changed path as an argument to the watch callback. This is useful
for the test CD, and simplifies DevController everso slightly.  It ought to be
generally useful, too.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 18:33:17 +01:00
kaf24@firebug.cl.cam.ac.uk a1584b36b2 Change semantics of gnttab_transfer to take the page away
from the calling domain, even on error (except for special
error GNTST_bad_page). This has a knock-on advantage of
simplifying Linux's netback driver.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-21 18:10:35 +01:00
emellor@leeni.uk.xensource.com e9653b1204 Remove many unnecessary uses of keyword arguments, to reduce complexity.
Have the self parameter to all the methods be an XsHandle, not a PyObject, to
avoid casting.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 17:48:22 +01:00
emellor@leeni.uk.xensource.com a6f7d807ed Merged. 2005-11-21 17:30:43 +01:00
emellor@leeni.uk.xensource.com 0bed005388 Fix removal of use of scheduler, broken earlier today by mismerge.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 17:30:22 +01:00
emellor@leeni.uk.xensource.com 124d92e3b0 Merged. 2005-11-21 17:06:42 +01:00
emellor@leeni.uk.xensource.com 20e3f38ade Changes check for "udev", so that it works on debian sid (that does not
have /sbin/udev anymore).

Signed-off-by: Murillo F. Bernardes <mfb@br.ibm.com>
2005-11-21 17:03:21 +01:00
kaf24@firebug.cl.cam.ac.uk 9ba9cbdb3f Update the memory_op() hypercall. Add two new subcommands, to
query a domain's current and maximum memory reservation. Also,
XENMEM_maximum_ram_page now returns the max_page directly,
rather than writing through a passed-in pointer.

Also, disable PAE in the default config (accidentally checked
in two changesets ago).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-21 16:56:39 +01:00
smh22@firebug.cl.cam.ac.uk 7cdf0f6407 Fix 'belt + braces' check in xc_linux_save and improve error handling
for live migrate (this includes making shadow enable idempotent). 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-21 16:40:16 +01:00
kaf24@firebug.cl.cam.ac.uk daee19a8a7 Linux swiotlb now uses correct method for determining if any RAM
is mapped above 2GB.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-21 16:10:19 +01:00
kaf24@firebug.cl.cam.ac.uk da618e9258 Mute error message on SMP resume if a secondary CPU is
already back online.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-21 15:06:49 +01:00
emellor@leeni.uk.xensource.com ea8c03c331 Merged. 2005-11-21 14:48:31 +01:00
emellor@leeni.uk.xensource.com f7abab3a59 Replace initialiser for readonly parameter in xshandle_init that should never
have been deleted.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 14:48:10 +01:00
kaf24@firebug.cl.cam.ac.uk 0200af138e Fix grant-table transfer implementation. Also fix transfer
error paths in network frontend and backend drivers.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-21 14:17:50 +01:00
emellor@leeni.uk.xensource.com 5d1f08e233 Merged. 2005-11-21 13:17:29 +01:00
emellor@leeni.uk.xensource.com 10201a9dd6 Removed, now unused.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 13:15:08 +01:00
emellor@leeni.uk.xensource.com 9282de479a Append the new device config to our internal structure, in device_create. This
will preserve the new device config across migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 13:14:38 +01:00
emellor@leeni.uk.xensource.com 431db49359 Catch RuntimeError inside initDomain, for better handling of out-of-memory, etc.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 13:13:57 +01:00
emellor@leeni.uk.xensource.com 875af1a9da Remove last remaining use of scheduler.py, so we can remove the whole module.
It's not worth a whole module to save us 8 characters of typing to start a
timer.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 13:12:09 +01:00
emellor@leeni.uk.xensource.com 8a20de98b5 Downgrade debug message to level "trace".
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 13:09:45 +01:00
emellor@leeni.uk.xensource.com cab9735d16 Added another test. Fix the existing tests to close the written config file
before running the test upon it, to ensure that the file is flushed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 13:03:45 +01:00
emellor@leeni.uk.xensource.com bbd9571e5f Added reset method to Opts so that create.parseCommandLine can be used more than
once.  This makes it possible to unit test this code.  Remove the odd aliasing
of gopts to opts inside parseCommandLine.

Rename local variables globals and locals inside opts.load -- these are built-in
functions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 13:00:36 +01:00
emellor@leeni.uk.xensource.com 8b3050a110 Remove whole piles of cruft from the connection layer. The only thing that was
using connectionMade, connectionLost, startedConnecting, clientConnectionLost,
and clientConnectionFailed was the test classes (TestClientFactory,
TestClientProtocol, TestServerFactory, TestServerProtocol), so they were
actually testing lots of code that no-one else was using.  All these classes
have gone, freeing up lots of cruft around.

The useless classes Factory, ServerFactory, ClientFactory, RelocationFactory,
UnixServerConnection, and TCPServerConnection have gone, in favour of passing
the Protocol class directly to SocketListener, and using SocketServerConnection 
directly.

connectTransport has gone, in favour of overriding connect directly.

Piles of closedown cruft has gone, as this was only supporting the correct
output of connectionLost events, none of which we need.

Unused SocketServerConnection.{getHost,getPeer} have gone.

Mark some parameters in relocate as unused.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 12:55:51 +01:00
emellor@leeni.uk.xensource.com 8c4aff7e06 Added method so that SrvDaemon can be run in the foreground without all the
forking implied by the start method.  This makes it easier to run valgrind
against Xend, or run it with a pydebug-compiled Python.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 12:44:43 +01:00
emellor@leeni.uk.xensource.com 0858255f54 Fix typo, and failure to unpack singleton tuple correctly.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 12:42:47 +01:00
emellor@leeni.uk.xensource.com 8c71f5197b Added unit test for the DevController subclasses.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 12:41:39 +01:00
emellor@leeni.uk.xensource.com dcae872252 Change the module registration declarations and change the object creation and
deallocation to match those in the Python/C tutorial.  This has been done to
make the interface here more conventional, in the hunt for bug #411.  One
double deallocation has been fixed, but this would only occur if we failed to
create the connection to Xenstore, and so unfortunately is not the cause of
that bug.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 12:40:02 +01:00
emellor@leeni.uk.xensource.com 3afa97b0f2 Remove all unnecessary uses of keyword arguments, to reduce complexity. In
many places we were supporting keywords for calling the methods here, and never
using that feature (especially where all the arguments were compulsory anyway)
and in some places we were even accepting positional and keyword arguments, and
not actually taking any arguments to the method at all!

Fix the permission parsing string in xspy_set_permissions -- this would have
blown up horribly if anyone were actually calling this code.

Fix the documentation comments to include the transaction handle throughout.

Have the self parameter to all the methods be an XsHandle, not a PyObject, to
avoid casting.

Remove unused pyvalue_int and pyvalue_str.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-21 12:34:37 +01:00
emellor@leeni.uk.xensource.com 9fc5d0e1cb Added document to collate information regarding distro-specific
incompatibilities in the commands that we are using in the scripts.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-20 15:40:53 +01:00
dykman@us.ibm.com 35e6103a68 1) "brctl show" has no parameters.
2) Add a -n flag to iptables -L to skip DNS lookups
2005-11-20 15:37:08 +01:00
dan@localhost.localdomain 26937cc111 First stab at a xend-config.sxp man page. 2005-11-20 15:01:15 +01:00
kaf24@firebug.cl.cam.ac.uk 8471e6ce53 Merge with xen-ia64-unstable.hg. 2005-11-20 10:19:38 +01:00
kaf24@firebug.cl.cam.ac.uk 6242befca2 Small build fix to Python xenstore interface library.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2005-11-20 10:18:29 +01:00
djm@kirby.fc.hp.com 6b7047253a Recode usage of FPSR_DEFAULT due to strange double declaration 2005-11-19 15:41:08 -06:00
kaf24@firebug.cl.cam.ac.uk 04ed109b67 The patch allows one to configure NR_CPUS >8 (16 by default, same as the
native) for x86_64 xenlinux. I tested 16-way xenolinux (using changeset
7892) on a 16-way SMP machine with >8GB memory. It worked fine as long
as I did sanity tests like kernel build (make -j64).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-11-19 10:37:14 +01:00
kaf24@firebug.cl.cam.ac.uk ac5d4d868f Enable the Xen hypervisor ACM security policy to be determined at boot
time (instead of at compile time). Allows a single xen.gz binary to
run under different security policy types, which simplifies
distributions considerably. To this end, we replace the current single
compile switch in Config.mk with the following two:

1. ACM_SECURITY (y/n) if "n", then the ACM is not compiled and no security 
policies can be configured at boot time. If "y", then the ACM is compiled 
and can be configured into any of the available policy types (null, 
chwall, ste, chwall_ste) by specifying a valid boot policy .bin file in 
the grub boot configuration.

2. ACM_DEFAULT_SECURITY_POLICY (null / chwall / ste / chwall_ste) 
specifies the policy into which Xen defaults in the case that security is 
enabled but no boot policy file is specified, or the specified policy file 
is invalid (wrong version, magic, corrupted, ...)

While the type of the enabled policy (null, ste, ...) is decided once 
during boot for the whole boot cycle, the policy instantiation can be 
changed during operation as usual with the security tools.

Signed-off by: Tomas Lendacky <toml@us.ibm.com>
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2005-11-19 10:35:38 +01:00
kaf24@firebug.cl.cam.ac.uk afb312d146 This patch is to fix a few performance "bugs" in the xenmon.py script.
No functionality is added or removed. Tested on x86/32 smp and x86/64.

Signed-off-by: Rob Gardner  <rob.gardner@hp.com>
2005-11-19 10:29:28 +01:00
kaf24@firebug.cl.cam.ac.uk cb3c2200e1 Fix shadow log-dirty mode for x86_64 xenlinux. Tested
PAE xenlinux as well.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
2005-11-19 10:28:24 +01:00