Commit Graph
54 Commits
Author SHA1 Message Date
vh249@arcadians.cl.cam.ac.uk 3abb5c2914 remove pointless NULL checks before free()
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-12 10:48:42 +00:00
kaf24@firebug.cl.cam.ac.uk 12b1a321bd Here is our latest patch to enable the Xen tools to
build and work with IA64 Xen.
Signed-off-by: Matt Chapman <matthewc@hp.com>
Acked-by: Dan Magenheimer <dan.magenheimer@hp.com>
2005-07-29 10:34:45 +00:00
cl349@firebug.cl.cam.ac.uk 7aa5afeb6c Always pass around the store machine frame number instead of the linear address.
Also cleanup IOCTL_PRIVCMD_INITDOMAIN_STORE.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-27 17:17:09 +00:00
kaf24@firebug.cl.cam.ac.uk 4b043a942c Initial tools support for 32-bit x86 pae.
Signed-off-by: Gerd Knorr <kraxel@suse.de>
2005-07-13 15:04:49 +00:00
smh22@firebug.cl.cam.ac.uk 1f123c33a5 Move xenstore page before page tables so that guest doesn't free it after boot
Signed-off-by: Steven Hand <steven@xensource.com>
2005-07-06 15:36:57 +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 c2533bd68d bitkeeper revision 1.1748.1.2 (42bbd22bGsDJd8zBp_EBCg97pPrPqA)
With the patch attached, we can bring up x86_64 domU to the point where
it tries to mount the root fs (see the log below). We are looking at
problems around blkif_connect at this point.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xin B Li <xin.b.li@intel.com>
2005-06-24 09:28:11 +00:00
kaf24@firebug.cl.cam.ac.uk 18dc46379c bitkeeper revision 1.1735 (42ba857eIL9j0maam3-Dv-gI3hOJUw)
Don't zero the vcpu flags in domain builder.
Signed-off-by: Scott Parish <srparish@us.ibm.com>
2005-06-23 09:48:46 +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
kaf24@firebug.cl.cam.ac.uk 988e686160 bitkeeper revision 1.1691.1.1 (42a6ada344SrT9VotpxjpMFmC9Wsng)
Increase max cmdline to 1024 characters.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-08 08:34:43 +00:00
cl349@firebug.cl.cam.ac.uk 1d2beac171 bitkeeper revision 1.1662.1.11 (42a4a26bkrYJJbT21Mpjyew3rnh7Cw)
xen.h, image.py, XendDomainInfo.py, xc.c, xc_linux_build.c, xc.h:
  Create store page for domains and plumb through to python.
XendDomainInfo.py:
  Cleanup comments.
Signed-off-by: Mike Wray <mike.wray@hp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-06 19:22:19 +00:00
cl349@firebug.cl.cam.ac.uk 4f7a49d8d0 bitkeeper revision 1.1681 (42a4172fYhXBx6d4aXa2ofB5qVB2Ww)
xc_gnttab.c, xc_evtchn.c:
  Cleanup error message printing and error exit code path.
xc_vmx_build.c, xc_private.c, xc_plan9_build.c, xc_linux_build.c:
  Cleanup error message printing.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-06 09:28:15 +00:00
cl349@firebug.cl.cam.ac.uk aac7970f26 bitkeeper revision 1.1665.4.1 (42a40cf0EmwulK0I8hNEb2dVbDEkvQ)
xc_private.h, xc_linux_build.c, Makefile:
  Add support for loading ``bin'' format images, as used by ReactOS.
  Move image probing/parsing/loading code out of domain builder to allow
  multiple image formats without having to duplicate the domain building
  code.
xc_load_elf.c, xc_load_bin.c:
  new file
xc_vmx_build.c:
  Cleanup.
