Commit Graph
6237 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk df3de397c7 Fix __get_user() and friends to work correctly for
64-bit quantities on x86/32. Should fix writable
pagetables on PAE.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 17:04:48 +00:00
kaf24@firebug.cl.cam.ac.uk f26a97ed03 Clean up bootmem initialisation for x86/64. Question still
remains over why boot fails if we try to free up the bottom
1MB of pseudophysical memory...

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 16:04:00 +00:00
kaf24@firebug.cl.cam.ac.uk ba19712966 Fix Xen patches to Linux so that they use pfn_pte() and
pfn_pte_ma() constructors, rather than splicing together
ptes manually. Not only is this cleaner, it also ensures
that the NX/XD bit is safely masked off on systems that do
not support it.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 15:01:03 +00:00
kaf24@firebug.cl.cam.ac.uk 68bcc33d2e Tiny formatting tweak in addition to previous changeset. 2005-08-18 14:33:21 +00:00
kaf24@firebug.cl.cam.ac.uk a0649ba6c2 Clean up formatting of Xen crash messages.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 14:26:36 +00:00
iap10@freefall.cl.cam.ac.uk c2e99d4489 Add SK98LIN driver to default -xen0 Linux configs.
Signed-off-by: ian@xensource.com
2005-08-18 14:18:15 +00:00
iap10@freefall.cl.cam.ac.uk 94c199e8fc Make antispoof default to 'no' in network-script as the default in xend is 'no'. Having them different only causes confusion.
Signed-off-by: ian@xensoure.com
2005-08-18 14:17:22 +00:00
vh249@arcadians.cl.cam.ac.uk fd2312006b fail nicely when passing unknown option to xm list
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-18 11:45:54 +00:00
kaf24@firebug.cl.cam.ac.uk 597ecd67a9 Fix range_straddles_boundary() check to exclude regions that
were allocated with xen_create_contiguous_region(). Such areas
do not require bounce buffers (swiotlb).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 10:41:55 +00:00
jrb44@plym.cl.cam.ac.uk 2c1e4b63b9 Enable IP_PNP support in 64bit domU (needed for xm ip= etc.)
Signed-off-by: James Bulpin <james@xensource.com>
2005-08-18 10:22:08 +00:00
kaf24@firebug.cl.cam.ac.uk f3d1875ab6 Fix the SWIOTLB to correctly match on bus addresses.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-18 09:47:04 +00:00
vh249@arcadians.cl.cam.ac.uk 10d9dd27f4 fail domU creation if memory need couldn't be succeed after ballooning out dom0
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-18 01:13:49 +00:00
iap10@freefall.cl.cam.ac.uk 415a0de9bc Enable MATCH_PHYSDEV netfilter support as a module.
Signed-off-by: iab@xensource.com
2005-08-17 23:11:56 +00:00
iap10@freefall.cl.cam.ac.uk d245fc4186 Fix e820 array stack overflow
I don't see the problem on machine that I typically use, but I found and
fixed the problem on a big machine. It was causing a stack overflow. If
you look at the current code, it's a bit dangerous, see => part. This
patch fixes it.
From: "Nakajima, Jun" <jun.nakajima@intel.com>
Signed-off-by: ian@xensource.com
2005-08-17 22:01:24 +00:00
kaf24@firebug.cl.cam.ac.uk 7501cca885 We found machines with >32 E820 memory map entries, where Xen fails to
boot (but Linux does boot fine). The native Linux (both x86 and x86_86)
already has:

