Commit Graph
960 Commits
Author SHA1 Message Date
arun.sharma@intel.com[kaf24] 382ed0e218 bitkeeper revision 1.1780 (42c3a8c4tqEOpGy663gWO35k5QwZTw)
[PATCH] Infrastructure for interrupt handling.

Infrastructure for interrupt handling.

- support interruptibility
- handle interrupt window exiting control appropriately
- Add ioapic device models imported from Bochs under LGPL
- generalize the interrupt architecture to support both PIC/APIC

This patch is necessary to fix several bugs on 32 bit VMX and prepares the
ground for adding a local APIC device model in the hypervisor.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-30 08:09:40 +00:00
arun.sharma@intel.com[kaf24] a920220cef bitkeeper revision 1.1779 (42c3a8b3kGpPBNwXb3dn_b8FcmVPgQ)
[PATCH] ACPI support for guest firmware.

ACPI support for guest firmware.

Signed-off-by: Ke Yu <ke.yu@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-30 08:09:23 +00:00
arun.sharma@intel.com[kaf24] 11d2304e18 bitkeeper revision 1.1776 (42c3a877bezcV9uHoSXuU-GWoyVOKw)
[PATCH] Enable qcow in the device models.

Enable qcow in the device models.

This saves disk space when dealing with large guest images.

Signed-off-by: Nitin Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>

diff -r 5d58883fc7b8 -r 499ac8e8df00 tools/ioemu/block.c
2005-06-30 08:08:23 +00:00
arun.sharma@intel.com[kaf24] 03d545ffcd bitkeeper revision 1.1773 (42c3a841nLib9kdSmthr05jouqiNeg)
[PATCH] Device model cleanup.

Device model cleanup.

