Commit Graph
3782 Commits
Author SHA1 Message Date
sos22@douglas.cl.cam.ac.uk 36a9323ec0 bitkeeper revision 1.1178 (420c87ccD2VdHFZVGUqHR4Zd2yI1mg)
After a fatal trap, we want to debug whatever caused the trap rather than the trap
handler.  Fix things up accordingly.

Also add some documentation while I'm here.

Signed-off-by: sos22@cl.cam.ac.uk.
2005-02-11 10:24:12 +00:00
cl349@arcadians.cl.cam.ac.uk 4e88d35838 bitkeeper revision 1.1177 (420c0fadBy7s1H_BwU5gDKjAg1MBFw)
Cleanup cleanups.

Signed-off-by: chris@xensource.com
2005-02-11 01:51:41 +00:00
cl349@arcadians.cl.cam.ac.uk 0d21bb314d bitkeeper revision 1.1176 (420be7310q_UvcXdnsevIZbXRZHJ4g)
Various cleanups.

Signed-off-by: chris@xensource.com
2005-02-10 22:58:57 +00:00
kaf24@scramble.cl.cam.ac.uk 4a1eeabda8 bitkeeper revision 1.1175 (420bacd51yx4f66j0Yv3tnUwEmeDtw)
Fix x86/64 SYSCALL handling. Handle return to compatibility mode as
well as long mode.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-10 18:49:57 +00:00
sos22@douglas.cl.cam.ac.uk b3745bd726 bitkeeper revision 1.1174 (420ba3bb5kHKomeIcBm8uzF2u-A5dg)
Merge douglas.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into douglas.cl.cam.ac.uk:/local/scratch/sos22/xendbng/foo.bk
2005-02-10 18:11:07 +00:00
kaf24@scramble.cl.cam.ac.uk 52ba37dd67 bitkeeper revision 1.1172.1.1 (420ba344y-TLJ8cFOVA_8bN7wd3dMw)
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-10 18:09:08 +00:00
kaf24@scramble.cl.cam.ac.uk 091e799a84 bitkeeper revision 1.1159.1.568 (420ba33bo4Ly13qI5cHgZttHha5_-g)
Change do_set_callbacks hypercall for x86/64 to not take any selector
values, but to take a syscall_entry point.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-10 18:08:59 +00:00
kaf24@scramble.cl.cam.ac.uk 8d5914fdb7 bitkeeper revision 1.1159.1.567 (420ba30bAq55q3Qi9iVgQ6Cl1_7CNQ)
Fix asm-offsets.h dependencies.
2005-02-10 18:08:11 +00:00
sos22@douglas.cl.cam.ac.uk f479a13f28 bitkeeper revision 1.1173 (420ba26dU4VauWP5oFVWCo3QsMg0Jw)
Make everything compile again.

Signed-off-by: sos22@cl.cam.ac.uk.
2005-02-10 18:05:33 +00:00
sos22@douglas.cl.cam.ac.uk ca0f9b3cf7 bitkeeper revision 1.1172 (420b99066Xfg-68mYeFJdp4BIxo_wQ)
Merge douglas.cl.cam.ac.uk:/local/scratch/sos22/xendbng/xeno.bk
into douglas.cl.cam.ac.uk:/auto/groups/xeno/users/sos22/crashdb.bk

