Commit Graph
56 Commits
Author SHA1 Message Date
josht@us.ibm.com 49839b535b Add xenstat framework.
# HG changeset patch
# User josht@us.ibm.com
# Node ID d39cf132a00a91e65c0ad4640c5bd17f722788b7
# Parent  822566f5cfddce3b641b5a1a119dfd592ec69158
Add xenstat framework.
2005-08-12 18:36:54 +00:00
kaf24@firebug.cl.cam.ac.uk 2ba532d767 Rename console binaries to xenconsole and xenconsoled.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-07 09:12:55 +00:00
kaf24@firebug.cl.cam.ac.uk f6d93de51e The attached patch removes all of the console handling code from Xend
and changes xm to simply exec /usr/libexec/xen/xc_console.

I've done a pretty good amount of testing and this seems to clear up all 
of the Xend console issues in bugzilla.

This is a pretty big change to Xend though with a lot of deleted code so 
I'd appreciate if people more familiar with the Xend codebase could look 
through it critically.

In addition to the patch, the following files are no longer used:

tools/python/xen/util/console_client.py
tools/python/xen/xend/XendConsole.py
tools/python/xen/xend/server/SrvConsole.py
tools/python/xen/xend/server/SrvConsoleDir.py
tools/python/xen/xend/server/console.py

Regards,

Anthony Liguori

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-04 09:00:16 +00:00
kaf24@firebug.cl.cam.ac.uk 7dd5c4ef07 A few consoled tweaks. It's not worth building by default
right now as it isn;t actually used.
2005-08-02 14:51:06 +00:00
kaf24@firebug.cl.cam.ac.uk 0e535dd1ce This is the first patch to move the console code out of Xend and into a
separate daemon.  In this patch I've included the daemon and a 
front-end.  I've also have the console code removed from Xend locally 
but I wanted to clarify a few things first before submitting that.

Here's how it works:

1) Daemon sits on control channel (via xcs) waiting for console messages
2) Buffers all console data received
3) Publishes the location of a tty that can be used for reading in 
/console/<domid>/tty
4) Reads a value from the store to determine what the limit of console 
data should be (/console/<domid>/limit) to prevent DoS attacks

Using it is quite simple, just run consoled and use the xc_console 
program to connect to the console.  It uses syslog for logging.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-02 12:18:15 +00:00
smh22@firebug.cl.cam.ac.uk b9ca214b2d Disable build of pygrub for now - does not build with e2fsprogs-1.35
Signed-off-by: Steven Hand <steven@xensource.com>
2005-08-02 11:34:38 +00:00
smh22@firebug.cl.cam.ac.uk bd471dc416 The patches below clean-up sHype-related file names in the tools subtree
and security policy-versioning and data structures in the xen subtree 
(ACM):

 *  the very generic tools directory name "policy"  is changed to 
    "security" and the included "policy_tool" to "secpol_tool"

 * the single constant POLICY_INTERFACE_VERSION is replaced 
   by ACM_INTERFACE_VERSION; the security policy headers are
   versioned independently since the policy can be supplied
   at boot time instead of through the  hypervisor interface

Signed-off-by: Reiner Sailer <sailer@watson.ibm.com>
Signed-off-by: Steven Hand <steven@xensource.com>
2005-08-02 09:37:00 +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
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 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 44eab34cc4 bitkeeper revision 1.1691.1.7 (42a6d8e19C3UPsmlA3u--9L4iY559Q)
Integrate virtual firmware into the tools build system.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-08 11:39:13 +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 2db005c58d bitkeeper revision 1.1561 (42958369EO5iAgCrbpIrx-hK8jzMWQ)
Fix install path for qemu-dm.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-26 08:06:01 +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 50f2601af9 bitkeeper revision 1.1533 (429379beNzrMmx_MJCmvdmLhK3EMfw)
migrate.py, params.py, SrvDaemon.py, xend, Makefile:
  Remove xfrd now that save/restore doesn't use xfrd anymore.
console.py:
  Remove/disable debug output.
.del-check_twisted~f74b05eb88f208a1:
  Delete: tools/check/check_twisted
