Commit Graph
3600 Commits
Author SHA1 Message Date
mwilli2@equilibrium.research 99be955033 bitkeeper revision 1.1159.212.82 (4202dcc3h_cg7sFBNwdIyCk_2qkX0A)
Beginning a sprean clean of the USB code.

Lots of cleanups and fixes (thanks to Harry Butterworth for pointing out several
locking and allocation errors).

Signed-off-by: mark.williamson@cl.cam.ac.uk
2005-02-04 02:24:03 +00:00
mwilli2@equilibrium.research 58e8f23df1 bitkeeper revision 1.1159.212.81 (4202b326JJIfXeNBQXQRsDKmhOvNEw)
Merge ssh://srg//auto/groups/xeno/BK/xeno.bk
into equilibrium.research:/home/irchomes/mwilli2/src/xen-3.0-devel.bk
2005-02-03 23:26:30 +00:00
kaf24@scramble.cl.cam.ac.uk b5ce3cbcd0 bitkeeper revision 1.1159.240.2 (42028548cWA5UfVOtIVVGp5n3bPOKQ)
Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0-testing.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
2005-02-03 20:10:48 +00:00
kaf24@scramble.cl.cam.ac.uk dc3c6686e6 bitkeeper revision 1.1159.223.63 (42028527-fv-d9BM0_LRp8UKGP19gQ)
Fix NMI deferral.
Signed-off-by: keir.fraser@cl.cam.ac.uk
RELEASE-2.0.4
2005-02-03 20:10:15 +00:00
kaf24@scramble.cl.cam.ac.uk 772edb03e4 bitkeeper revision 1.1159.240.1 (42025e61IuxB-TOGFWNyIT0-7gRIuw)
More x86_64 progress: currently churning through construct_dom0.
Then will need a few extensions to entry.S and I can jump to ring 3.
To get hypercalls working I will need a SYSCALL entry point and also
to add uaccess.h/usercopy.S functionality.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-03 17:24:49 +00:00
mwilli2@equilibrium.research 61d2d4dcbc bitkeeper revision 1.1159.212.80 (42025e060u_9I_gXRlf-Xf6Ck27Bhg)
Merge ssh://srg//auto/groups/xeno/BK/xeno.bk
into equilibrium.research:/home/irchomes/mwilli2/src/xen-3.0-devel.bk
2005-02-03 17:23:18 +00:00
kaf24@planb.cl.cam.ac.uk 5dddc28e3c bitkeeper revision 1.1159.212.79 (42025949UaM5lFgjnH_ynRCAqL6hhQ)
Merge planb.cl.cam.ac.uk:/auto/anfs/scratch/scramble/kaf24/xen-2.0-testing.bk
into planb.cl.cam.ac.uk:/auto/anfs/scratch/scramble/kaf24/xen-unstable.bk
2005-02-03 17:03:05 +00:00
kaf24@scramble.cl.cam.ac.uk 8fbc50190a bitkeeper revision 1.1159.223.62 (4202591aKU7cGiiCesn0hIfz1J0vUQ)
Fix bootmem allocator.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-03 17:02:18 +00:00
kaf24@scramble.cl.cam.ac.uk ee9d4d3801 bitkeeper revision 1.1159.212.78 (4202391ehUS0T4TJglUpPqBH3oGjNQ)
Move domain builder to be subarch-specific. Fix pfn_info structure and
page reference-counting to be 64-bit clean.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-03 14:45:50 +00:00
kaf24@scramble.cl.cam.ac.uk f32bc42de3 bitkeeper revision 1.1159.212.77 (4202221693AFbvFZWeMHHIjQfbzTIQ)
More x86_64 prgress. Many more gaps filled in. Next step is DOM0
construction.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-03 13:07:34 +00:00
kaf24@scramble.cl.cam.ac.uk ff7e4d5f08 bitkeeper revision 1.1159.212.76 (4201eac5AlEp4jSQYKA8-oSf0N15pQ)
Add xmalloc_bytes() to the allocator API.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-03 09:11:33 +00:00
kaf24@scramble.cl.cam.ac.uk de60e480e0 bitkeeper revision 1.1159.212.75 (4201e86fqC-UkeTMjRJgsysdz4rT7w)
Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0-testing.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
2005-02-03 09:01:35 +00:00
kaf24@scramble.cl.cam.ac.uk 557f25a0fa bitkeeper revision 1.1159.223.61 (4201e2eb-AZrvBiRdKncIUx8FuLkeA)
Fix ioremap() for local RAM pages.
2005-02-03 08:38:03 +00:00
kaf24@scramble.cl.cam.ac.uk aada4119d1 bitkeeper revision 1.1159.212.74 (42015ef3sPQp8pjeJAck1wBtTAYL9g)
Interface to typed allocator is now just xmalloc/xmalloc_array/xfree.
_xmalloc/_xmalloc_array are dead (or, at least, non-API).
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-02 23:14:59 +00:00
cl349@arcadians.cl.cam.ac.uk 61573e2364 bitkeeper revision 1.1159.223.60 (42015cebANp9qR68FaUpAYoMHdrfpQ)
console.c:
  Disable watchdog before doing the 5 second delay before machine restart.