Signed-Off-By: Ge van Geldorp <gvg@reactos.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-06 08:44:32 +00:00
iap10@freefall.cl.cam.ac.uk a1f6364776 bitkeeper revision 1.1665.3.2 (42a0d0beY3Jku2hxgPBX6_mz23Ha3g)
[patch] libxc x86-64
I've redone the patch to add domU launching support to libxc for x86-64.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: ian@xensource.com
2005-06-03 21:50:54 +00:00
kaf24@firebug.cl.cam.ac.uk bfad555857 bitkeeper revision 1.1415 (42887ada_Jmkta2rYHnpJBE2EVpy4w)
Remove generic 'fast trap' from the Xen public interfaces. Internally
within Xen, we automatically set up direct trap for int 0x80, which is
the only 'fast trap' vector that we ever supported anyway.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-16 10:50:02 +00:00
kaf24@firebug.cl.cam.ac.uk 7ef0d92af9 bitkeeper revision 1.1389.1.49 (4283701cNLgzy29rE9Sw2-Jbp4DdZA)
Remove 'exec_domain' from Xen public interfaces. Replace with 'vcpu'.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-12 15:02:52 +00:00
cl349@firebug.cl.cam.ac.uk ea15b5bc90 bitkeeper revision 1.1389.15.15 (428242f7nXN4g9eyz6qI4P8iLGAGTg)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
2005-05-11 17:37:59 +00:00
kaf24@firebug.cl.cam.ac.uk b1b326b91a bitkeeper revision 1.1389.17.3 (42823d4825o1wYghBqsaekhllO6ocQ)
Domain builders need only set bit 9 of EFLAGS (Interrupt Enable).
Setting this bit is enforced by Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-11 17:13:44 +00:00
cl349@firebug.cl.cam.ac.uk[cl349] 6d6ca3b27e bitkeeper revision 1.1389.15.13 (42821f23dLMLc5Ql8Y-rUwoatYBI6g)
Split out context fetching into separate DOM0 op
make GETDOMAININFO a little more sensible with respect to MP
make coredump dump all cpu contexts
Signed-off-by: Kip Macy <kmacy@netapp.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 15:05:07 +00:00
kaf24@firebug.cl.cam.ac.uk 3ba18b6857 bitkeeper revision 1.1389.1.4 (427125bdwah0mehgnafVLP-gRLDM_w)
Avoid field duplication between vcpu_guest_context and arch_exec_domain
structures. The latter now includes the former as a sub-field.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-28 18:04:45 +00:00
kaf24@firebug.cl.cam.ac.uk 162dad1cfb bitkeeper revision 1.1389.1.2 (4270ed5dZvr_HdIQR0eBM2m4Kj81_A)
Renames:
 execution_context/xen_regs -> cpu_user_regs
 full_execution_context     -> vcpu_guest_context
[defined both 'struct xxx' and 'xxx_t' forms]
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-28 14:04:13 +00:00
mafetter@fleming.research b10a1d453c bitkeeper revision 1.1291.1.1 (425bebf9aCUxgH4Es3NJxOCwIS_yVA)
Remove debug hooks that shouldn't be enabled by default.
2005-04-12 15:40:41 +00:00
mafetter@fleming.research 700d1f8579 bitkeeper revision 1.1272.1.1 (425b95a8cRhux_vtKXZDHhnHcViWRg)
Patch to run a domU in shadow test mode.
2005-04-12 09:32:24 +00:00
kaf24@viper.(none) 556c27d483 bitkeeper revision 1.1236.1.206 (424fd1e3OF1dIgDtN9JonRnCv2YHrQ)
Clean up symtab loading in elf loader.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-03 11:22:11 +00:00
kaf24@firebug.cl.cam.ac.uk 99d21671d5 bitkeeper revision 1.1236.1.164 (424aed36IaX4v3-NGAT_MnCdUsD1yQ)
Split mmu_update() hypercall into mmu_update() and mmuext_op().
All MMUEXT_* ops are now done via the latter hypercall. This allows
more arguments to be passed in a nicer way to mmuext operations.
Linux 2.4, 2.6 and control tools all use the new interface. The BSDs
will need some work, but shouldn't be too hard (and they can be moved
to writable pagetables at the same time :-) ).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-03-30 18:17:26 +00:00
kaf24@firebug.cl.cam.ac.uk c95e88a596 bitkeeper revision 1.1236.1.160 (424a861f1fQwwCOgZWaGK3g0CTOOkw)
Tidy up vm_assist handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-03-30 10:57:35 +00:00
kmacy@shemp.lab.netapp.com cb9bd69ccf bitkeeper revision 1.1236.27.1 (42337175wSkxS0D7A1TSBWgZsfOczg)
Add user-level debug support
Signed-off-by: Kip Macy
2005-03-12 22:47:17 +00:00
riel@redhat.com[kaf24] aa4b616c67 bitkeeper revision 1.1236.1.62 (422996dcaXWGIhR3ZzSlNz3XpvLF0A)
[PATCH] [PATCH] gcc4isms part 2