xend:
  Twisted is no longer used -- remove check whether it's installed or not.
.del-Makefile~474b093f3e64d016:
  Delete: tools/xfrd/Makefile
.del-xfrdClient.py~d1d33f981191dfa:
  Delete: tools/xfrd/xfrdClient.py
.del-xfrd.h~54f8ea6e77cf4f26:
  Delete: tools/xfrd/xfrd.h
.del-xfrd.c~e3be851c3a4297a5:
  Delete: tools/xfrd/xfrd.c
.del-xen_domain.h~4a0c609ff18c63a8:
  Delete: tools/xfrd/xen_domain.h
.del-xen_domain.c~cd85f330a909fbce:
  Delete: tools/xfrd/xen_domain.c
.del-select.h~348b2b069dd5748:
  Delete: tools/xfrd/select.h
.del-select.c~373282d5f920303d:
  Delete: tools/xfrd/select.c
.del-marshal.h~9929a72563171372:
  Delete: tools/xfrd/marshal.h
.del-marshal.c~3108fab658d2220:
  Delete: tools/xfrd/marshal.c
.del-lzi_stream.h~49308e7b16ba42e3:
  Delete: tools/xfrd/lzi_stream.h
.del-lzi_stream.c~e1870394f081f255:
  Delete: tools/xfrd/lzi_stream.c
.del-debug.h~c268d8f144e5e4da:
  Delete: tools/xfrd/debug.h
.del-connection.h~ac7cb6a42316a421:
  Delete: tools/xfrd/connection.h
.del-connection.c~c025e96fc5649424:
  Delete: tools/xfrd/connection.c
.del-Make.xfrd~5a18d2f63aad1d40:
  Delete: tools/xfrd/Make.xfrd
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-24 19:00:14 +00:00
cl349@firebug.cl.cam.ac.uk 35db9d71b6 bitkeeper revision 1.1513.1.1 (42925a6aSZSwfyaVsNzV4psPmpZwZg)
Execute xc_linux_restore in a seperate process so that it can't
crash xend.  Also handle errors passed from xc_linux_restore and
log info messages from xc_linux_restore.
XendDomain.py:
  Popen xc_restore instead of calling xc_linux_restore directly.
xc.c:
  Add pyxc_handle exporting the file descriptor to the control interface.
  Remove xc_linux_restore -- replaced by popen of xc_restore directly
  from python.
xc_linux_restore.c:
  Enable debug output.
xpopen.py:
  Add xpopen functionality:
  Optionally exclude a list of file descriptors from being closed, allowing
  access to those file descriptors from the command.
  Remove unused parts.
xpopen.py, Makefile, xc_restore.c:
  new file
Makefile:
  Add xcutils subdir.
ignore:
  Add tools/xcutils/xc_restore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-23 22:34:18 +00:00
kaf24@firebug.cl.cam.ac.uk 99f38fa81f bitkeeper revision 1.1500 (428f08f1cclAJMtKpbiDrXknPvaMCA)
Small ioemu build fixes. Fix 'make clean' so we can switch between
32-bit and 64-bit build easily.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-21 10:09:53 +00:00
kaf24@firebug.cl.cam.ac.uk 7abe880614 bitkeeper revision 1.1490 (428e17e3-aTEgwH1KsJrUT4WjK5zWQ)
Fix ioemu build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-20 17:01:23 +00:00
cl349@firebug.cl.cam.ac.uk 813d13e1d1 bitkeeper revision 1.1483.1.1 (428dfcf4ShUaO_5EW8otOGE_3NKxvQ)
Makefile:
  Move ioemu targets to the end of the Makefile so that the default target
  is all again.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-20 15:06:28 +00:00
kaf24@firebug.cl.cam.ac.uk 0df278a2d6 bitkeeper revision 1.1476 (428d0d8esmCTqdrDnpEQ1XlfV6CWGg)
New qemu-based ioemu for fully virtualised guests.
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-19 22:05:02 +00:00
arun.sharma@intel.com[kaf24] 30451f914d bitkeeper revision 1.1472.1.1 (428d02affnTKrsebSylXhws68fWW9w)
[PATCH] qemu.patch

