Commit Graph
2093 Commits
Author SHA1 Message Date
iap10@labyrinth.cl.cam.ac.uk bea911cf0d bitkeeper revision 1.1159.4.1 (4113d1b8oHof-8weGeQ3gNQFteLGEg)
David Becker writes:
This patch adds support for high memory to /proc/xen/memory_target,
and it restores the mem= linux boot parameter.  This is for 2.4.26 only.
I haven't looked at 2.6 yet.  (remmeber that CONFIG_HIGHMEM
is not on by default in the xen0 and xenU configs)
I have racks of 2g and 4g machines, hence my interest.

The 'mem=' param tells linux the maximum amount of memory it can use.
The feature originated for hosts where the normal mem detection mechanisms
failed.   These days its main use in stock linux is to artificially
constrain how much memory linux uses for testing low memory systems.

With this patch, mem= now means the max memory linux could ever use.
When a domain is created with less than that the mem= value, linux will
behave as though that 'missing' memory is 'allocated'.   To give the
domain more memory, first run setdomainmaxmem in Dom-0 to raise Xen's
limit, then write the new total to /proc/xen/memory_target in the
domain.   When mem= is not explicitly set, it defaults to the 
boottime size of the domain.
 dom-0# xm create name=dom-1 memory=100 extra='-b mem=2g'
 dom-0# setdomainmaxmem 1 2g
 dom-1# echo 2g > /proc/xen/memory_target
