Commit Graph
85 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com f6d80a7f57 Reverse accidental commits for changesets 8001 and 7996-7999.
The Mercurial Queues extensions suddenly looks a lot less useful than it first
seemed.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-23 19:37:33 +00:00
emellor@leeni.uk.xensource.com 8856d17150 imported patch my-config 2005-11-23 19:19:23 +00:00
emellor@leeni.uk.xensource.com a22292f2bb Make it possible to run valgrind on code linked with the libxc libraries.
Valgrind cannot see when a hypercall has initialised entries in a data
structure, so appropriate memsets have been placed before using dom0_op_t,
privcmd_hypercall_t, and a couple of miscellaneous blocks passed into this
layer.  This initialises the block so that valgrind considers it to be valid,
but the data therein will be immediately overwritten by the hypercall, all
being well.

These changes are semantically neutral if -DVALGRIND is not set.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-22 16:31:16 +01:00
kaf24@firebug.cl.cam.ac.uk 41317fc7d5 Remove unnecessary ifdef in defn of xprintk. Install
xenguest.h.
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
2005-11-11 10:39:20 +01:00
unknown@aosda.research.intel-research.net 2bedd29af9 Minor Makefile cleanup in tools/libxc/Makefile 2005-11-07 18:35:55 +01:00
kaf24@firebug.cl.cam.ac.uk f6556b0d17 This is a set of changes which allow the tracebuffer functionality to
be enabled and disabled dynamically while the system is running. The
existing DOM0_TBUFCONTROL hypercall is used, and three new operations
have been added: enable, disable, and set_size. This is to address
concerns that use of the trace buffers impacts system performance.

The initial value of opt_tbuf_size is set to zero, so that trace
buffers remain disabled by default. They can be enabled as they used
to be, by adding tbuf_size= to the xen command line at boot time. They
can also be turned on and off any time when the system is running. The
size of the trace buffer allocation can also be changed dynamically
while the system is running. The trace buffers may be completely
deallocated by setting the size to zero. No change in buffer size can
be done while tracing is enabled;

Other Changes made:
 - Update the constants in tools/xentrace/formats to match those in 
public/trace.h
 - libxc functions for enable/disable, get/set size
Still left to do:
 - remove all ifdef's for trace buffers and the 'trace' build option
 - xm command to do enable/disable trace buffers and get/set size
 
Signed-off-by: Rob Gardner  <rob.gardner@hp.com>
2005-10-30 22:31:45 +01:00
kaf24@firebug.cl.cam.ac.uk b54b5b2b14 Fix xc_ptrace (live debug, not coredump debug) for 32-bit pae.
Clean up interfaces and add simple documentation for using
the domU debug interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-19 15:21:09 +00:00
kaf24@firebug.cl.cam.ac.uk 47ff2422db Fix the libxc Makefile. 2005-09-15 13:17:24 +00:00
cl349@firebug.cl.cam.ac.uk 99c154360f Better build fix.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-15 09:13:21 +00:00
cl349@firebug.cl.cam.ac.uk 26f7bcf1d3 Fix build!
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-15 08:56:13 +00:00
djm@kirby.fc.hp.com 13bad8113d Catchup with xen-unstable, add ia64 specifics to tools, and some VTI merge
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
2005-09-13 13:42:33 -06:00
cl349@firebug.cl.cam.ac.uk 126d23f8d8 Fix dependencies.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-07 01:03:02 +00:00
kaf24@firebug.cl.cam.ac.uk ef591e9331 Fix install of xenctrl.h. 2005-08-25 13:26:37 +00:00
cl349@firebug.cl.cam.ac.uk acc63faffa Break the building/save/restore code out into a separate library libxenguest.
Also update the tools accordingly.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 00:51:20 +00:00
cl349@firebug.cl.cam.ac.uk 60eb663513 Rename libxc => libxenctrl and xc.h => xen/xenctrl.h
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : tools/libxc/xc.h => tools/libxc/xenctrl.h
2005-08-24 23:07:29 +00:00
vh249@arcadians.cl.cam.ac.uk 30ed144f39 forget to substitute CC back to gcc
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-12 13:33:57 +00:00
vh249@arcadians.cl.cam.ac.uk e08e53f151 make needlessly global functions static and use NULL instead of 0 for pointer
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-12 13:05:50 +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
kaf24@firebug.cl.cam.ac.uk 0fca1afde7 Tools build fixes. 2005-07-11 16:04:22 +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
cl349@firebug.cl.cam.ac.uk b68bddb480 bitkeeper revision 1.1713.3.2 (42b296adTFf-i3SL6NuYF5MX4ai91Q)
Makefile:
  Build libxenstore-pic.a.