This patch is needed to get the tree to build for QEMU based I/O emulation.

- Run configure before doing make in tools/ioemu
- We now have a single config file for VMX domains (earlier we had a
  bochsrc and xmexample.vmx)

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-05-19 21:18:39 +00:00
mjw@wray-m-3.hpl.hp.com c2982308e2 bitkeeper revision 1.1391 (4270e62dQ3ab85LBG8yTiEDbCEYRqA)
Resolve merge failure.
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-28 13:33:33 +00:00
mjw@wray-m-3.hpl.hp.com 51a9f171a5 bitkeeper revision 1.1327.2.13 (4270d6c35WpxFmhdkREjmSvk82s-Bg)
Merge Jeremy's pygrub bootloader patch.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-28 12:27:47 +00:00
kaf24@firebug.cl.cam.ac.uk 17544ec455 bitkeeper revision 1.1330 (4266282ak6eGcWHbvw6KeINzcPr1XA)
Skip ioemu build if env var XEN_NO_IOEMU is set.
Signed-off-by: Mike Day <md@soft-hackle.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-20 10:00:10 +00:00
kaf24@firebug.cl.cam.ac.uk 1d99b80d07 bitkeeper revision 1.1236.1.137 (4244ed88VAp9m3D-vEzXmLRoZputJQ)
Manual merge.
2005-03-25 23:38:21 +00:00
kaf24@firebug.cl.cam.ac.uk f9774e8f73 bitkeeper revision 1.1159.258.70 (4244a079wh98lZeg0t3eZdAEyBTNPQ)
Tools makefile cleanup and fix for parallel build.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-03-25 23:36:25 +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
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
kaf24@scramble.cl.cam.ac.uk 3279b48916 bitkeeper revision 1.1159.223.40 (41f676cbajLGqFeWFqajtJ3X4OkgoA)
Build system fixes.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-01-25 16:41:47 +00:00
iap10@freefall.cl.cam.ac.uk 05dec242c3 bitkeeper revision 1.1159.229.2 (41f644bdEYN9P3oj15IyKySMNPk1yg)
Fix "make dist" target in tools directory.
Signed-off-by: michael.fetterman@cl.cam.ac.uk
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-01-25 13:08:13 +00:00
iap10@labyrinth.cl.cam.ac.uk feebe377b8 bitkeeper revision 1.1159.223.27 (41f2ce1fr2yuEH_MHLrdXsDbSjsMJA)
Description: fix non-standard make/shell syntax
Fix use of `pwd`, &&, and || true.  Also, remove ().

From: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-01-22 22:05:19 +00:00
iap10@labyrinth.cl.cam.ac.uk 1d125bb68d bitkeeper revision 1.1159.142.9 (41868212HJLlpN1lDwN7zKigin-5tA)
Minor Makefile fixes
2004-11-01 18:36:02 +00:00
mjw@wray-m-3.hpl.hp.com b0b7188948 bitkeeper revision 1.1159.1.88 (4124b308xrxOcaDBfOP8TGkxArG9Yg)
Checking scripts for the things Xen needs for build and install.
2004-08-19 14:02:48 +00:00
tw275@labyrinth.cl.cam.ac.uk 332f9ea88f bitkeeper revision 1.1108.2.16 (40ffbcb9BiiQEdm3tM2wR3kHhi0avQ)
Changed location of sv - http share sits at /var/xen/sv
 while python files have been move out of xend
