Commit Graph
3728 Commits
Author SHA1 Message Date
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
mafetter@fleming.research 73a1c347dc bitkeeper revision 1.1159.254.1 (4208fb40ebFKAx9nnWfHPfWIPdQ9Vw)
Bug fix for free_domain_struct().
Don't dereference a pointer after we've free'd it.
2005-02-08 17:47:44 +00:00
kaf24@scramble.cl.cam.ac.uk 520e4a1649 bitkeeper revision 1.1159.1.548 (4208f95aAgOLAVzYN_LfO9DmE-DoNA)
ignore list clean.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-08 17:39:38 +00:00
kaf24@scramble.cl.cam.ac.uk 190f541a31 bitkeeper revision 1.1159.1.547 (4208f8c5CfxK9ZFrm2AcWi7LSNQ5sg)
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 17:37:09 +00:00
kaf24@scramble.cl.cam.ac.uk 1b31ca96c2 bitkeeper revision 1.1159.253.1 (4208f8a54Zaz-XgC11YTHeLxPHPoZg)
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 17:36:37 +00:00
smh22@tempest.cl.cam.ac.uk 2be774380e bitkeeper revision 1.1159.1.546 (4208f897krIXzlEsP6G6V3H5URXQSg)
fix typo
Signed-off-by: steven.hand@cl.cam.ac.uk
2005-02-08 17:36:23 +00:00
kaf24@scramble.cl.cam.ac.uk 5aae47ce34 bitkeeper revision 1.1159.212.133 (4208f70bysX-Xugo-Q2_ptciUVbe_g)
Use size-independent '%p' format string in preference to '%08lx'.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-08 17:29:47 +00:00
smh22@tempest.cl.cam.ac.uk f50b658923 bitkeeper revision 1.1159.1.545 (4208ec60-ql2CB2KKyZRC_8udlW9kA)
Merge tempest.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into tempest.cl.cam.ac.uk:/local/scratch/smh22/xen-unstable.bk
2005-02-08 16:44:16 +00:00
kaf24@scramble.cl.cam.ac.uk 2f7160ff55 bitkeeper revision 1.1159.212.132 (4208e2acn2x2RLZsxZIR12IGEO1b3A)
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 16:02:52 +00:00
kaf24@scramble.cl.cam.ac.uk 6dd1ba682a bitkeeper revision 1.1159.252.1 (4208e2a42Fwe83QQfJdFQI8V302tYg)
Reorganise mm.h to split out 32-bit and 64-bit definitions. Fix x86_64
definitions to mask out the bits that we don't care about.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-08 16:02:44 +00:00
iap10@freefall.cl.cam.ac.uk ca8a0a94f2 bitkeeper revision 1.1159.212.131 (4208dea93kRwptTEZzh2Dm2aH9dAKA)
merge
2005-02-08 15:45:45 +00:00
iap10@freefall.cl.cam.ac.uk 055935cf6d bitkeeper revision 1.1159.223.80 (4208de05Xtv_u_3smJSRU6ex6bTAfA)
Some functions aren't static and could be (damn C language!).

I tried turning on -Wmissing-prototypes: unfortunately gives warnings
for functions used in asm, which means introducing gratuitous prototypes
for them.  Not sure it's worth it.

1) keyhandler.c: keypress_softirq() and do_task_queues() can be static.
2) physdev.c: pcidev_dom0_hidden() can be static.
3) resource.c/resource.h: check_region is deprecated (racy): remove.
4) sched_bvt.c: lots of things can be static.
5) pci/compat.c: not required for Xen.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-08 15:43:01 +00:00
kaf24@scramble.cl.cam.ac.uk f337575998 bitkeeper revision 1.1159.212.130 (4208dde9v8U9U_7hI23vverH97_FLQ)
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 15:42:33 +00:00
kaf24@scramble.cl.cam.ac.uk 46a8326d79 bitkeeper revision 1.1159.251.1 (4208dde2yO5a2hmuPJlwJg0U4vM8yA)
Use p_paddr when loading Elf program segments; not p_vaddr.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-08 15:42:26 +00:00
akw27@labyrinth.cl.cam.ac.uk fe767e49c8 bitkeeper revision 1.1159.212.129 (4208d858olmxfMnz16ahNWDNaOt4KQ)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/nos1/akw27/xeno-clone/xeno.bk
2005-02-08 15:18:48 +00:00
akw27@labyrinth.cl.cam.ac.uk ff735aa1a1 bitkeeper revision 1.1159.249.2 (4208d80fdADS1E8W_FrA3GnIhbkDTw)
my bad.