setup.py:
  Link with libxenstore-pic.a.
Makefile:
  Build libxc-pic.a.
  Build xenstore once is enough.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-17 09:23:57 +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
kaf24@firebug.cl.cam.ac.uk 7254a301ec bitkeeper revision 1.1665.1.5 (42a1a779yqLZDCutMj_vFNQlo3q3zw)
Rationalise debugger stuff in the tree.

Within Xen itself, remove PDB references and fold into domu_debug.
When domu_debug hits a breakpoint, it pauses all vcpus of the domain
and raises VIRQ_DEBUGGER (not VIRQ_PDB). The debugger in domain0 can
either poll pause status or bind to VIRQ_DEBUGGER. Before debugging
a breakpointed domain the debugger should issue PAUSEDOMAIN itself, or
it is not guaranteed to see paused state of the domain!

Outside Xen there's a new dir tools/debugger, containing gdb, pdb and
a new library libxendebug (used by pdb). I also think the ptrace
functions in libxc also ought to be moved out: either to libxendebug
or to a new library libxenptrace.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-04 13:07:05 +00:00
ach61@arcadians.cl.cam.ac.uk 3e93d04b1c bitkeeper revision 1.1665.2.1 (42a0c8fc5ayKCKfMu8Oo5dUccP4STA)
PDB 0.3
2005-06-03 21:17:48 +00:00
cl349@firebug.cl.cam.ac.uk cc0943ffa0 bitkeeper revision 1.1542 (4293a8c7-PlifEtxsu3aPbHV3Xl_yA)
Makefile:
  Revert previous build "optimization" -- we need check-for-zlib and
  more importantly mk-symlinks done before we try to build, otherwise a
  highly parallel make (-j 20) fails miserably.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-24 22:20:55 +00:00
arun.sharma@intel.com[kaf24] d70f9c0a6c bitkeeper revision 1.1539 (42939e68t9DDgqpBZmkD0dpuIEiwBQ)
[PATCH] xen-libxc-static-build.patch

Fix build of the static library.

As it was depending on an undefined objects variable (OBJS), its
dependency list was null and thus it ended up empty.

Also optimize the depedency checking so we don't need a submake. Not
too great an optimization, but it makes it short :)

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-05-24 21:36:40 +00:00
cl349@firebug.cl.cam.ac.uk 519108b9f7 bitkeeper revision 1.1534.1.1 (429399e0oJudIjoFsgWFxNKnCM7qTg)
Nothing but vnet uses libxutil -- move it there.
Makefile, xc.c, setup.py, configure, configure.in, Makefile.in:
  This doesn't use libxutil.
Makefile, Makefile.vnet, Rules.mk:
  Move libxutil into vnet since it's only used there.
Many files:
  mvdir
2005-05-24 21:17:20 +00:00
cl349@firebug.cl.cam.ac.uk 46fc2b33ed bitkeeper revision 1.1534 (42938f7eteOfeZAlPZyFJuucXgIZbA)
Makefile:
  xc_io.[ch] is no longer needed.
xc_vmx_build.c:
  offsetof() needs #include <stddef.h>, which was getting pulled in
  implicitly from xc_io.h.
.del-xc_io.h~f59d36f1439a3f8d:
  Delete: tools/libxc/xc_io.h
.del-xc_io.c~2d9e23eb479fe52:
  Delete: tools/libxc/xc_io.c
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-24 20:33:02 +00:00
kaf24@firebug.cl.cam.ac.uk bb5ae6b5cc bitkeeper revision 1.1389.5.37 (427f9fd5lvofpMsmBQ2h16fsuXQH6Q)
Manual merge.
2005-05-09 17:37:25 +00:00
kaf24@firebug.cl.cam.ac.uk[kaf24] b61e6cb4e9 bitkeeper revision 1.1389.1.16 (4273458eyxEjHSppjkQyDsXHHxOY9Q)
coredump.patch
Extend libxc and gdb server to coredump a domain.
Signed-off-by: Kip Macy <kmacy@fsmware.com>
2005-04-30 08:45:02 +00:00
iap10@freefall.cl.cam.ac.uk e631a47cf6 bitkeeper revision 1.1346.1.1 (42670505dNhgnJm5dQD81pCalXMZgw)
manual merge
2005-04-21 01:42:29 +00:00
katzj@redhat.com[iap10] 2cc5addc8f bitkeeper revision 1.1305 (42603ffeunTyoZX2egpGvfR_Km2tBw)
[PATCH] Install libraries into libdir

Attached makes it so that libxc and libxutil get installed
into /usr/lib64 instead of /usr/lib on x86_64.

Signed-off-by: Jeremy Katz <katzj@redhat.com>