Signed-off-by: c@pin.lu
2005-02-02 23:06:19 +00:00
cl349@arcadians.cl.cam.ac.uk 8e1f3d67e1 bitkeeper revision 1.1159.223.59 (420156d4cxaGMuI8rtUWoTShsPVlNQ)
setup.c:
  Always disable irqdebug until we have a way to avoid interrupt conflicts.

Signed-off-by: c@pin.lu
2005-02-02 22:40:20 +00:00
kaf24@viper.(none) 51b54130d9 bitkeeper revision 1.1159.212.73 (420154ceFUvIANCrxSTgPyOjFi1Pag)
More x86_64 work. Interrupts and exceptions are now working. Next step is
DOM0 construction. First part of that is to map rest of physical memory,
allocate and map the mach_to_phys table, and fix arch_init_memory().
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-02 22:31:42 +00:00
mwilli2@equilibrium.research 643afd1fc4 bitkeeper revision 1.1159.239.1 (42011d3b3kafRU5DPu227sLReeeG3g)
Ignore SET_CONFIGURATION messages for now.  It Works For Me (TM).  Please
report any problems / weirdness you see as a result.
2005-02-02 18:34:35 +00:00
kaf24@scramble.cl.cam.ac.uk 9188844c02 bitkeeper revision 1.1159.212.72 (42011b79Y7C9nEKFZ5pdQXwp8jC9hw)
More x86/64. Now boot secondary CPUs, but I seem to have problems
executing IRET, so interrupts are fatal.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-02 18:27:05 +00:00
iap10@labyrinth.cl.cam.ac.uk 0e0c5e7aef bitkeeper revision 1.1159.212.71 (4200f0afX_JumfbEHQex6TdFENULMQ)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-02-02 15:24:31 +00:00
iap10@labyrinth.cl.cam.ac.uk 02b5b034ed bitkeeper revision 1.1159.238.7 (4200f09cegOci_6ijw2B4UT2y9odbA)
Enforce alignment of i387 data
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 15:24:12 +00:00
iap10@labyrinth.cl.cam.ac.uk 4f5d6c286a bitkeeper revision 1.1159.238.6 (4200f03fkl-Cpg9vhe49bVfY0e7TZQ)
Fix deps in Makefile
2005-02-02 15:22:39 +00:00
mafetter@fleming.research 4e751b5fa0 bitkeeper revision 1.1159.223.58 (4200ed31YDg6myRSqtQaWLMgRgJ7dA)
Fix "make dist" so that it works from inside the xen subdirectory.
2005-02-02 15:09:37 +00:00
iap10@labyrinth.cl.cam.ac.uk 635d4d481d bitkeeper revision 1.1159.238.5 (4200df8a5A2pMKPYmS5iOV3Q8d2zIw)
Cset exclude: iap10@labyrinth.cl.cam.ac.uk|ChangeSet|20050202130109|29824
2005-02-02 14:11:22 +00:00
iap10@labyrinth.cl.cam.ac.uk c5f20f6be8 bitkeeper revision 1.1159.238.4 (4200cf15b8T6NKAN_1Kqx3nMy4I7WA)
slab.c in Linux is not a very nice piece of code: the version in Xen has
been hacked a certain amount and is not a vision of beauty either.  