This completes the gcc4ism changes to the Xen tree.  All of
the changes in this patch are in the tools/ subdirectory and
are pretty simple.  Some of the changes are for overly strict
gcc4 warnings, but I guess it's still good to verify that the
variable really wasn't unused, or that the sign change is
really harmless.

I guess I really do like -Werror now...

Signed-off-by: Rik van Riel <riel@redhat.com>

 libxc/xc_linux_build.c      |    2 +-
 libxc/xc_plan9_build.c      |   24 ++++++++++++------------
 libxc/xc_vmx_build.c        |    2 +-
 python/xen/lowlevel/xu/xu.c |    2 +-
 xcs/xcs.c                   |    2 +-
 xfrd/lzi_stream.c           |    2 +-
 xfrd/marshal.c              |    4 ++--
 xfrd/xdr.c                  |    2 +-
 xfrd/xfrd.c                 |   12 ++++++------
 9 files changed, 26 insertions(+), 26 deletions(-)
2005-03-05 11:24:12 +00:00
kaf24@firebug.cl.cam.ac.uk 14ba88bd20 bitkeeper revision 1.1236.1.49 (4226ddd3E_h9Dlj5W6XverRkiMcqMw)
x86 ( 32bit) is the only architecture that uses Fast trap vector offset
( fast_trap_idx ). This makes sure that x86 is the only architecture to
use this variable.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
2005-03-03 09:50:11 +00:00
cl349@firebug.cl.cam.ac.uk bc172128dc bitkeeper revision 1.1236.1.37 (42220839uiUo4mhX0fedaXFvOocS4Q)
Update error message when loading a "not Xen v3.0" image.
Signed-off-by: chris@xensource.com
2005-02-27 17:49:45 +00:00
kaf24@scramble.cl.cam.ac.uk 5deb88b1a9 bitkeeper revision 1.1236.1.36 (4221cfd30UrMyu3TpXKGjVNXNVS1Bw)
Update 'xen version' in guest-OS images to 3.0.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-02-27 13:49:07 +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 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
cl349@arcadians.cl.cam.ac.uk 6df77776ad bitkeeper revision 1.1159.217.20 (41ebdda5ZO9YBU_VHuSh0IwgcQe0Ng)
Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into arcadians.cl.cam.ac.uk:/local/scratch-2/cl349/xen-unstable.bk-merge
2005-01-17 15:45:41 +00:00
cl349@arcadians.cl.cam.ac.uk c4fea86999 bitkeeper revision 1.1159.222.1 (41ebdd9btvi-aV_bkwfCgKSenC9XbQ)
Add an optional parameter (vcpus) to the xc_linux_build function replacing
the getenv() previously used and removing the requirement of using maxcpus
kernel parameter to limit the number of virtual cpus a guest uses.  The value
can now be controlled in the domain configuration files.

