Commit Graph
7709 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 4b6d60a8f0 Allow xen_create_contiguous_region() to fail gracefully if it
cannot allocate a contiguous multi-page extent of memory. This
should avoid unnecessary crashes in the xen-specific skbuff
cache constructor.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-09 14:39:32 +01:00
smh22@firebug.cl.cam.ac.uk b99415e527 More fixes for save/restore; use configured memory for generating sxp.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-09 13:59:53 +01:00
emellor@leeni.uk.xensource.com 4d59fe8300 This patch prevents the xm-test console library from duplicating the
debugging output, when it's turned on.  This just makes it easier to
read.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-09 12:39:38 +01:00
emellor@leeni.uk.xensource.com de3ec1ee5f This patch adds a new test that attempts to save and restore a domain
with a block device attached.  It starts up a domain, mounts a block
device, writes data to it, saves, restores, and then verifies that the
block device can still be read.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-09 12:39:05 +01:00
emellor@leeni.uk.xensource.com 4bb125c6d1 Chmod a+x.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-09 12:38:46 +01:00
smh22@firebug.cl.cam.ac.uk 9d894bc217 Fix 64-bit build.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-09 09:02:59 +01:00
smh22@firebug.cl.cam.ac.uk 7962b47d8b Enable save/restore for PAE domains.
This includes quite a few cleanups / refactoring of the old code, some
of which is intended to prepare for 64-bit save/restore. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-08 18:42:07 +01:00
smh22@firebug.cl.cam.ac.uk a2520b396e Use '-' instead of '_' in xen version strings.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-08 18:39:58 +01:00
kaf24@firebug.cl.cam.ac.uk 0444e5275d Fix alloc_skb() to ensure data is always physically contiguous.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-08 16:48:42 +01:00
kaf24@firebug.cl.cam.ac.uk 366aac2d16 Rationalise the kernel event-channel binding interfaces. The
new interfaces are simpler and should be implementable by any
architecture.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-08 15:58:31 +01:00
emellor@leeni.uk.xensource.com 7aa98216f5 Increase the static constant default number of loopback interfaces, nloopbacks,
to 8.  These interfaces are very cheap, so there's no problem having a few
spare.  Anyone with more than 8 NICs can still use the kernel command line or
the module parameter line to pass a larger limit to this module.

Detail the kernel command line parameter for nloopbacks in the diagnostic in
network-bridge.

Closes bug #381.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-08 15:15:02 +01:00
emellor@leeni.uk.xensource.com 7a2e27bf0c Merged. 2005-11-08 14:56:14 +01:00
emellor@leeni.uk.xensource.com 3483f006f3 Fix two leaks in the pyxc interface. The dictionaries are being added
to lists, and an extra ref was being left behind.

Signed-off-by: Sean Perry <sean@xensource.com>
Signed-off-by: Robert Read <robert@xensource.com>
2005-11-08 14:53:27 +01:00
Michael.Fetterman@cl.cam.ac.uk 11f72f4ab9 merge 2005-11-08 14:41:25 +01:00
Michael.Fetterman@cl.cam.ac.uk c02e0c7355 merge 2005-11-08 13:30:05 +01:00
Michael.Fetterman@cl.cam.ac.uk 07df3c1601 Cleanup various shadow mode asserts.
Separate out the ability for domains to be able to write to their
pagetables (ala "writable page tables", which uses write-protected PTEs
to address the page tables: this is shadow_mode_write_all()) from the
right of a domain to create a PTE with write permissions that points
at a page table (this is shadow_mode_wr_pt_pte())...

Minor cleanup of SHADOW_DEBUG (at least make it compilable) in shadow.c.
2005-11-08 13:26:50 +01:00
emellor@leeni.uk.xensource.com c0c4bfbea8 Merged. 2005-11-08 12:31:43 +01:00
emellor@leeni.uk.xensource.com a86e94e917 Added file missed on commit of earlier patch by Dan Smith. 2005-11-08 12:30:38 +01:00
emellor@leeni.uk.xensource.com f3cac18aac This patch removes all of the auto-generated files that were checked
in with xm-test in changeset 7634.  It also adds an "autogen" script
that re-creates these files.