Given how rare and non-time-critical dynamic allocations are in Xen,
this replaces the 1800-line slab.c with a 160-line malloc.c which is
written as simply as possible for future enhancement.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 13:01:09 +00:00
iap10@labyrinth.cl.cam.ac.uk ba1589306b bitkeeper revision 1.1159.238.3 (4200cd90cCW2XIYxAgdkWL28Tzf-8g)
Introduce _xmalloc for when you really want just bytes.

Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 12:54:40 +00:00
iap10@labyrinth.cl.cam.ac.uk 4ca6878910 bitkeeper revision 1.1159.238.2 (4200caf6iFnj85XmiFNAz7VursMGUw)
Slab caches for things allocated only on initialization seems to be
overkill.  This patch replaces them with the previous typesafe
allocator.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 12:43:34 +00:00
iap10@labyrinth.cl.cam.ac.uk 395321fa8e bitkeeper revision 1.1159.238.1 (4200c8d8KsGlaM3w6o3y4GHhK1jKjg)
A typesafe allocator submitted by Rusty Russel with trivial renames by me.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> (authored)
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 12:34:32 +00:00
kaf24@scramble.cl.cam.ac.uk 3c1df4be50 bitkeeper revision 1.1159.212.70 (42009f98S4XUaUN_bw-spD54MX9ZtQ)
Merge scramble.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
2005-02-02 09:38:32 +00:00
kaf24@scramble.cl.cam.ac.uk 51d41e1eae bitkeeper revision 1.1159.237.1 (42009f91t0Aoy5LO2Vy893fGlSNC7Q)
Make MP table findable on x86_64.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-02 09:38:25 +00:00
iap10@labyrinth.cl.cam.ac.uk b773c2b57a bitkeeper revision 1.1159.212.69 (42009c14_wjFIPRo2s6br4oGS3Ln-w)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
2005-02-02 09:23:32 +00:00
iap10@labyrinth.cl.cam.ac.uk a3eea3d441 bitkeeper revision 1.1159.223.57 (42009aa1vckOCJ3XiCz8SXnP4BQsFw)
Small hack to make CROMMULTISESSION ioctl return success rather than enosys, like we did on Xen 1.2.
From: Anthony Liguori aliguori@us.ibm.com 
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 09:17:21 +00:00
iap10@pb001.cl.cam.ac.uk 2ce341cd77 bitkeeper revision 1.1159.212.68 (42001e4d1AQiGV2pdPTNrs2AU2LjsQ)
Merge pb001.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into pb001.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-02-02 00:26:53 +00:00
iap10@labyrinth.cl.cam.ac.uk 769dd8e964 bitkeeper revision 1.1159.212.67 (42001d370Zk3jsfUjyC3iV9vgEJAlA)
Create the e820 map dynamically. This makes it easy to run VMX guests
of different memory sizes (no need to manually edit the e820 map).

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 00:22:15 +00:00
iap10@labyrinth.cl.cam.ac.uk 4fb1a7d302 bitkeeper revision 1.1159.212.66 (42001b6f4kUEhmWXQmgg_vNH-AqiWQ)
Right now, the memory for the 1:1 physical mode page tables comes from the
VMX domain's memory. With this change, when the user asks for a domain with
M Megabytes of memory, we actually allocate M+N megabytes in xend, where
N is the memory for the page table pages.

This simplifies the code in the device models that maps guest memory (we
now map all of it) and the E820 map can also give the full M megabytes to
the guest.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 00:14:39 +00:00
iap10@labyrinth.cl.cam.ac.uk a932385698 bitkeeper revision 1.1159.212.65 (42001ad5CoYcWQyfGjSHSJBFeqFrLg)
Make mmio_space() static inline.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-02 00:12:05 +00:00
kaf24@viper.(none) 410c0e2d33 bitkeeper revision 1.1159.236.1 (42000d46U0ZeCEM9d6oFhwqrTrOgDg)
Merge ssh://kaf24@scramble.cl.cam.ac.uk//usr/groups/xeno/BK/xen-unstable.bk
into viper.(none):/home/kaf24/xen-unstable.bk
2005-02-01 23:14:14 +00:00
kaf24@viper.(none) 0c914c9072 bitkeeper revision 1.1159.235.1 (42000d3dwcPyT8aY4VIPYGCfCAJuQQ)
More x86/64. Status: traps.c now included in the build, but actual building
of IDT doesn't happen, and we need some sort of entry.S. More page-table
building required so that arch_init_memory() can work. And there is something
odd with MP-table parsing; I currently suspect that __init sections are
causing problems.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-01 23:14:05 +00:00
iap10@labyrinth.cl.cam.ac.uk 12814f99e4 bitkeeper revision 1.1159.212.64 (42000361XrdUoEK_vD6RMga2eLmwZg)
Allow specification of backend vif MAC addresses. If a backend
MAC is not provided, generate one as before