2004-07-22 13:10:17 +00:00
mjw@wray-m-3.hpl.hp.com 29b083850c bitkeeper revision 1.1041.16.1 (40ec1cc7JZD3Tq_wg7Ea5ZjrczQ0_A)
Starting to call xfrd from xend.
2004-07-07 15:54:47 +00:00
mjw@wray-m-3.hpl.hp.com 48e9a9c636 bitkeeper revision 1.1026.1.8 (40e1b09foCFBM0EuIgrSA1uLJrWuzA)
Restructuring the python code and libs - first stage.
2004-06-29 18:10:39 +00:00
mjw@wray-m-3.hpl.hp.com af551a1bda bitkeeper revision 1.1010.1.10 (40dfd40bszbCgYF9OJJKWOo1n7X8hw)
Rename xenctl, move things around.
2004-06-28 08:17:15 +00:00
mjw@wray-m-3.hpl.hp.com 9bdbe09f07 bitkeeper revision 1.1010.1.9 (40dc4078vvvprFxMFMTOULzuaeEQoQ)
Renaming 'xenmgr' to 'xen.xend'.
2004-06-25 15:10:48 +00:00
kaf24@scramble.cl.cam.ac.uk c2995ff9e8 bitkeeper revision 1.1005 (40d99af0Cf4EQLv6pL5rlJVam_lZHg)
Remove some obsolete miscellaneous tools.
2004-06-23 15:00:00 +00:00
iap10@labyrinth.cl.cam.ac.uk 8019cf6ca1 bitkeeper revision 1.960 (40cd7d81VzO6ptRUDTX_VC8yOFY9Ag)
Makefile cleanups. We now have a LINUX_SRC_PATH as well as LINUX_SRC in the
top level makefile. New make targets 'linux_XXX_config' and 'linux_XXX' configure
and build from the appropriate linux defconfig file. 'install' should install
both xen, the tools, and linux-xen.

Alson rename xen.dbg ->  xen-syms
2004-06-14 10:27:13 +00:00
mjw@wray-m-3.hpl.hp.com 8b980d633c bitkeeper revision 1.946.1.3 (40c9c475sJLMEuc6TqUt-bX6hVFOpQ)
Add source tree for the management utils.
2004-06-11 14:40:53 +00:00
iap10@labyrinth.cl.cam.ac.uk 0780b0730b bitkeeper revision 1.881 (409285285QhBEC23wsKBevdQUow-YA)
faster suspend
2004-04-30 16:56:08 +00:00
kaf24@scramble.cl.cam.ac.uk 16b5a63e56 bitkeeper revision 1.825 (406025cfC03xuc67hhXT_zgB13escw)
xc_linux_save.c, xc_linux_restore.c, balloon.c, README, Makefile:
  xeno -> xen renames.
2004-03-23 11:55:59 +00:00
kaf24@scramble.cl.cam.ac.uk 7849052048 bitkeeper revision 1.800 (4055ee59_zI1OKOsC2EKXBIYFm3OtA)
console_client.py, __init__.py, setup.py, Makefile:
  new file
Many files:
  New console-terminal client in xenctl.console_client Python package. New option to xc_dom_create (-c on cmdline or auto_console in defaults file) to automatically become a console client.
utils.py:
  Rename: tools/xc/py/XenoUtil.py -> tools/xenctl/lib/utils.py
2004-03-15 17:56:41 +00:00
kaf24@scramble.cl.cam.ac.uk 52a8efe1a7 bitkeeper revision 1.797 (4055c521Ophk9zIrp59mxPKyKg_0MA)
Makefile:
  Rationalise makefiles by folding dist option into install with a prefined prefix.
2004-03-15 15:00:49 +00:00
kaf24@scramble.cl.cam.ac.uk 7b4d7f5964 bitkeeper revision 1.759 (40431ad2YWsArtM623Q4wpLgPvrt5A)
xend.c, Makefile:
  new file
Many files:
  Rename /proc/xeno and /dev/xeno to /proc/xen and /dev/xen. Created a skeleton xend.
2004-03-01 11:13:22 +00:00
mwilli2@equilibrium.research.intel-research.net b882e9ddd5 bitkeeper revision 1.741 (403a3ee3r3VblO5vtoFGItOp9rvEpg)
Add Xen trace buffer and supporting tools.
2004-02-23 17:56:51 +00:00
ach61@labyrinth.cl.cam.ac.uk 933dcf13e1 bitkeeper revision 1.723 (402c9d32Wi_CDhKbGEWsHmH2qb2VfQ)
fix makefile for nsplitd
2004-02-13 09:47:30 +00:00
iap10@labyrinth.cl.cam.ac.uk 7dad9d795a bitkeeper revision 1.700 (401d7e17TsVIdmq0QNgdFLXJHFN1kg)
transfer new domain tools and readmes from the 1.2 tree
2004-02-01 22:30:47 +00:00