The auto-generated files really don't need to be in the tree, as they
should be generated by the user on the machine where they plan to run
xm-test.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-08 12:28:19 +01:00
mafetter@aosda.research.intel-research.net 172bd99086 Bug fix in error handling in get_page_from_l4e() 2005-11-08 12:26:48 +01:00
kaf24@firebug.cl.cam.ac.uk fb57a01c90 Remove unused and unnecessary gnttab ioctl.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-08 12:25:09 +01:00
kaf24@firebug.cl.cam.ac.uk 385317d870 Update tools/examples docs.
Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
2005-11-08 12:17:53 +01:00
kaf24@firebug.cl.cam.ac.uk e1734495d8 After move randomMac to netif in 7637, we need to this for vmx guest.
otherwise, if no mac address configured, vmx guest can not be created.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
2005-11-08 12:16:37 +01:00
kaf24@firebug.cl.cam.ac.uk bf4822dafb Remove the execute bit from shell snipplets (the -common files not
starting with #!) found in the example directory under tools. It
further changes the installation path of the udev rules to comply with
what debian does: It places the rules file in /etc/udev/ und creates a
symlink to it in /etc/udev/rules.d.

Signed-off-by: Tobias Hunger <tobias@aquzul.com>
2005-11-08 12:14:33 +01:00
kaf24@firebug.cl.cam.ac.uk 5e034a1be8 Fix the clean target of the tools/xenstore Makefile to
remove all files created. Currently leaves some of its
files behind.

Signed-off-by: Tobias Hunger <tobias@aquzul.com>
2005-11-08 12:06:18 +01:00
emellor@leeni.uk.xensource.com f1c40ce58b This patch increments the version number of xm-test so that we can
distinguish reports from the 0.4.0 tarball and in-tree versions.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-08 12:02:10 +01:00
emellor@leeni.uk.xensource.com c702df17bf This patch adds a URL to the reporting site, as well as a note about
running with lots of free memory to the README.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-08 12:01:09 +01:00
emellor@leeni.uk.xensource.com 44813a39b7 1. Set the UID and EUID of the process when trying to switch to a
non-root user.
2. Better handle the debug-printing inside the console

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-08 12:00:23 +01:00
emellor@leeni.uk.xensource.com ad7f6c5250 1. Unmark the 07 and 08 tests of block_attach as XFAIL
2. Change the MEM_PER_DOM amount in 11_create_concurrent to 24MB, so
   that the test will run on x86_64.
3. Increase the number of DomUs created in 12_create_concurrent to 5
4. Fix a logic error in 01_unpause
5. Add a test 06_help that checks all xm commands with 0-10 arguments
   to make sure none of them traceback with varying argument counts.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-08 11:56:55 +01:00
kaf24@firebug.cl.cam.ac.uk 65ab7fb0d4 merge 2005-11-08 11:44:48 +01:00
mafetter@seana.research.intel-research.net 18238b70d6 Fixed domain refcounting bug (found by inspection) 2005-11-08 11:38:32 +01:00
mafetter@seana.research.intel-research.net 9a23c571c8 Fixed a bug in the audit code.
We don't hold a type refcount to the user's ptbase frame in
shadow refcounting mode.
2005-11-08 11:36:55 +01:00
unknown@aosda.research.intel-research.net 8d636e70eb Fixed domain refcounting bug (found by inspection) 2005-11-08 11:36:37 +01:00
emellor@leeni.uk.xensource.com 882949f3f5 Remove unused parameter.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-08 11:35:25 +01:00
mafetter@seana.research.intel-research.net 2fc4655033 Fix vncviewer spawning so it actually works.
How did this ever work for other people?
2005-11-08 11:31:16 +01:00
mafetter@seana.research.intel-research.net 873985d3e4 Added some minor defensive coding/error handling in xc_linux_build.c 2005-11-08 11:29:07 +01:00
djm@kirby.fc.hp.com 9b55020172 Merge xen-unstable into xen-ia64-unstable again (to get ioapic changes) 2005-11-07 20:40:31 -06:00
emellor@leeni.uk.xensource.com 1c94782d38 Merged. 2005-11-08 03:35:25 +01:00
emellor@leeni.uk.xensource.com e10bc057a5 Push the process of waiting for devices to come up right out of DevController,
and drive this process from xm create.  Architecturally, this separates the
process of domain creation from the process of waiting for devices, allowing
tools to choose when to perform that wait (if at all).  This places the waiting
in the same category as the unpause after domain creation, architecturally.

The main advantage to this approach is that it takes waiting for devices out
of the scope of XendDomain's domains_lock.  When restarting a domain, the
watch would fire for @releaseDomain while we were waiting for new domains to
come up.  This would deadlock the watch thread, as no more new watches could
be delivered.  Closes bug #387.

In the longer term, we expect to be able to wait for devices to come up
completely, not simply to wait for the hotplug scripts to run, and so it is
necessary then to move the waiting procedure right out of the server, so that
it can be performed after the domain unpause.  Without unpausing the domain,
the frontends will not come up, and so we cannot detect successful device
completion.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-08 03:34:23 +01:00
emellor@leeni.uk.xensource.com c311699be9 Rearrange restart logic so that a failure to restart a domain does not cause
cascading secondary errors.  Fixes bug #384.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-08 03:07:57 +01:00
emellor@leeni.uk.xensource.com 44ae505717 Mark plenty of variables as unused, and remove an unused import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-08 02:51:34 +01:00
emellor@leeni.uk.xensource.com 2fe2ab90a2 Remove unused XENSTORED_XYZ constants.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-08 01:26:16 +01:00
djm@kirby.fc.hp.com a2a2124025 Enable ar.unat handling for fast paths (by Anthony Xu) 2005-11-07 16:53:25 -06:00
emellor@leeni.uk.xensource.com a5ba036bad Rename parameter to avoid shadowing builtin.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-07 21:22:02 +01:00
unknown@aosda.research.intel-research.net 2bedd29af9 Minor Makefile cleanup in tools/libxc/Makefile 2005-11-07 18:35:55 +01:00
djm@kirby.fc.hp.com 7d9cb9cf9b Missed ia64 changes to one drivers/xen file 2005-11-07 11:25:59 -06:00
unknown@aosda.research.intel-research.net e2e46ad25b Make xen0's default config match itself after a "make oldconfig" 2005-11-07 18:25:09 +01:00
kaf24@firebug.cl.cam.ac.uk c60a806bc2 Fix pagetable pinning logic for xen/i386 kernels. The pin
flag is now associated with the pgd rather than the mm -- this
avoids a race where a pgd is allocated from the pgd_cache but,
before it gets associated with an mm, the kernel suspends itself.
At this point the kernel mappings will not get rewritten when the
kernel is resumed, and the system will fail.

A further advantage is that the code is slightly simpler and less
invasive (no changes to mm_context for example).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-11-07 18:14:45 +01:00
djm@kirby.fc.hp.com c179fd9015 Merge latest xen-unstable into xen-ia64-unstable 2005-11-07 11:13:38 -06:00
unknown@aosda.research.intel-research.net a7684600fd Minor updates to .hgignore
Added "tools/.*/TAGS" entry.
Sorted all entries.
2005-11-07 17:54:55 +01:00