Signed-off-by: sos22@cl.cam.ac.uk
2005-02-10 17:25:26 +00:00
sos22@douglas.cl.cam.ac.uk f0abae28b4 bitkeeper revision 1.1170.1.1 (420b98f5HLKkq19C9PxLpNFZOD2-mg)
Make it compile in the non-crash_debug case.
2005-02-10 17:25:09 +00:00
sos22@douglas.cl.cam.ac.uk b2a6659aef bitkeeper revision 1.1171 (420b98ac0B3ughFHARZwZjaceYNFUg)
Merge douglas.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into douglas.cl.cam.ac.uk:/auto/groups/xeno/users/sos22/crashdb.bk
2005-02-10 17:23:56 +00:00
kaf24@scramble.cl.cam.ac.uk 62609f9cb5 bitkeeper revision 1.1159.1.566 (420b9859IEtfznEUT481JP1bxIJ7YA)
Fix IDT handling. x86/64 doesn't need an IDT per CPU. On x86/32 I have
put the IDT copying back to where it was, very late in the boot process.
Otherwise I miss late modifications to the master IDT. This fixes
problems I was seeing with serial line interrupts getting msidirected.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-10 17:22:33 +00:00
sos22@douglas.cl.cam.ac.uk 0af6c14b0f bitkeeper revision 1.1170 (420b96e4lQdbo7fzNNwrsgmrzMJExQ)
Merge douglas.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into douglas.cl.cam.ac.uk:/local/scratch/sos22/xendbng/xeno.bk
2005-02-10 17:16:20 +00:00
sos22@douglas.cl.cam.ac.uk 252678160f bitkeeper revision 1.1169 (420b96d48xPe7Ok5mXEY_QuvSxXLxw)
Improve documentation a little.
2005-02-10 17:16:04 +00:00
sos22@douglas.cl.cam.ac.uk c4d681a418 bitkeeper revision 1.1168 (420b96c7tDX3WAggwXBacK-2DjNySg)
Trap to debugger from a fatal trap.
2005-02-10 17:15:51 +00:00
sos22@douglas.cl.cam.ac.uk 408477d5a7 bitkeeper revision 1.1167 (420b96b4EStXs5M4SVJpHN9DT5wwkQ)
smp_send_stop sometimes reenabled interrupts.  Make sure it doesn't.
2005-02-10 17:15:32 +00:00
sos22@douglas.cl.cam.ac.uk 5b46877a44 bitkeeper revision 1.1166 (420b94b19VPINEpnyrORsIwqTctjAA)
Add in a very brief description of how it's supposed to work.
2005-02-10 17:06:57 +00:00
sos22@douglas.cl.cam.ac.uk 5c5ffc1ac1 bitkeeper revision 1.1165 (420b922egKp-aJPtYkOkWGp2ZSNQAA)
Get rid of some annoying debug.
2005-02-10 16:56:14 +00:00
sos22@douglas.cl.cam.ac.uk 70c57c2d2e bitkeeper revision 1.1164 (420b9093tZfwUqS7PQW_U7NLqOc72Q)
Make sure we disable the watchdog while we're in the debugger.
2005-02-10 16:49:23 +00:00
sos22@douglas.cl.cam.ac.uk 93257503b2 bitkeeper revision 1.1163 (420b8f97P8m2OsC2o8di9OVsBppT2Q)
Arrange for it to work (some of the time) on modern Xen.
2005-02-10 16:45:11 +00:00
kaf24@scramble.cl.cam.ac.uk b9bbcdfedb bitkeeper revision 1.1159.1.565 (420b7bafUdB4uOmG-Qm1AYMify0jrQ)
p2m and m2p tables are now 4 bytes per entry always, even on x86/64.
Fixed mapping of m2p table into kernel space on x86/64.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-10 15:20:15 +00:00
sos22@douglas.cl.cam.ac.uk 4843690d71 bitkeeper revision 1.1162 (420b71f6yarVsHEUH8wBvGFgIVSTBQ)
Re-sanify after merge.
2005-02-10 14:38:46 +00:00
sos22@douglas.cl.cam.ac.uk 26abc5cc9b bitkeeper revision 1.1161 (420b5ed6DpcotfvpA5TTxShadFd_MQ)
Merge with non-ancient version of Xen.
2005-02-10 13:17:10 +00:00
kaf24@scramble.cl.cam.ac.uk 15f43332e7 bitkeeper revision 1.1159.1.564 (420b44edsb8XzPev-TiGW16GSsCW6g)
More x86_64 stuff. Added hypercalls to register a user-space pagetable,
modify FS/GS base addresses, and switch to user mode. User mode switches
back to kernel mode automatically on executing SYSCALL instruction.
Still todo: 1. getdomaininfo needs to include pagetable_user
            2. get writable and shadow pagetables working
            3. testing
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-10 11:26:37 +00:00
iap10@freefall.cl.cam.ac.uk 412a83bf25 bitkeeper revision 1.1159.1.563 (420ac6a4CzlgvLZ7nmENZh1uJh51Ng)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
2005-02-10 02:27:48 +00:00
iap10@freefall.cl.cam.ac.uk 8e5a6833ff bitkeeper revision 1.1159.223.85 (420a9b72OGag4m4sDtlxM-918tbudQ)
Subject: [Xen-devel] VNET - full update