Signed-off-by: Jody Belka <knew-xen@pimb.org>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-01 22:32:01 +00:00
iap10@labyrinth.cl.cam.ac.uk d4aa4577a8 bitkeeper revision 1.1159.212.63 (41fffd320J5fzfKolmEyIb6tg5-a_w)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
2005-02-01 22:05:38 +00:00
iap10@labyrinth.cl.cam.ac.uk 2eb8f64d4a bitkeeper revision 1.1159.223.56 (41fffbb0baSUSOWVCJ_0NFmEtCmUkw)
Fix the device number calculation for /dev/hd* device names;
ide device numbering works differently to scsi

Signed-off-by: Jody Belka <knew-xen@pimb.org>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-01 21:59:12 +00:00
iap10@labyrinth.cl.cam.ac.uk bae735390f bitkeeper revision 1.1159.223.55 (41fffadb9KX8y2tjTwUVGZRrZQdJ2g)
Fix incorrect result-check in xlvbd_init_device

Signed-off-by: Jody Belka <knew-xen@pimb.org>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-01 21:55:39 +00:00
kaf24@scramble.cl.cam.ac.uk 5d73339f8b bitkeeper revision 1.1159.212.62 (41fff40aESe4aWS82z_rLHeonXpxuQ)
More x86/64 stuff.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-01 21:26:34 +00:00
kaf24@scramble.cl.cam.ac.uk a3c835502c bitkeeper revision 1.1159.212.61 (41ff4ae9QGwwPUv_OONjfk2SaSj0dw)
Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0-testing.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
2005-02-01 09:24:57 +00:00
kaf24@scramble.cl.cam.ac.uk 4baf6e1ed5 bitkeeper revision 1.1159.223.54 (41ff4a05JwUWXLAjyzybyxNxCOE3yw)
Defer NMI that cannot be handled, instead of dropping it completely.
2005-02-01 09:21:09 +00:00
kaf24@viper.(none) 8c86344741 bitkeeper revision 1.1159.212.60 (41febc4bKKSkh9u-Zes9v2CmBuLZxA)
More bootstrap fixes for x86/64. Next thing to do is sort out the IDT and
get traps.c working; then we can get rid of a bunch of dummy labels from
end of boot/x86_64.S. We're also going to need some kind of entry.S before
we can safely enable interrupts. Also bear in mind that not all of physical
RAM may be mapped (only first 1GB) and no m2p table is yet allocated or
mapped. Plenty to be done!
2005-01-31 23:16:27 +00:00
iap10@labyrinth.cl.cam.ac.uk b9cb078242 bitkeeper revision 1.1159.212.59 (41fc114c3QNYidj-HaO5jjZA5jbgpQ)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
2005-01-29 22:42:20 +00:00
iap10@labyrinth.cl.cam.ac.uk 744d0bbffb bitkeeper revision 1.1159.223.53 (41fc0c19tGe1rM62SUQk8WYZjH-D1Q)
Add iptables modules to the default xen0 kernel, and add example configuration files for a NAT setup.
2005-01-29 22:20:09 +00:00
kaf24@viper.(none) ee29a169d6 bitkeeper revision 1.1159.212.58 (41fb7bc3vOj1TsfbXqfUKqcc2wjisA)
Merge viper.(none):/home/kaf24/xen-2.0-testing.bk
into viper.(none):/home/kaf24/xen-unstable.bk
2005-01-29 12:04:19 +00:00
kaf24@viper.(none) 161acb14dd bitkeeper revision 1.1159.223.52 (41fb7ba0KYbuQ5SmW1MZjMO0P-RCew)
Small build fixes. Xen and XenLinux now build for x86_32 from within an
x86_64 build environment if you set TARGET_ARCH=x86_32.
2005-01-29 12:03:44 +00:00