Commit Graph
7940 Commits
Author SHA1 Message Date
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
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
djm@kirby.fc.hp.com e233724f1f Merge 2005-11-18 23:16:29 -06:00
djm@kirby.fc.hp.com 16ef7e78b4 Fall back to zx1-based configs, defconfigs don't work yet to boot domU 2005-11-18 23:06:09 -06:00
cl349@firebug.cl.cam.ac.uk ceb4196680 Revert 04a7decd0645b23f1f398340e927eb191f0e754d since it's not needed.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-11-19 04:35:37 +01:00
cl349@firebug.cl.cam.ac.uk a69feeba51 Move tpmfe.h file next to other xen specific header files.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : linux-2.6-xen-sparse/include/linux/tpmfe.h => linux-2.6-xen-sparse/include/asm-xen/tpmfe.h
2005-11-19 02:27:20 +01:00
cl349@firebug.cl.cam.ac.uk ba0f86655c Fix support for sxp domain configuration files.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-11-19 01:59:43 +01:00
smh22@firebug.cl.cam.ac.uk f2896ff4cd Only resume xenbus /after/ we've prepared our VCPUs; otherwise the
VCPU hotplug callback can race with our vcpu_prepare. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-18 19:56:03 +01:00
kaf24@firebug.cl.cam.ac.uk 949ebc61f8 Do not allow an uninitialised VCPU to be brought up. Also
check VCPUOP_up return code in the guest and BUG() on
failure.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-18 19:25:17 +01:00
djm@kirby.fc.hp.com 081db0ddef Fix read of guest psr to properly set dfh and other bits (by Matt Chapman) 2005-11-18 11:04:58 -06:00
djm@kirby.fc.hp.com f3ccc12644 Properly pass iha/itir if data miss occurs when fetching privop (by Matt Chapman) 2005-11-18 10:58:03 -06:00
kaf24@firebug.cl.cam.ac.uk 1f39a6dc5e The xentrace_format script doesn't work on x86/64. Python pads the input
structure because the first field is 32 bits and the next is 64 bits, 
whereas x86-32 doesn't pad. The quick fix is to read the cpu id 
separately as a 32bit value, then read the rest of the trace record. 
Here is a little patch that does that. Tested on x86/32 SMP and x86/64.


Signed-off-by: Rob Gardner <rob.gardner@hp.com>
2005-11-18 17:54:23 +01:00
kaf24@firebug.cl.cam.ac.uk 931a2bf97f make_page_readonly() must flush unused kmaps when handling
a high-memory page. Otherwise stale writable mappings may 
persist. This fixes a corner case for alloc_ldt (which can
vmalloc an LDT and hence use highmem pages).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-18 17:50:25 +01:00
kaf24@firebug.cl.cam.ac.uk cde43db53a Improve make_page_readonly and make_page_writable:
1. Use update_va_mapping where possible (much faster)
 2. If that fails, fall back to explicit pte update rather
    than using writable pagetables (very slow for singleton
    updates)

Also many x86/64 cleanups and fix to handle vmalloc space
correctly.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-18 17:42:45 +01:00
kaf24@firebug.cl.cam.ac.uk f2d946d367 Simplify arbitrary_virt_to_phys, and fix the x86/64 version to mask
out the NX bit.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-18 17:41:03 +01:00
djm@kirby.fc.hp.com 32a58ce429 Remove DOMU_BUILD_STAGING and supporting code entirely, no longer needed 2005-11-18 10:01:10 -06:00
emellor@leeni.uk.xensource.com 72af5fff3b Merged. 2005-11-18 16:32:04 +01:00
emellor@leeni.uk.xensource.com 3b7259968a Remove one further reference to network_limit_help that I missed when merging.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-18 16:31:50 +01:00
emellor@leeni.uk.xensource.com eaa3641b4f Merged. 2005-11-18 14:30:47 +01:00
emellor@leeni.uk.xensource.com 224611c6da Remove barbaric abuse of goto out of one nested block and into a previous one.
Remove one other -- less barbaric but still horrible -- use of goto.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-18 14:28:38 +01:00
emellor@leeni.uk.xensource.com 0c47abed1d Merged. 2005-11-18 14:05:38 +01:00
emellor@leeni.uk.xensource.com 7a9a19bd5a From Ken Grant: Add per command help / make help match new man pages.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-18 14:04:53 +01:00
kaf24@firebug.cl.cam.ac.uk e39174283d Disable live relocation for PAE and x86/64. Currently it can
seriously harm Xen's health. Better to just disable it in the
tools until the outstanding issues are resolved.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-18 13:51:20 +01:00
kaf24@firebug.cl.cam.ac.uk de70603843 Remove conditionally-compiled code for Linux 2.4.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-11-18 13:46:18 +01:00
dan@guaranine.beaverton.ibm.com c4b4f208da Make test 15_create_smallmem pass mem=16M on the kernel command line. 2005-11-18 13:02:33 +01:00
dan@guaranine.beaverton.ibm.com 2f45e4aed1 Added a test to verify that devices come and go from block-list
as they are block-attach'd and block-detach'd.
2005-11-18 13:02:01 +01:00
sean@dague.net 1443ca6d8c updates to xmdomain.cfg.5 man page to document most used options, and
provide a basic template for examples
2005-11-18 13:01:30 +01:00
dan@localhost.localdomain e198273e0e Add hping to the ramdisk. Also, do some very simple versioning.
This is the first change to the ramdisk since v0.1.0.  So, we now build
the image as initrd-X.Y.img, and link initrd.img to it.  This lets us
have a few checks to make sure that people rebuild their ramdisks when
necessary.
2005-11-18 13:00:13 +01:00