- Single config file for xen and device models
  (Shell script doesn't source xmdefconfig anymore)
- No more device-model shell script by default. You can
  have one if needed (qemu-dm.debug)
- All logic in the script device-model is moved to python
- $DISPLAY is passed from xm to xend
- Don't fork vncviewer on dryruns
- Add support for killing device models on domain destroy
- info vmxiopage command added to the monitor
- Refactor shared io page into global and per vcpu state
- Remove the hard coding of IOPACKET_PORT
- move the virtual_platform_def up to domain struct from vcpu
- xm create -n:

(vm
    (name ExampleVMXDomain)
    (memory 128)
    (ssidref -1)
    (image
        (vmx
            (kernel /usr/lib/xen/boot/vmxloader)
            (root '/dev/hda1 ro')
            (vcpus 1)
        )
    )
    (memmap )
    (device_model /tmp/foo)
    (hda /var/images/min-el3-i386.img)
    (hdb )
    (hdc )
    (hdd )
    (cdrom )
    (boot c)
    (fda )
    (fdb )
    (localtime 0)
    (serial )
    (macaddr )
    (stdvga 0)
    (isa 0)
    (nographic 0)
    (vnc 0)
    (sdl 0)
    (display localhost:10.0)
)

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-06-30 08:07:29 +00:00
cl349@firebug.cl.cam.ac.uk a575a4a3a8 bitkeeper revision 1.1766 (42c17071SPDLo7qPlXAiQzrKjMu6Mw)
Add xenbus driver.
XendDomainInfo.py:
  Connect/Disconnect domains to/from store.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> (authored)
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-28 15:44:49 +00:00
ach61@arcadians.cl.cam.ac.uk 6d2562c9f0 bitkeeper revision 1.1761 (42c0704c_K5N6pcA--cz5L-FX_z0zw)
Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into arcadians.cl.cam.ac.uk:/auto/anfs/nos1/ach61/bk
2005-06-27 21:31:56 +00:00
ach61@arcadians.cl.cam.ac.uk 2136a8f965 bitkeeper revision 1.1726.3.1 (42c07007i9Bkz3ggP_PXIksWaGD1Eg)
add framework for debugging processes
2005-06-27 21:30:47 +00:00
kaf24@firebug.cl.cam.ac.uk 6fd6101576 bitkeeper revision 1.1755 (42bd1fcfzi0ZazGyTao_Ff-m4vjOqQ)
.del-plan9a.out.h~cdc6aa24ef3ba635:
  Delete: tools/libxc/plan9a.out.h
2005-06-25 09:11:43 +00:00
kaf24@firebug.cl.cam.ac.uk 06420e5d04 bitkeeper revision 1.1752 (42bbe5ba5hLPfcw1f77_F22fq6v6Yw)
The set of patches below add support for loading plan9's a.out
format using the linux builder.  This is considerably simpler
than having a seperate builder, shares more code and should
be easier to maintain.  Hopefully the original plan9 builder
can go away in the future.

I've been able to test this manually with vm-tools but am
still having some problems (unrelated I think) with xm.

Signed-off-by: Tim Newsham <newsham@lava.net>
2005-06-24 10:51:38 +00:00
kaf24@firebug.cl.cam.ac.uk ed30037e48 bitkeeper revision 1.1751 (42bbe480z9Fp_L5Tc500W8c8CL3g9A)
Rationalise x86 CRn guest state into a ctrlreg array in the per-vcpu
context structure. Most noticeably this means the pt_base field has
gone away -- replaced by ctrlreg[3] (CR3). VCPU_guest_stts is also
gone -- it was never arch-independent anyway.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-24 10:46:24 +00:00
kaf24@firebug.cl.cam.ac.uk c3f032a166 bitkeeper revision 1.1742 (42ba8b7fiNx5Cu0J91l9HCIo_TwvXQ)
Merge firebug.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/kaf24/xeno-unstable-ia64.bk
2005-06-23 10:14:23 +00:00
kaf24@firebug.cl.cam.ac.uk d67f8a3d01 bitkeeper revision 1.1732 (42ba7fc5JvRaJiT14LMkB8SUdohfeA)
The attached patch now allows x86_64 xenlinux to run 32-bit x86 binaries
as the native x86_64 Linux does. I checked LTP using 32-bit binaries,
and got the same results on the native x86_64 Linux. At this point, 'int
0x80' is used for system calls, as it's unlikely that the fast systems
(sysenter or syscall) are significantly faster under the current
trampoline mechanism. However, it should be easy to replace
vsyscall-int80 with the fast system calls if one wants to do so (look at
USE_INT80 in the patch).

I found bugs with LDT handling in x86_64 Xen/XenLinux (exposed by 32-bit
LTP testcases fork05 and modify_ldt02), and the bugs have been fixed by
a separate patch in the next email:=20
[PATCH] [x86_64] Fixing LDT handling with x86_64 Xen

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-06-23 09:24:21 +00:00
xen-ia64.adm@bkbits.net 60ca0a2815 bitkeeper revision 1.1726.1.5 (42b9a3d8CVbjmdABZ5J06wW5p1TtXw)
Merge bk://xen.bkbits.net/xeno-unstable.bk
into  bkbits.net:/repos/x/xen-ia64/xeno-unstable-ia64.bk
2005-06-22 17:46:00 +00:00
kaf24@firebug.cl.cam.ac.uk 09ae1e9ce6 bitkeeper revision 1.1726.1.1 (42b973245ua3LQyqFtGRwXDwnRLDPw)
Compile-time ACM null-ops disables build of acm files.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-22 14:18:12 +00:00
djm@kirby.fc.hp.com 1bbe4f8d0e bitkeeper revision 1.1713.2.21 (42b8e40fW5sWcGtTukrQr1eZYIVyZw)
adds necessary put/get_user, copy_from/to_user, etc stuff for VTI 

Signed-off-by Kevin Tian <Kevin.tian@intel.com>
2005-06-22 04:07:43 +00:00
djm@sportsman.spdomain 4d1748d5fd bitkeeper revision 1.1713.4.1 (42b896ce_iXHcZjWxYV17vzV3fQhTA)
Adapt to recent patches in common
2005-06-21 22:38:06 +00:00
smh22@firebug.cl.cam.ac.uk f21629e0cc bitkeeper revision 1.1718.1.9 (42b7443fk-ybxUDza1p_kN1D8hzjRw)
Many files:
  new file
2005-06-20 22:33:35 +00:00
smh22@firebug.cl.cam.ac.uk 198553df06 bitkeeper revision 1.1718.1.8 (42b7436bQ2MohyJ9wW6onfFsyW6VGg)
shype4xen_readme.txt:
  new file
2005-06-20 22:30:03 +00:00
smh22@firebug.cl.cam.ac.uk 80070b4a6c bitkeeper revision 1.1718.1.7 (42b742f8NxTuN2pqCHFAWI78dbEYKw)
Initial MAC (sHype) support from IBM. 
Defaults to NULL policy for now. 

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Steven Hand <steven@xensource.com>
2005-06-20 22:28:08 +00:00
kaf24@firebug.cl.cam.ac.uk 6b76d296bb bitkeeper revision 1.1718.1.6 (42b5a5f3otSuOxDZ6KTFKrxR1U1m4Q)
Extend the xen_version hypercall to return extraversion and compile 
info.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-19 17:05:55 +00:00
kaf24@firebug.cl.cam.ac.uk 10a20d0601 bitkeeper revision 1.1718.1.4 (42b59a8dca4vxae_1vlE_W95_lDsNg)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
2005-06-19 16:17:17 +00:00
djm@kirby.fc.hp.com 65a9bd6d17 bitkeeper revision 1.1713.2.8 (42b33f1feaANIdB6dfv8W846UquAHA)
Add preliminary grant table support (in arch/ia64 and turned
off for CONFIG_VTI for now)
2005-06-17 21:22:39 +00:00
djm@kirby.fc.hp.com c05a8d0f55 bitkeeper revision 1.1713.2.2 (42b2ebb7w1AbEWudFq4LvJe0d7ByxQ)
two new files for VTI patch

Signed-off-by	Anthony Xu 	<Anthony.xu@intel.com>
Signed-off-by Eddie Dong 	<Eddie.dong@intel.com>
Signed-off-by Kevin Tian 	<Kevin.tian@intel.com>
2005-06-17 15:26:47 +00:00
cl349@firebug.cl.cam.ac.uk 4ddc54b2db bitkeeper revision 1.1713.3.5 (42b2a4e2r6SNlC_nq2hAkXEQjEFAmA)
Many files:
  - watch now takes a token, returned when reading watch
  - More tests
  - Fix domain shared page communication (flush output)
  - Add "home" path for domains
  - More permissions checks in various functions
  - Simplify watch acknowledgement code and fix occasional bug
xs_watch_stress.c, 12readonly.sh, 11domain-watch.sh, 10domain-homedir.sh:
  new file
xs_stress.c, xs_lib.h, xs_lib.c:
  Cleanup whitespace.
ignore:
  Add tools/xenstore/xs_watch_stress
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 10:24:34 +00:00
cl349@firebug.cl.cam.ac.uk 6e1ff5f262 bitkeeper revision 1.1713.3.3 (42b2995e93GNUwPpV6yP21Fl3iIRRQ)
Makefile:
  Add xs_dom0_test program to test IOCTL_PRIVCMD_INITDOMAIN_STORE.
xs_dom0_test.c:
  new file
From: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 09:35:26 +00:00
kaf24@firebug.cl.cam.ac.uk 956b7a6021 bitkeeper revision 1.1713.1.14 (42b1f5f9KUyMHO2NrEptwgru2BVT0w)
Merge firebug.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/kaf24/xeno-unstable-ia64.bk
2005-06-16 21:58:17 +00:00
xen-ia64.adm@bkbits.net f20097a1a3 bitkeeper revision 1.1713.2.1 (42b1d4d7vqzNt8h7EyzTEvrzC7m5RA)
Merge bk://xen.bkbits.net/xeno-unstable.bk
into  bkbits.net:/repos/x/xen-ia64/xeno-unstable-ia64.bk
2005-06-16 19:36:55 +00:00
djm@kirby.fc.hp.com dc1a6a5f30 bitkeeper revision 1.1709.1.16 (42b1d2ecGSNeZhThHshE903eA1tK-Q)
Add arch-dep notification hook (per discussion on xen-devel)
needed for ia64 and VTi/x.
Signed-off-by: Matt Chapman <matthewc@hp.com>
2005-06-16 19:28:44 +00:00
djm@kirby.fc.hp.com d72b8bff9d bitkeeper revision 1.1709.1.15 (42b1cf6bRmJSwTLBy8EWehO-Ijc95g)
Move include definitions around
2005-06-16 19:13:47 +00:00
sos22@douglas.cl.cam.ac.uk e7399d6ff4 bitkeeper revision 1.1713.1.13 (42b16610ojQcHPRC6Ao_1CKXClza9A)
Slightly disgusting hack to avoid using lots of lock instructions on a uniprocessor
machine just because we happened to compile with CONFIG_SMP.  Essentially, we
make a big table of all of the instruction sequences which differ in ``easy''
ways between UP and SMP kernels, and then select which one to use at run time.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2005-06-16 11:44:16 +00:00
ach61@arcadians.cl.cam.ac.uk c39f4a5931 bitkeeper revision 1.1713.1.11 (42b03e2dFl47vRNjIHPpu-GWrag_zA)
remove obsolete debugger documentation
2005-06-15 14:41:49 +00:00
ach61@arcadians.cl.cam.ac.uk f987bb1035 bitkeeper revision 1.1713.1.10 (42b03d19TAy64Sdjkm7M7nVoGNwCVw)
readme for pdb 0.3
2005-06-15 14:37:13 +00:00
djm@sportsman.spdomain 51ed107502 bitkeeper revision 1.1709.1.3 (42ae02a99ck6N11hVBch3RRAXKHWgw)
Various fixes for multi-domain prep

Signed-off-by: Matthew Chapman <matthewc@hp.com>
2005-06-13 22:03:21 +00:00
iap10@freefall.cl.cam.ac.uk aebe1ba48e bitkeeper revision 1.1713.1.2 (42ad8793XA-gObRPsPuWlI4gxZ7j5Q)
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-06-13 13:18:11 +00:00
iap10@freefall.cl.cam.ac.uk ad25d356d1 bitkeeper revision 1.1159.258.167 (42ad874eIWwyPd8tmJO5tkGQ2JoYXQ)
Upgrade to linux patch 2.6.11.12
Signed-off-by: ian@xensource.com
2005-06-13 13:17:02 +00:00
xen-ia64.adm@bkbits.net 6a63b7b966 bitkeeper revision 1.1708 (42a9b4dc79oJAGtbQvr8mTDofvBdxQ)
Merge bk://xen.bkbits.net/xeno-unstable.bk
into  bkbits.net:/repos/x/xen-ia64/xeno-unstable-ia64.bk
2005-06-10 15:42:20 +00:00
kaf24@firebug.cl.cam.ac.uk 4d8752e9ee bitkeeper revision 1.1705.1.2 (42a9372fTpt-bOGdIcKsOLb8_xlJ4Q)
Remove tools/ioemu/pc-bios. We have replacements in tools/firmware
now.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-10 06:46:07 +00:00
djm@sportsman.spdomain 03ab2e2693 bitkeeper revision 1.1706 (42a8be4bKG9EZTToo_Pa4wDcO7VpRw)
Merge http://xen-ia64.bkbits.net/xeno-unstable-ia64.bk
into sportsman.spdomain:/home/djm/xeno-unstable-ia64.bk
2005-06-09 22:10:19 +00:00
djm@kirby.fc.hp.com 800a239fd3 bitkeeper revision 1.1668.1.11 (42a8bd5aCFsumaFg9rk2nWmEBa7opA)
Oops, yet another file for Greg's checkin
2005-06-09 22:06:18 +00:00
djm@kirby.fc.hp.com 6f882270c7 bitkeeper revision 1.1668.1.10 (42a8bceaXDRFCmwf1Omenu_lCITiag)
Oops, left new file out of Greg's sn patch
2005-06-09 22:04:26 +00:00
kaf24@firebug.cl.cam.ac.uk 996fe4998a bitkeeper revision 1.1704 (42a885cb3_kkMMOYtYN_PaWP3tupbA)
Merge Scotts's pte_mfn patch with some extra merging between xen/i386
and xen/x86_64. An obvious further step is to fix xen/x86_64's
pci-dma.c and pci-nommu.c to be closer to native x86_64 versions.
Signed-off-by: Scott Parish <srparish@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-09 18:09:15 +00:00
cl349@firebug.cl.cam.ac.uk 06940d306a bitkeeper revision 1.1700 (42a854e79oBFuqa_DSY4Lr9IhenUQw)
Merge xenstore changes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-09 14:40:39 +00:00
akw27@arcadians.cl.cam.ac.uk 1321049c95 bitkeeper revision 1.1698 (42a84631sHlAKgVzdlR-RsCeAqkv_Q)
Clean up blktaplib headers.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: andrew.warfield@cl.cam.ac.uk
2005-06-09 13:37:53 +00:00
akw27@arcadians.cl.cam.ac.uk 7556663ceb bitkeeper revision 1.1695 (42a80eb0iCQq47kS2MSpOLTFyng5Cg)
Parallax fixes/updates:
- all data access now through the async lookup code.
- added synchronous wrappers for tools to use.
- added end-to-end crc32 on all image blocks
- various other fixes/cleanups/test stubs.

Signed-off-by: andrew.warfield@cl.cam.ac.uk
2005-06-09 09:41:04 +00:00
vh249@arcadians.cl.cam.ac.uk 3dbc2b49f3 bitkeeper revision 1.1159.258.164 (42a7277bdZm8DZjc_UHJ0TWuobiRXw)
reenable TS flag after testing for fdiv bug. fix the fpu corruption that some config have

Signed-off: Vincent Hanquez <vincent@xensource.com>
2005-06-08 17:14:35 +00:00
kaf24@firebug.cl.cam.ac.uk 13e63314c4 bitkeeper revision 1.1691.1.5 (42a6b4baIjkVZx9lVWvoA9RqgAGLMQ)
The following allows you to run unmodified guest operating systems
under Xen on VMX (VT) enabled processors. The tree lives under
<ROOT>/tools/dfw. Instead of booting a guest kernel, boot vmxloader and
specify the disk image in qemurc.

        Leendert

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
2005-06-08 09:04:58 +00:00
cl349@firebug.cl.cam.ac.uk 7fef173569 bitkeeper revision 1.1662.1.18 (42a5a348BpHwgoiWQI1wI9LMej7F3w)
setup.py:
  Add xen.xend.xenstore.
xsresource.py, xsobj.py, xsnode.py, __init__.py:
  new file
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-07 13:38:16 +00:00
cl349@firebug.cl.cam.ac.uk 3a834bf165 bitkeeper revision 1.1662.1.17 (42a59f62TbTw4kErDSfuOYh8iAzCuA)
setup.py:
  Add xenstore python bindings.
xs.c:
  new file
params.py:
  XSDAEMON_DEBUG -> XENSTORED_DEBUG
Makefile:
  xenstore is also a library -- build it before python.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-07 13:21:38 +00:00
cl349@firebug.cl.cam.ac.uk 29c9e570b1 bitkeeper revision 1.1662.1.15 (42a5968eiZE_DjdIFPjxvzLw6ACvCQ)
Add xenstore daemon and library.
Makefile:
  Add xenstore subdirectory.
  Remove xs_stress on clean.
Many files:
  new file
ignore:
  Update ignore list for xenstore.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-07 12:43:58 +00:00
kaf24@firebug.cl.cam.ac.uk 8794e31768 bitkeeper revision 1.1689 (42a58901_lkUvZPbAZcV8H9a9NNmtg)
Clean up the domain_page.h interfaces. One common header file
<xen/domain_page.h> and map_domain_mem() -> map_domain_page(), takes
a pfn rather than a paddr.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-07 11:46:09 +00:00