Allows vnets to compile and run under 2.6.10/xen-testing.
PATCH: vnet-cleanup.patch
Signed off by: bgb@nt-nv.com
Signed-off-by: ian@xensource.com
2005-02-09 23:23:30 +00:00
iap10@freefall.cl.cam.ac.uk 6be18e86c3 bitkeeper revision 1.1159.223.84 (420a6831W2g6HHtXksV16NZox0sA5Q)
Subject: [Xen-devel] [PATCH 1/2] netfront coding style clean-up (trivial)

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: ian@xensource.com
2005-02-09 19:44:49 +00:00
iap10@freefall.cl.cam.ac.uk 0e05a6b2c7 bitkeeper revision 1.1159.1.562 (420a5d22B5wTDaFFOL7CfKG24g-JCA)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-02-09 18:57:38 +00:00
iap10@freefall.cl.cam.ac.uk 6bedce0c5d bitkeeper revision 1.1159.257.1 (420a5d09baXJPJiifdfGaELY297KOw)
Refactor code to eliminate some code duplication.
- added gva_to_gpte
- gva_to_gpa uses gva_to_gpte now
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-09 18:57:13 +00:00
kaf24@scramble.cl.cam.ac.uk 09e143ff89 bitkeeper revision 1.1159.1.561 (420a44fbc4-bx17m5WWwDlyH93ab-g)
Some simple renaming. 'guestos' -> 'kernel'.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-09 17:14:35 +00:00
kaf24@scramble.cl.cam.ac.uk ca479cec72 bitkeeper revision 1.1159.1.560 (420a3937bsia3-KUKXK3oI9TTu7gaA)
Loads more x86_64 work. entry.S is now done so we reflect exceptions
and interrupts to the guest. The only missing parts are new hypercalls
to set FS_BASE, GS_BASE_KERN, GS_BASE_USER. Also the concept of two
L4 pagetable bases -- one for user, one for kernel.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-09 16:24:23 +00:00
kaf24@scramble.cl.cam.ac.uk 4aa62e269f bitkeeper revision 1.1159.1.559 (4209e312Ii3Tsz9q9NZb2CbM0b1BzA)
More x86_64 work. do_mmu_update and update_va_mapping are now done.
Still todo: 1. exception/interrupt callbacks to guest OS
            2. OS ring 3 vs. application ring 3
            3. writable pagetables and shadow pagetables
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-09 10:16:50 +00:00
iap10@tetris.cl.cam.ac.uk a3736f5c0e bitkeeper revision 1.1159.1.558 (42097caa-4C6IJxUdk1DgyyzixbYBg)
Merge tetris.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into tetris.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
2005-02-09 02:59:54 +00:00
iap10@tetris.cl.cam.ac.uk 0eef50acd6 bitkeeper revision 1.1159.223.83 (42097c41y12EFATQuIKPTDS1smnkWQ)
Subject: [Xen-devel] [PATCH] Fix initrd support for Linux 2.4/2.6

The following patch sets the default root device to be the null device. 
This is the behavior Linux is launched with no root device specified in
the command line and without a device provided by the boot loader.
Previously, the default root device was set to be /dev/ram0.  This broke
initrd support.  This change was made in 2.6 to because of a bug
reported on September 14th with dynamic ipconfig.  I've recreated his
problem and looked through the code and the source of the problem was
that his kernel command line was incorrect. He was missing the BOOTP
field in the config line requiring that there be an actual root device.
This worked with 2.4 but only because 2.4 was also broken.  His patch
just introduced that bug into 2.6.
I've tested this against the 2.6 and 2.4 trees in a recent copy of
xen-unstable.  I've tested initrd support and ipconfig support
(including dynamic ip support).  They both now work as expected.
If anyone needs an initrd for testing let me know.
Regards,
-- 
Anthony Liguori
Linux Technology Center (LTC) - IBM Austin
E-mail: aliguori@us.ibm.com
Phone: (512) 838-1208
Signed-off-by: Anthony Liguori
Signed-off-by: ian@xensource.com
2005-02-09 02:58:09 +00:00
iap10@labyrinth.cl.cam.ac.uk 29822cad4f bitkeeper revision 1.1159.1.557 (4209531dcD_85ru3nT6SL_v6qHidAA)
Subject: [PATCH] mmio-decode-movz.patch

- Handle the movz instruction in the decoder. This was necessary to get
  X working.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-09 00:02:37 +00:00