signed-off-by: akw27@cl.cam.ac.uk
2005-02-08 15:17:35 +00:00
kaf24@scramble.cl.cam.ac.uk ff64f33c9c bitkeeper revision 1.1159.212.128 (4208d72fZEHIE9NOZZbr91V7R-3gUg)
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 15:13:51 +00:00
kaf24@scramble.cl.cam.ac.uk f87f8a7110 bitkeeper revision 1.1159.250.1 (4208d729hvKh9E4GWJWvFDThd8OXyA)
More x86_64 fixes/cleanups. NB. update_va_mapping hypercalls now
accept a virtual address, *not* a "virtual page number".
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-08 15:13:45 +00:00
akw27@labyrinth.cl.cam.ac.uk 4a33b9f396 bitkeeper revision 1.1159.249.1 (4208d0edi9hSgBaQl0hrDcYiEH0yxg)
blktap driver fixes:  
Allow the tap to terminate a block device (not need a backend). 
Allow it to run in dom0.
Forward control messages to user space as well.

Signed-off-by: akw27@cl.cam.ac.uk
2005-02-08 14:47:09 +00:00
mafetter@fleming.research 74ade1a59d bitkeeper revision 1.1159.212.127 (4208b02bTdSR4AVYRg8diDkKZmIVUg)
General shadow code cleanup.

Fixed compilation problems when SHADOW_DEBUG is enabled.
Fixed compilation problems when CONFIG_VMX is undefined.

Simplified l1pte_write_fault and l1pte_read_fault.
Name change: spfn => smfn (shadow machine frame numbers).

In general, the terms pfn and gpfn now refer to pages in the
guest's idea of physical frames (which diffs for full shadow
guests).  mfn always refers to a machine frame number.

One bug fix for check_pagetable():
If we're using writable page tables
along with shadow mode, don't check the currently writable page table
page -- check its snapshot instead.

Signed-off-by: michael.fetterman@cl.cam.ac.uk
2005-02-08 12:27:23 +00:00
kaf24@scramble.cl.cam.ac.uk 196c87d157 bitkeeper revision 1.1159.212.126 (42089d5esMXb54hvuQX14wvXnCm18w)
Various hypercall fixes for x86_64.
Main todos: 1. mmu_updates/update_va_mapping hypercalls.
            2. map perdomain_pt into Xen address space.
            3. exception/interrupt callbacks to guest OS.
            4. user-space ring 3 vs. guest-OS ring 3.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-08 11:07:10 +00:00
iap10@labyrinth.cl.cam.ac.uk d117cb0a4a bitkeeper revision 1.1159.212.125 (42082eb7N-IslXNUjMvYswTnizJdsw)
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-08 03:15:03 +00:00
iap10@labyrinth.cl.cam.ac.uk 02f82c2788 bitkeeper revision 1.1159.223.79 (42082ea1obdbIutzD0IY-9Fdcf7Exw)
Fix to memory debugging audit code.
  
Signed-off-by: ian@xensource.com
2005-02-08 03:14:41 +00:00
iap10@labyrinth.cl.cam.ac.uk 361ac64f30 bitkeeper revision 1.1159.212.124 (42082d88aeY4pFTDqfgHMrvhse0-PA)
Fix to memory debugging audit code.