===== Config.mk 1.3 vs edited =====
2005-04-15 22:28:14 +00:00
sd386@font.cl.cam.ac.uk 2208888f15 bitkeeper revision 1.1159.170.110 (42527636gInunc40rkIVZVCuDC-_OQ)
Merge
2005-04-05 11:27:50 +00:00
kaf24@firebug.cl.cam.ac.uk 976f6fc92c bitkeeper revision 1.1236.1.209 (42517173PR-QieAWB-SNd4qnSxKmMQ)
Remove broken atropos and round-robin schedulers. Clean up the
scheduler plugin interface a little.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-04 16:55:15 +00:00
kaf24@firebug.cl.cam.ac.uk ab78c96aeb bitkeeper revision 1.1236.1.105 (423fdeaeuXmbQUj74cWh1nItpSKUjw)
Improved cross-compilation support.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-03-22 09:00:30 +00:00
cl349@firebug.cl.cam.ac.uk 0af4c9a0a8 bitkeeper revision 1.1236.25.13 (423386505SwGplSmaVcNHcvNqtQ2QA)
Automerge
2005-03-13 00:16:16 +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
cl349@firebug.cl.cam.ac.uk b1520cbb5a bitkeeper revision 1.1236.25.10 (42335daeuY-j8gV61kHapguVRal9ig)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk-2.6.11
2005-03-12 21:22:54 +00:00
doogie@brainfood.com[kaf24] be7913c187 bitkeeper revision 1.1159.270.3 (42330ae8efsd9SdlhNX6EpksrtV6oQ)
[PATCH] add-build.patch

 Add build targets to all makefiles.  Debian does builds as non-root, so
 it's better to do as much as possible before requiring root privs.
Signed-off-by: Adam Heath <doogie@brainfood.com>
2005-03-12 15:29:44 +00:00
cwc22@centipede.cl.cam.ac.uk 3f9c9eae7a bitkeeper revision 1.1236.12.11 (422de58bI6Rru29oYT0ipOgZZhpqZw)
resolve of grant tables merge
2005-03-08 17:48:59 +00:00
cwc22@centipede.cl.cam.ac.uk cbb632d455 bitkeeper revision 1.1236.9.1 (4227c12cJQxFhBUYk0ojkmnooUw0jQ)
Grant tables work on data structures.
2005-03-04 02:00:12 +00:00
cl349@firebug.cl.cam.ac.uk 30d3c9ee8f bitkeeper revision 1.1236.1.48 (42266bcdE0YKInNbHNUP19tmx6VSdA)
Fix 32-bit build on 64-bit machines.
Signed-off-by: chris@xensource.com
2005-03-03 01:43:41 +00:00
kaf24@scramble.cl.cam.ac.uk 344d5fc348 bitkeeper revision 1.1236.2.1 (421d97a5SR1YbOvnVv1vbOXHzoiZ4Q)
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-24 09:00:21 +00:00
kaf24@scramble.cl.cam.ac.uk 71ebe65bbc bitkeeper revision 1.1159.258.9 (421d978cixdcn2ycn94dJci5cqGzjg)
Build cleanups. Build dynamic libs as -fPIC always.
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
2005-02-24 08:59:56 +00:00
maf46@burn.cl.cam.ac.uk f312dc4e8a bitkeeper revision 1.1231 (421a19f9K3T6OGgQYOACRx6deejNmQ)
Added "make TAGS" back into libxc/Makefile again.

Signed-off-by: michael.fetterman@cl.cam.ac.uk
2005-02-21 17:27:21 +00:00
kaf24@scramble.cl.cam.ac.uk 228e9fba60 bitkeeper revision 1.1159.212.94 (4204a0deFxk8r7Vhks3j_qvRlbZMJQ)
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-05 10:33:02 +00:00
kaf24@scramble.cl.cam.ac.uk fc3efe0ada bitkeeper revision 1.1159.223.67 (4204a089yB7FSdCp0Isa4dMFs_V3qQ)
Building PIC .so libs is now optional. Defaults to enabled for Debian.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-05 10:31:37 +00:00
iap10@freefall.cl.cam.ac.uk d551e3bc5c bitkeeper revision 1.1159.212.92 (4204921aEJqAV7p8MQEa98S3OLscXg)
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-05 09:30:02 +00:00
iap10@labyrinth.cl.cam.ac.uk d8ab68ec41 bitkeeper revision 1.1159.223.66 (42048ef5frMFQFFm-sKDC6PrU8yraQ)
Name: pic-lib.patch
Description: support PIC code generation
 Libraries have 2 methods of being compiled; a .so must contain non-pic
 objects, while the .a can contain standard objects.
Signed-off-by: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-02-05 09:16:37 +00:00