iap10@labyrinth.cl.cam.ac.uk 6e533199b1 bitkeeper revision 1.1159.1.556 (420951de12d7YPCDmxFldoqZYbe2cw)
Subject: [PATCH] pit-in-hv.patch

- Use ac_timer for PIT interrupt injection (more accurate time keeping)
- Accelerate some critical PIT I/O operations in the hypervisor
  (saves 15us per op). Cuts down guest timer interrupt handler execution time
  by a third.
- If the domain is scheduled out, make sure that interrupts are not lost
- Add a generic framework for device I/O interception

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 23:57:18 +00:00
iap10@labyrinth.cl.cam.ac.uk 3b66390a75 bitkeeper revision 1.1159.1.555 (42094892MsTPGiy_x_uFbwMVQuq4Qg)
Fix the synchronization issues between xend and the device model at 
startup time.

Initialize the shared page in the hypervisor. Otherwise, the hypervisor
might try to inject spurious interrupts into the guest due to
uninitialized data.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 23:17:38 +00:00
iap10@labyrinth.cl.cam.ac.uk 3f789c23ce bitkeeper revision 1.1159.1.554 (4209402bTjMxzBx8aPHpjveufoaubQ)
manual merge
2005-02-08 22:41:47 +00:00
iap10@labyrinth.cl.cam.ac.uk 09d5eb5720 bitkeeper revision 1.1159.223.82 (42093f8cxZb9FQfWwmj7IIok9ndiPg)
minor stats collection addition
ian@xensource.com
2005-02-08 22:39:08 +00:00
kaf24@scramble.cl.cam.ac.uk 62ca359947 bitkeeper revision 1.1159.1.553 (420919acSbg0z7dds_B0PhykDN6vYA)
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-08 19:57:32 +00:00
kaf24@scramble.cl.cam.ac.uk 5c74609870 bitkeeper revision 1.1159.256.1 (420919a4fFt2x7Ej4o_xqAI2CSYN8Q)
mmu_update fixes for x86_64. About halfway there.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-08 19:57:24 +00:00
iap10@freefall.cl.cam.ac.uk 81bf47d053 bitkeeper revision 1.1159.1.552 (420918f8LzMe7S_sxvvaHtdM_xcpYg)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-02-08 19:54:32 +00:00
iap10@freefall.cl.cam.ac.uk c909225775 bitkeeper revision 1.1159.255.3 (420918d3OV9YNdw3dCaE6e4udrKnDA)
manual merge
2005-02-08 19:53:55 +00:00
iap10@freefall.cl.cam.ac.uk faf69408ee bitkeeper revision 1.1159.223.81 (42091872lrObHIRNczDaqDeQw3NmyA)
debug memory audit cleanups + comment fix from Jon Mason.
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-08 19:52:18 +00:00
iap10@freefall.cl.cam.ac.uk 102e049dc5 bitkeeper revision 1.1159.255.2 (4209127er8MJffd33h0Xohwj83BUWQ)
misc VT-x cleanups
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-08 19:26:54 +00:00
iap10@freefall.cl.cam.ac.uk da6bb52872 bitkeeper revision 1.1159.255.1 (420911c0Dpqzcuh7CS1OpkVP4miSbQ)
misc debug audit cleanups
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-08 19:23:44 +00:00
akw27@labyrinth.cl.cam.ac.uk 0bb3ebdb6c bitkeeper revision 1.1159.1.551 (42090342LHDFQZTluOIKtDxiXyfkHA)
Initial checkin of blktap user-land tools.  These are fairly experimental, 
but a few people have asked to use them.  This checkin also includes 
Christian's gnbd client library code.

Signed-off-by: andrew.warfield@cl.cam.ac.uk
2005-02-08 18:21:54 +00:00
kaf24@scramble.cl.cam.ac.uk 0e68b181a9 bitkeeper revision 1.1159.1.550 (4208ff07n_vZmQRm3MGLW7fSFD_y4g)
Small naming cleanup. p.t. 'entries' and 'shift' macros now have same
naming style.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-08 18:03:51 +00:00
mafetter@fleming.research cc1407ea2b bitkeeper revision 1.1159.1.549 (4208fb95gxAvpOu2Y6U5GTnniA8anQ)
Merge maf46@ssh-relay1.cl.cam.ac.uk:/usr/groups/xeno/BK/xen-unstable.bk
into fleming.research:/scratch/fleming/mafetter/xen.work
2005-02-08 17:49:09 +00:00