2004-08-06 18:45:12 +00:00
iap10@tetris.cl.cam.ac.uk 1821da0c9b bitkeeper revision 1.1159.1.5 (4113a9f3PDFYg7EjovC2RDHcOb74rA)
2.6 block device backend fix -- we weren't allowing whole disks to be exported.
2004-08-06 15:55:31 +00:00
kaf24@scramble.cl.cam.ac.uk 8b1df04c8f bitkeeper revision 1.1159.1.4 (41139d30ti25GcZ_ZdQ_JgKIlrbiHQ)
Merge scramble.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xeno
2004-08-06 15:01:04 +00:00
kaf24@scramble.cl.cam.ac.uk 61536d2615 bitkeeper revision 1.1159.2.1 (41139d17RLVEh5iKEyxO0hVWOtdS6Q)
Domain ids are 16 bits.
2004-08-06 15:00:39 +00:00
cl349@freefall.cl.cam.ac.uk a6c43865f5 bitkeeper revision 1.1159.1.3 (41139174iXDl-lRZjxOIIxORO_R1YA)
Only fail because we're not a privileged domain after performing all
other checks (permissions & valid level).
2004-08-06 14:11:00 +00:00
cl349@freefall.cl.cam.ac.uk 10531c9bae bitkeeper revision 1.1159.1.2 (4113876512dMKuet45HFX0pB88bZlA)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
into freefall.cl.cam.ac.uk:/local/scratch/cl349/xeno.bk-26dom0
2004-08-06 13:28:05 +00:00
cl349@freefall.cl.cam.ac.uk ae3fdffcb7 bitkeeper revision 1.1149.2.3 (411386bfYp4SwvBgrsGPfuJ_1XU5xw)
Enable pcibios_scan_all_fns since otherwise we don't find all multifunction devices.
2004-08-06 13:25:19 +00:00
kaf24@scramble.cl.cam.ac.uk 8c5e32317b bitkeeper revision 1.1159.1.1 (41137be7CbsfIV_H_aLlq3moTPnDwA)
Ensure binary patches are applied only to private VMAs.
2004-08-06 12:39:03 +00:00
kaf24@scramble.cl.cam.ac.uk 37d961d521 bitkeeper revision 1.1159 (41137149kQ0eVoHQjKc8FK_iYKQPyQ)
A better build fix for 2.4.
2004-08-06 11:53:45 +00:00
kaf24@scramble.cl.cam.ac.uk 7d460d5b63 bitkeeper revision 1.1158 (41137071d88TgpVO07tfpWOGGvxo8A)
Dynamic binary rewriting of -ve segment accesses is now enabled by
default in Linux 2.6. Removes the approx 100-percent overhead incurred
by pure emulation on library-intensive benchmarks.
2004-08-06 11:50:09 +00:00
kaf24@scramble.cl.cam.ac.uk 46bf3ec9b4 bitkeeper revision 1.1157 (4113632d6VFX3LiVtOA9DaeCdASm_A)
Merge scramble.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xeno
2004-08-06 10:53:33 +00:00
kaf24@scramble.cl.cam.ac.uk fa3838d595 bitkeeper revision 1.1155.1.1 (41136325-oxiUylDl1QI0-Wxz6HGbg)
Fix 2.4 build.
2004-08-06 10:53:25 +00:00
gm281@boulderdash.cl.cam.ac.uk 676f46c8b7 bitkeeper revision 1.1156 (411361dclImK_wtDjHbbaA9eclPocg)
Polishing up the warping mechanism in bvt
2004-08-06 10:47:56 +00:00
kaf24@scramble.cl.cam.ac.uk 067b241269 bitkeeper revision 1.1155 (411350f1WPGKHyDE_nv5WX9LJBbaWg)
Add support for marking bad pages using the 'badpage=xxx'
cmdline option when booting Xen.
2004-08-06 09:35:45 +00:00
kaf24@scramble.cl.cam.ac.uk 82401cec24 bitkeeper revision 1.1154 (4112b45dWwkFmdda2Kbef4LU3kxWcw)
Merge scramble.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xeno
2004-08-05 22:27:41 +00:00
kaf24@scramble.cl.cam.ac.uk edd2be0634 bitkeeper revision 1.1145.1.2 (4112b44fQiWPPD5sUdsW9Yhi90ujCg)
Binary-rewrite patches.
2004-08-05 22:27:27 +00:00
kaf24@scramble.cl.cam.ac.uk b26da44a76 bitkeeper revision 1.1145.1.1 (4112b3cd2EhCTP6gCuQGTMJlD8scmw)
Patches from Charles Coffing.
2004-08-05 22:25:17 +00:00
gm281@boulderdash.cl.cam.ac.uk 438b8fa221 bitkeeper revision 1.1153 (41126318o43x3YiPCk8UwYtIQ4XdtA)
Fixes to the warping mechanism in BVT
2004-08-05 16:40:56 +00:00
cl349@freefall.cl.cam.ac.uk 1368339066 bitkeeper revision 1.1149.2.2 (41125ca87nJjUEYoSsWzlx9ToYbRuA)
Put some memory into the DMA zone.  Makes memory allocation for drivers
using a coherent_dma_mask happy.
2004-08-05 16:13:28 +00:00
cl349@freefall.cl.cam.ac.uk ab6d78ff48 bitkeeper revision 1.1152 (4112369d1lg2gEGMDNU2UJuqjHAshQ)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
2004-08-05 13:31:09 +00:00
cl349@freefall.cl.cam.ac.uk 8ebe5dea2b bitkeeper revision 1.1149.2.1 (4112365bnjnfkDEbbfEWWDz7AIB6Hw)
Don't set bridge hello time (specifically not to 0) since Linux 2.6 bridge
code doesn't deal well with sethello == 0 (domain doesn't block and thus
consumes cycles constantly).
2004-08-05 13:30:03 +00:00
iap10@tetris.cl.cam.ac.uk 948f841200 bitkeeper revision 1.1151 (41120fb8xr8_V1PLbpmrRK70-fx9Rw)
Merge tetris.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into tetris.cl.cam.ac.uk:/auto/anfs/scratch/tetris/iap10/xeno-clone/xeno.bk
2004-08-05 10:45:12 +00:00
iap10@tetris.cl.cam.ac.uk e20375aefb bitkeeper revision 1.1149.1.1 (41120faeHisaNqAFsbxZQez_EVSPpw)
Add a few more config options to default dom0 kernel build.
2004-08-05 10:45:02 +00:00
gm281@boulderdash.cl.cam.ac.uk b5deac7be1 bitkeeper revision 1.1150 (41120577g9fFRK1fSLMW6p4QnOuLrQ)
Overflows in the printing routine fixed.
2004-08-05 10:01:27 +00:00
iap10@tetris.cl.cam.ac.uk dd04dc7262 bitkeeper revision 1.1149 (41115b668o7dUJ6ttofTlKAibgm-iw)
update 2.6.7-xen0 defconfig
2004-08-04 21:55:50 +00:00
cl349@freefall.cl.cam.ac.uk 641a415863 bitkeeper revision 1.1148 (411131f0ZrZwSSvmzkGHMRh1xnTq_Q)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
into freefall.cl.cam.ac.uk:/local/scratch/cl349/xeno.bk-26dom0
2004-08-04 18:58:56 +00:00
cl349@freefall.cl.cam.ac.uk 5701fb30f1 bitkeeper revision 1.1144.2.3 (411131e5ajffwxEwUe16_ifAYf1qbw)
Get /dev/tty1 working as console for dom0 kernels running as domU.
2004-08-04 18:58:45 +00:00
cl349@freefall.cl.cam.ac.uk e90390b384 bitkeeper revision 1.1147 (4111186968-85F4G7TCbxTsfJbMisQ)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
2004-08-04 17:10:01 +00:00
cl349@freefall.cl.cam.ac.uk d571f68ac2 bitkeeper revision 1.1144.2.2 (41111834NpWIjSdTBKjh_Pcy3uUIcA)
Really allow a dom0 kernel to run as a domU.
2004-08-04 17:09:08 +00:00
cl349@freefall.cl.cam.ac.uk 12fe4b9cbb bitkeeper revision 1.1144.2.1 (41111749FSr1gr4vfGeXBFEKdMTxNw)
Allow a dom0 kernel to run as domU.
2004-08-04 17:05:13 +00:00
gm281@boulderdash.cl.cam.ac.uk dfd50ac124 bitkeeper revision 1.1146 (41110cbfaXvbhmdOWkZ-BJOO5_-R4w)
Merge boulderdash.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into boulderdash.cl.cam.ac.uk:/auto/anfs/scratch/boulderdash/gm281/xeno-clone/xeno.bk
2004-08-04 16:20:15 +00:00
gm281@boulderdash.cl.cam.ac.uk 4e7ebaddbb bitkeeper revision 1.1144.1.1 (41110cafHhGko2QnIa3NEGARA_3f3Q)
Addition of libc functions which allow to do 64 bit mod operations.
2004-08-04 16:19:59 +00:00
kaf24@scramble.cl.cam.ac.uk 78d264da22 bitkeeper revision 1.1145 (4110f479PxkIKUvFbncA2zFohr9-Gg)
Allow guests to register for synchronous callback (exception 15)
when a 4GB segment access is emulated by Xen. This will be used by
Linux to dynamically rewrite common instructions.
2004-08-04 14:36:41 +00:00
cl349@freefall.cl.cam.ac.uk f8c0a4a633 bitkeeper revision 1.1144 (4110b7750uPevZ3W0Ib2jk8KgCIsCQ)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
2004-08-04 10:16:21 +00:00
cl349@freefall.cl.cam.ac.uk 68c79a699c bitkeeper revision 1.1139.1.1 (4110b72fhtHFIf4Ul13KpCx5pOkJ7w)
Make pages used for LDT writable when they get freed.
Fixes ltp thread creation test failure.
2004-08-04 10:15:11 +00:00
kaf24@scramble.cl.cam.ac.uk 7e24e2604d bitkeeper revision 1.1143 (4110b5c38VYeFSdv3JdFEuUgJgQXcg)
Add a HYPERVISOR_vm_assist() hypercall for optionally enabling features
such as writeable pagetables.
2004-08-04 10:09:07 +00:00
kaf24@scramble.cl.cam.ac.uk 440066a858 bitkeeper revision 1.1142 (4110afd0owbbEXhkFLD9CP8fJNtr-g)
Fix compile errors in debug build.
2004-08-04 09:43:44 +00:00
kaf24@scramble.cl.cam.ac.uk c42e0a544a bitkeeper revision 1.1141 (41100bacOlxYcQPdke8d6QszHxObgQ)
Finish merging the 2.4/2.6 blkdev backend drivers.
2004-08-03 22:03:24 +00:00
kaf24@scramble.cl.cam.ac.uk 059c048c28 bitkeeper revision 1.1140 (410ff439WlfI3QwLq1jc8FFQpSSvKA)
remove unnecessary 2.4 file from sparse tree
2004-08-03 20:23:21 +00:00
cl349@freefall.cl.cam.ac.uk 2e3419d952 bitkeeper revision 1.1139 (410fd545eUjg1bT0svAFnVoJbqUq_g)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
2004-08-03 18:11:17 +00:00
cl349@freefall.cl.cam.ac.uk 9143a1e436 bitkeeper revision 1.1137.1.2 (410fd4cfFvTxv4lXex3_3vqTf2RsPQ)
domain_controller.h is in include/asm-xen/hypervisor-ifs/io now.
2004-08-03 18:09:19 +00:00
cl349@freefall.cl.cam.ac.uk 0bb1aef921 bitkeeper revision 1.1137.1.1 (410fd46dbo4BdLBLEMnuCF1i4zvASw)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
into freefall.cl.cam.ac.uk:/local/scratch/cl349/xeno.bk-26dom0
2004-08-03 18:07:41 +00:00
cl349@freefall.cl.cam.ac.uk 0ac8059c91 bitkeeper revision 1.1131.1.2 (410fd451mjk_zz4-gJBfZHdAHnFx8A)
Make page_to_phys return machine addresses.  Fixes s/g-merging for block
devices.
2004-08-03 18:07:13 +00:00
kaf24@scramble.cl.cam.ac.uk 307656538c bitkeeper revision 1.1138 (410fd388WFVCEU4IaHptE23lCb9KVQ)
Obviate need to modify blkdev.h in Linux 2.4.
2004-08-03 18:03:52 +00:00
cl349@freefall.cl.cam.ac.uk 6484f8724f bitkeeper revision 1.1137 (410fcd7eqUe2ohwS0xPEhaorppQTww)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xeno.bk-26dom0
2004-08-03 17:38:06 +00:00
cl349@freefall.cl.cam.ac.uk 2a03f12466 bitkeeper revision 1.1131.1.1 (410fcd36BPCOqi_xOwMe3B30qkp45A)
Cleanup vbd_lock locking.  Fixes scheduler lockup when trying to create a
vbd with a non-existant device.
2004-08-03 17:36:54 +00:00
kaf24@scramble.cl.cam.ac.uk 1295533b04 bitkeeper revision 1.1136 (410fcd1dXCUIdIRu9TcJZuNDJEcV9w)
Merge coherent alloc routines in 2.4/2.6.
2004-08-03 17:36:29 +00:00
kaf24@scramble.cl.cam.ac.uk 6896c83453 bitkeeper revision 1.1135 (410fc9b5AR4G7sAORAI1W-pb1J1aAA)
More 2.4/2.6 merges.
2004-08-03 17:21:57 +00:00
kaf24@scramble.cl.cam.ac.uk c9ae61d555 bitkeeper revision 1.1134 (410fc14f4HAr8IlztN3Sv7_-cHFa-w)
Merge scramble.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xeno
2004-08-03 16:46:07 +00:00
kaf24@scramble.cl.cam.ac.uk e6f1414017 bitkeeper revision 1.1132.1.1 (410fc148tLJQNH7768Degg248R1WlQ)
Add a 'verbose' compile option to Xen that gets us tracing without
stress tests or assertions that come with the 'debug' option.
2004-08-03 16:46:00 +00:00