Signed-off-by: ian@xensource.com
2005-02-08 03:10:00 +00:00
iap10@labyrinth.cl.cam.ac.uk 12296a9dd9 bitkeeper revision 1.1159.212.123 (42082005dxGUQnJcMdl-1781X20PQQ)
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-08 02:12:21 +00:00
iap10@labyrinth.cl.cam.ac.uk 8582e1b222 bitkeeper revision 1.1159.248.1 (42081fedCWYqmUmFHfXFmy6z8jqp3w)
Some cleanups:

- Use ENTRIES_PER_L1_PAGETABLE instead of ENTRIES_PER_L2_PAGETABLE
- Use PAGE_SHIFT instead of L1_PAGETABLE_SHIFT

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 02:11:57 +00:00
iap10@labyrinth.cl.cam.ac.uk f4411a4540 bitkeeper revision 1.1159.212.122 (420813205N6xleek-CEt8_zMptvY9w)
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-08 01:17:20 +00:00
iap10@labyrinth.cl.cam.ac.uk f5fedc454d bitkeeper revision 1.1159.223.78 (42081302-eWxmHBN6T8FdRJD5VvsOg)
This very simple patch is really just cosmetic.  It "fixes" xend so that
it doesn't report restart as: "WARNING (XendDomainInfo:1038) Unknown
config field restart" in the xend.log.  I'm not sure who should sign off
on this, but the patch is attached.

From: "B.G. Bruce" <bgb@nt-nv.com>
Signed-off-by: ian@xensource.com
2005-02-08 01:16:50 +00:00
iap10@labyrinth.cl.cam.ac.uk f003f6cbbe bitkeeper revision 1.1159.212.121 (42081031Gcfd1G5fgexBl7vd4XfmLQ)
Use 1:1 pagetables used for guest physical mode emulation for doing
phys_to_machine_mapping as well.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 01:04:49 +00:00
iap10@labyrinth.cl.cam.ac.uk a143af2f2c bitkeeper revision 1.1159.212.120 (42080fdeqkhdPXOxk9B5egncOrellQ)
Make phys_to_machine_mapping a static inline function.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 01:03:26 +00:00
iap10@labyrinth.cl.cam.ac.uk 6d5c7e8551 bitkeeper revision 1.1159.212.119 (42080936hYySAGh0O5TePVvGrzAKtA)
Enable PCI.

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 00:35:02 +00:00
iap10@labyrinth.cl.cam.ac.uk fe5c36a66a bitkeeper revision 1.1159.212.118 (420808adQbNXWTSEhY2Rqu5ALqDF5Q)
- Detect the CPU speed automatically, rather than having the user 
  specify a ips in bochsrc. The user can still specify it to override
  the auto-detected value.

- Care should be taken to make sure that tsc_per_bx_tick is not too
  small or too big. Otherwise, numerical precision issues may result
  in the wrong calculation of elapsed time

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 00:32:45 +00:00
iap10@labyrinth.cl.cam.ac.uk d3fda59bcc bitkeeper revision 1.1159.212.117 (4208081dSxJads7MU6-VcXvC6TNMjQ)
- Use a more appropriate path for disk images
- Add a 1 GB disk image as an option

From: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian@xensource.com
2005-02-08 00:30:21 +00:00
iap10@labyrinth.cl.cam.ac.uk 7a966c632d bitkeeper revision 1.1159.212.116 (4208079bssB3TTrruGComoEvhNrq9Q)
Fix some of the time virtualization issues.

- Compute the elapsed time correctly in the cpu loop
- Try to inject interrupts in the vmexit handler

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 00:28:11 +00:00
kaf24@scramble.cl.cam.ac.uk 8f049f2ce1 bitkeeper revision 1.1159.212.115 (4207c574hv18R_VTm-3a9w_AZzNBWw)
Force hypercall continuation arguments to size of longs.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-07 19:45:56 +00:00
kaf24@scramble.cl.cam.ac.uk f399f184eb bitkeeper revision 1.1159.212.114 (4207bda3k03bdnnP3uGkOvKhmXjbkg)
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-07 19:12:35 +00:00