#define E820MAX 128             /* number of entries in E820MAP */

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-17 18:22:18 +00:00
kaf24@firebug.cl.cam.ac.uk 4ce65049c8 Fix vmalloc_fault() path for x86/64 XenLinux.
There may be a deeper underlying problem w.r.t pagetable
initialisation at start of day, but this simple fix is
a good workaround until we have time to investigate
properly.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-17 18:14:46 +00:00
kaf24@firebug.cl.cam.ac.uk 81cf88dc9c Fix the skbuff allocator for multi-page buffers.
pci-dma.c still needs fixing to recognise contiguous
multi-page buffers.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-17 16:53:30 +00:00
kaf24@firebug.cl.cam.ac.uk 88f95d50cf Formatting cleanup. 2005-08-17 15:34:58 +00:00
vh249@arcadians.cl.cam.ac.uk 206e4c4033 have a useful line reporting when IOMMU_BUG_ON trigger
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-17 15:09:31 +00:00
vh249@arcadians.cl.cam.ac.uk 9a0d977633 fix missing swiotlb.c file in linux build after running cleanup.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-17 14:23:16 +00:00
kaf24@firebug.cl.cam.ac.uk 806ac06852 Fix module build by removing duplicate EXPORT_SYMBOL of
dma_alloc_coherent and dma_free_coherent.
2005-08-17 13:34:42 +00:00
kaf24@firebug.cl.cam.ac.uk 34f71bcc7c Allocate_empty_lowmem_regions available to non-priv domains
and to modules. From Ross Mcilroy.
2005-08-17 13:33:55 +00:00
iap10@freefall.cl.cam.ac.uk 4a58a25381 merge 2005-08-17 12:30:04 +00:00
iap10@freefall.cl.cam.ac.uk 34ef247301 Another tweak to the network-bridge script.
Signed-off-by: ian@xensource.com
2005-08-17 12:29:34 +00:00
cl349@firebug.cl.cam.ac.uk 9dc02cdad0 merge? 2005-08-17 12:26:05 +00:00
cl349@firebug.cl.cam.ac.uk fb008da966 Restore domains with a different uuid than they had.
Needed for migration to localhost and migration between hosts with
a shared/distributed xenstore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 12:25:50 +00:00
kaf24@firebug.cl.cam.ac.uk 55b8547307 Python build fix. 2005-08-17 10:35:39 +00:00
cl349@firebug.cl.cam.ac.uk f9c5a6235f Recreate watches on domain restore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 10:18:34 +00:00
cl349@firebug.cl.cam.ac.uk 6b2e541096 Clear "/control/shutdown" node on domain restore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 10:18:13 +00:00
kaf24@firebug.cl.cam.ac.uk 9c07496f46 xenbus build and license fixes. 2005-08-17 09:59:04 +00:00
cl349@firebug.cl.cam.ac.uk 208cd71bf7 Add support for XENSTORED_TRACE to enable trace output from xenstored.
Set XENSTORED_TRACE in /usr/sbin/xenstored's environment to enable the
trace output.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 09:50:26 +00:00
cl349@firebug.cl.cam.ac.uk 135f79ef6f Fix compile warning from zero-length printf format string.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 08:52:04 +00:00
cl349@firebug.cl.cam.ac.uk f5eca0c88e merge? 2005-08-17 08:27:16 +00:00
cl349@firebug.cl.cam.ac.uk 72593432a5 Avoid spurious "Ignoring shutdown request" messages, fix memory leak and simplif
y code.
Also fix whitespace.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-17 08:26:58 +00:00
iap10@freefall.cl.cam.ac.uk 8b799c9ee6 Yet another work-around in the network-bridge script
From: Zhai, Edwin [edwin.zhai@intel.com]
Signed-off-by: ian@xensource.com
2005-08-16 20:00:53 +00:00
kaf24@firebug.cl.cam.ac.uk 91b0f0040e Really randomise MAC addresses for multi-VIF guests.
Reseeding on every VIF doesn;t work as timeofday doesn't
change quickly enough.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-16 19:38:22 +00:00
kaf24@firebug.cl.cam.ac.uk b09f19bf24 Add a couple of well chosen assertions to new context
switch code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-16 18:12:19 +00:00
kaf24@firebug.cl.cam.ac.uk 02bf186308 Fix context switching race which could cause vcpu_pause()
to not actually do its job properly. This requires us to
move clearing of VCPUF_running to be protected by the
scheduler lock.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-16 18:02:24 +00:00
cl349@firebug.cl.cam.ac.uk a5479372a0 Don't bail early if we detect that time goes backwards.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-16 17:02:49 +00:00
cl349@firebug.cl.cam.ac.uk 5546b5e5b1 cleanup whitespace.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-16 17:00:52 +00:00
cl349@firebug.cl.cam.ac.uk 62883ada70 merge? 2005-08-16 16:34:46 +00:00
cl349@firebug.cl.cam.ac.uk 81eb58aedb Only introduce domain to the store when we have store channel _and_ mfn.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-16 16:34:04 +00:00
cl349@firebug.cl.cam.ac.uk ed95a3d8d7 In direct_remap_area_pages, reset w pointer for next loop after use.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-16 16:33:12 +00:00
kaf24@firebug.cl.cam.ac.uk eb72f656ae Fix xtime_lock handling in timer interrupt. There's no need
to hold it while doing local VCPU work, and there might be
danger of deadlock if we do.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-16 15:40:43 +00:00
kaf24@firebug.cl.cam.ac.uk f31042c4c4 Use a SWIOTLB to use pre-reserved bounce buffers for high memory
and multi-page DMA accesses. This is based on a preliminary patch
from Suresh Siddha at Intel.

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
2005-08-16 11:20:47 +00:00
akw27@arcadians.cl.cam.ac.uk c631e99bf4 Add grant table support to block tap.
This patch adds grant table support to the block tap.  The AIO support
introduced in patch 9f0eff879d8913a824280cf67658a530c80e8424 still
works -- The tap code maps a granted page twice, once in kernel and
once in user.  The kernel page is patched into the p2m table and pages
added to the user vm_area are mapped to the appropriate underlying
struct pages using the VM_FOREIGN hooks in get_user_pages().

Comparing block IO from dom0 to the existing block backend, and to the
tap managing the same partition as the BE from user space with AIO, I
get the following performance:

Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
xen0             2G 31198  95 56818   8 20967   2 28415  77 59595   4 264.9   0
xenU-blkbe2cpuGT 2G 31157  96 54026  10 25585   4 30664  90 64919   7 292.7   0
xenU-blktp2cpuGT 2G 32313  97 54217   8 20950   3 28117  87 65924   4 191.8   0

Signed-off-by: andrew.warfield@cl.cam.ac.uk
2005-08-16 10:12:18 +00:00
kaf24@firebug.cl.cam.ac.uk 3eeeaba7c9 Disable xenconsoled throttling for now. 2005-08-16 07:07:11 +00:00
kaf24@firebug.cl.cam.ac.uk 12ef0a9548 Under the right circumstances, xenconsoled will corrupt its internal
list of domains causing a SEGV.  This is usually characterized by a 
rapid number of creations/destructions.  The attached patch fixes this.

1) Fix uninitialized next pointer.  This could sometimes cause xenconsoled to
   SEGV on an invalid domain pointer
2) Fix race condition in iterating domain list where removing a domain in a
   callback could lead to the iterators becoming invalid.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-16 07:06:10 +00:00
iap10@firebug.cl.cam.ac.uk 3168022e9e merge 2005-08-16 01:04:32 +00:00
iap10@firebug.cl.cam.ac.uk 0a91775aaa merge 2005-08-16 01:01:19 +00:00