The default value of 1 is set in XenDomainInfo.py but is overridden by
parsing the config value.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-01-17 15:45:31 +00:00
mafetter@fleming.research 55240dbbbd bitkeeper revision 1.1159.220.3 (41e670c37jmaTxUns3KlvsbVRCg-UA)
The getdomaininfo hypercall now listens to the exec_domain parameter
that was already passed to it, and performs some basic sanity checking.

Added exec_domain (aka vcpu) parameters to xc_domain_getfullinfo()
and xc_domain_get_cpu_usage().
2005-01-13 12:59:47 +00:00
mafetter@fleming.research 79c26560e2 bitkeeper revision 1.1159.220.2 (41e6700bFJzLjEYlNh48j_cSTbRy9A)
Code duplication cleanup: remove a number of duplicate identical
static functions in xc_*_{build,restore}.c, replaced with single
(non-static) copy in xc_private.c
2005-01-13 12:56:43 +00:00
cl349@arcadians.cl.cam.ac.uk 331629ede9 bitkeeper revision 1.1159.1.481 (41c07f85G2hWDdcToBM9klxqtewYlQ)
Bound number of vcpus by XEN_VCPUS environment variable in xend environment.
2004-12-15 18:16:37 +00:00
cl349@arcadians.cl.cam.ac.uk 34090b6d14 bitkeeper revision 1.1159.1.450 (41a515dahwURMq8RlgJaYDcQTbLF9A)
xc_linux_build.c:
  Boot 32 vcpus.
2004-11-24 23:14:34 +00:00
cl349@arcadians.cl.cam.ac.uk 16998b8d9c bitkeeper revision 1.1159.1.435 (419cdeb3cXJd9VFQG3qEgk4aMdlboA)
Increase number of cpus limits.
2004-11-18 17:41:07 +00:00
cl349@freefall.cl.cam.ac.uk c696a6dada bitkeeper revision 1.1159.1.393 (4190a145cbZFKzGdkH5xPlOlxNNPnw)
Split struct exec_domain out of struct domain.
2004-11-09 10:51:49 +00:00
kaf24@freefall.cl.cam.ac.uk 5277446646 bitkeeper revision 1.1159.1.288 (417fa37aiUr7WWjaJDqszVX8RYOFGA)
Tiny bug fixes and cleanups.
2004-10-27 13:32:42 +00:00
kaf24@freefall.cl.cam.ac.uk 4e7da2001d bitkeeper revision 1.1159.98.1 (415e7911bLQPew3o_RI5Cm8viw6VCQ)
Remove Xen-specific ioctl from /dev/mem device. Update domain-building
tools to use the correct device file for mapping foreign memory.
2004-10-02 09:46:57 +00:00
cl349@freefall.cl.cam.ac.uk f11bc5a8fc bitkeeper revision 1.1159.1.131 (413ddc610qK3tZi2_2-e23mt5avoNA)
Load (Net)BSD symbol table from ELF image if requested.
2004-09-07 16:05:53 +00:00
cl349@freefall.cl.cam.ac.uk 2a23966f2b bitkeeper revision 1.1159.1.130 (413dab6fQ1jHzBNKBK5rX_nzCQLANA)
Make writable pagetables a domain creation option.
2004-09-07 12:37:03 +00:00
cl349@freefall.cl.cam.ac.uk 509fb41174 bitkeeper revision 1.1159.1.122 (41384ddcEDLEgoHoCYQuvXnUiQgwcw)
Allow loading other images besides Linux images.
2004-09-03 10:56:28 +00:00
mwilli2@equilibrium.research 1d9f9b80cd bitkeeper revision 1.1159.64.1 (4130aba0phC6BxiRx2cnmE5EUnUgTQ)
Update version numbers.  Need some update of the actual instructions,
particularly in README.CD.
2004-08-28 15:58:24 +00:00
kaf24@scramble.cl.cam.ac.uk f5cb371891 bitkeeper revision 1.1159.32.2 (4120c2f7sV0HlymoiDxvLZkiP1uL_Q)
Simplify start_info_t definition.
2004-08-16 14:21:43 +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