Commit Graph
80 Commits
Author SHA1 Message Date
Ewan Mellor 2e873d3d17 Added configuration for authentication through Xen-API -- it can now be set
to use PAM, or to be turned off entirely, on a listener by listener basis.

Listen on a different unix domain socket for the Xen-API server, so that it
can co-exist with the others.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 11:31:46 +00:00
emellor@leeni.uk.xensource.com 522884b8be Move the SSHTransport class to its own file, so that we may disable SSH
transport when running on Python <2.4.  SSHTransport uses the new subprocess
class, and so it doesn't work on older versions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-20 13:32:21 +01:00
anthony@rhesis.austin.ibm.com 22737f2517 Use an environmental variable (XM_SERVER) to determine XML-RPC URI.
This allows users to invoke xm against a remote server.  This is much more
useful though for exercising XML-RPC transports with xm-test though since
xm-test will continue to (mostly) function if the URI is localhost.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-06-20 10:25:22 +01:00
emellor@leeni.uk.xensource.com 8d3271b7cc Set the permissions correctly on the XML-RPC UDP socket, so that non-root users
cannot use the socket.

This closes a security hole, and fixes the intermittent failure
of xm-test/06_list_nonroot.test.

c.f. xen-unstable changeset 9205:faa1eb1621b9 (same bug, different socket).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-31 00:13:33 +01:00
emellor@leeni.uk.xensource.com 88aea7e5a8 Improve error handling, in particular fixing the ProtocolError that is thrown
when a domain is specified by the user that does not exist.  Added a few
error codes -- many more to come, I expect.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-23 12:59:43 +01:00
anthony@rhesis.austin.ibm.com 19c9e31146 Use XML-RPC as a transport for Xend instead of S-Expression/HTTP.
This changeset introduces a new XML-RPC service that runs in Xend and the
required changes to have xm use this new service by default.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-03-23 11:25:37 +01:00
emellor@leeni.uk.xensource.com 8ee550dbe0 Allow callers to XendClient.xend_list_domains to specify the detail flag, and
turn detail off when doing vcpu-list.  This avoids calls to xenstore just to
get the list of domains for the vcpu-list call, significantly increasing
performance of that command on loaded systems.

Closes bug #545.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-04 19:15:36 +01:00
emellor@leeni.uk.xensource.com dc3c184731 Fix reference to HttpXendClientProtocol. This was previously referring to the
abstract base class, which was never going to work.  (This is debugging code
only, so I presume that no-one has used it for a long time, but it's doing no
harm hanging around.)

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 17:31:35 +00:00
vhanquez@kneesa.uk.xensource.com c2c982f908 allow a port to be specified for migration.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-12-08 07:11:09 +00:00
emellor@leeni.uk.xensource.com bf5ca2a1fd Added xm rename command. Improve the argument checking and error reporting. 2005-11-30 19:54:28 +00:00
emellor@leeni.uk.xensource.com cb248d6b16 The following patch removes every (hopefully) reference to network-limit.
Upon further investigation it sets Device parameters that don't exist any
longer, thus causing exceptions.  As it looks like this is completely
obsolete, and no one is actively working on it, we should just rip it out to
end the confusion.

Signed-off-by: Sean Dague <sean@dague.net>
2005-11-16 11:31:57 +01:00
emellor@leeni.uk.xensource.com e10bc057a5 Push the process of waiting for devices to come up right out of DevController,
and drive this process from xm create.  Architecturally, this separates the
process of domain creation from the process of waiting for devices, allowing
tools to choose when to perform that wait (if at all).  This places the waiting
in the same category as the unpause after domain creation, architecturally.

The main advantage to this approach is that it takes waiting for devices out
of the scope of XendDomain's domains_lock.  When restarting a domain, the
watch would fire for @releaseDomain while we were waiting for new domains to
come up.  This would deadlock the watch thread, as no more new watches could
be delivered.  Closes bug #387.

In the longer term, we expect to be able to wait for devices to come up
completely, not simply to wait for the hotplug scripts to run, and so it is
necessary then to move the waiting procedure right out of the server, so that
it can be performed after the domain unpause.  Without unpausing the domain,
the frontends will not come up, and so we cannot detect successful device
completion.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-08 03:34:23 +01:00
kaf24@firebug.cl.cam.ac.uk 900a11e8ed cpumap cleanups -- Python now deals with lists of cpus
rather than cpu bitmaps.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-22 08:35:03 +01:00
emellor@leeni.uk.xensource.com db6435aaa8 Added sedf_get functionality to XendClient interface. From David Isaac
Wolinsky <davidiw@ufl.edu>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-19 13:33:22 +01:00
emellor@leeni.uk.xensource.com 238ca03bd4 Replace xm vcpu-enable and xm vcpu-disable with one command, xm set-vcpus,
which sets the number of active CPUs.  Xend then toggles the VCPUs to ensure a
contiguous group of them are enabled.

Added a server command to get VCPU information, and use this info to fix
xm vcpu-list.  That xm command now has extra information, too.  CPU == -1 is no
longer used as an indicator for a VCPU that is disabled -- a separate state
field is available, and the CPU is set merely to '-'.  Individual CPU time is
now available. 

Deprecated xm list -v.  -v is conventionally used for --verbose, so using it
to list vcpus is confusing.  Furthermore, we already have an equivalent command
xm vcpu-list.

Tidied up the horrendous xm list / xm vcpu-list code.

Removed the vcpus field from the dict returned by xc_domain_getinfo, and the
vcpu_to_cpu map from the sxpr returned for xm list.

Move the dom0_enforce_vcpus code into XendDomain.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-17 14:07:47 +01:00
emellor@ewan 9d12287d14 /home/emellor/log2 2005-10-09 12:14:46 +01:00
emellor@ewan fa670bf40e Remove xm commands block-refresh and vbd-refresh, as these are unsupported.
Allow xm block-detach to take a device name as well as a device ID.  This
closes bug #285 and fixes xm-test's 01_block-destroy_btblock_pos.py and
02_block-destroy_rtblock_pos.py.

Rename and reconnect XendDomainInfo.configureDevice to reconfigureDevice.
There is nothing using this at the moment, mind you.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-06 19:41:29 +01:00
emellor@ewan 6303fee512 Remove the reason code from the destroy action -- the reason is only of value
on a graceful shutdown.  Clarify the semantic difference between poweroff and
halt (we use halt to mean 'shutdown and stop' and poweroff to mean 'shutdown
and do whatever the configured behaviour is').

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-03 16:39:19 +01:00
emellor@ewan 182124af7b Remove unused xend_domain_device.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-28 16:59:34 +01:00
emellor@ewan 0c41a8f422 Remove unused DEBUG variable, and -d flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-09-21 11:31:55 +01:00
kaf24@firebug.cl.cam.ac.uk 09d42caafd Add missing LGPL license notice to python sources
that didn't have them.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-08-09 13:17:37 +00:00
kaf24@firebug.cl.cam.ac.uk fe0b8e6e6e The attached patch:
1. Converts the shutdown driver and xend to use the store instead of
   control messages, 

2. Includes Anthony's xenstore notification code, and

3. Changes xend so that sysrq's are no longer sent as "special case"
   shutdown messages.  Store keys are cheap, so making the sysrq
   delivery less obscure is good.

I think I have made all of the appropriate modifications to Xend, but
it is complex, so I may have missed something.  Comments are welcome.

Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-05 08:59:41 +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
cl349@firebug.cl.cam.ac.uk be51472d62 bitkeeper revision 1.1726 (42b7f1bfzMUFLRiUR9wWkzc2mh-Ing)
Add new control messages for vcpu hotplug events.  Via the
xm vcpu-hotplug sub-program, vcpus in domains can be enabled/disabled
when CONFIG_HOTPLUG_CPU is enabled in the target domain's kernel.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-06-21 10:53:51 +00:00
smh22@firebug.cl.cam.ac.uk d0e8e50db8 bitkeeper revision 1.1597 (429b4898xNVUuBPMVXKa545qSx7i7A)
fix xm vif-list and xm vbd-list (modulo error reporting for domain 0)

Signed-off-by: Steven Hand <steven@xensource.com>
2005-05-30 17:08:40 +00:00
xenbk@gandalf.hpl.hp.com 5149cc539b bitkeeper revision 1.1400 (4284b9fcQX9z9IzwMeHwdHYRkEIjFA)
Merge
2005-05-13 14:30:20 +00:00
xenbk@gandalf.hpl.hp.com 5d44c5a1f2 bitkeeper revision 1.1399 (42820c16ZkkGzrd1OssY0unvIvY5Cw)
Merge http://xen.bkbits.net:8080/xeno-unstable.bk
into gandalf.hpl.hp.com:/var/bk/xeno-unstable.bk
2005-05-11 13:43:50 +00:00
cl349@firebug.cl.cam.ac.uk[cl349] b7c498208c bitkeeper revision 1.1389.15.10 (428202c9Vz9xfNsG-q-WtZpPrER7xQ)
[PATCH] xen,tools: pincpu use vcpu and cpumap_t

The following patch updates the dom0 pincpu operation to read the VCPU
value from the xend interface rather than hard-coding the exec_domain to
0.  This prevented pinning VCPUS other than 0 to a particular cpu.  The
pincpu cpu argument is replaced with cpumap, a u64 bitmap representing
which CPUs a VCPU can use.

I added the number of VCPUS to the main xm list output and also included
a new sub-option to xm list to display the VCPU to CPU mapping.  While
working on the pincpu code, I fixed an out-of-bounds indexing for the
pincpu operation that wasn't previously exposed since the
vcpu/exec_domain value was hard-coded to 0.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 13:04:09 +00:00
mjw@wray-m-3.hpl.hp.com 084b3e366e bitkeeper revision 1.1327.2.9 (426f9bfcIjY9QAFCPqWBbFw35vclow)
Add support for unix-domain sockets on xend.
Remove some dead code.
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-27 14:04:44 +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
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
vh249@arcadians.cl.cam.ac.uk 4a0b5ba481 bitkeeper revision 1.1236.51.2 (424d4e45s3_LSUrubUDpgLTFNoQ2xw)
add support for refreshing vbds

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-04-01 13:36:05 +00:00
kaf24@scramble.cl.cam.ac.uk 047fb79307 bitkeeper revision 1.1236.1.46 (4225fdb2Fsz5LfXWKyVON4u_POTHkQ)
Credit-based rate limiting in net backend. From Ross Mcilroy.
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
2005-03-02 17:53:54 +00:00
sd386@font.cl.cam.ac.uk b1cbe136f6 bitkeeper revision 1.1159.170.102 (41fa2751heRkQ76AYa9Oe-6cOyJuLw)
Enhanced SEDF scheduler
2005-01-28 11:51:45 +00:00
sd386@font.cl.cam.ac.uk a36ea62807 bitkeeper revision 1.1159.170.101 (41ebbffd4FxrNM4pQF5Ip7nRjrUUjg)
Merge font.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into font.cl.cam.ac.uk:/local/scratch/sd386/xen-2.0-testing.bk
2005-01-17 13:39:09 +00:00
sd386@font.cl.cam.ac.uk 990e73cba7 bitkeeper revision 1.1159.221.1 (41ebbfeezjfpGp20MD6f6Xl2r6Wd3Q)
Added new simple EDF scheduler
2005-01-17 13:38:54 +00:00
kaf24@scramble.cl.cam.ac.uk e044b31856 bitkeeper revision 1.1159.187.60 (41b899a4tjdjzfL7v1mQOH5gIHlqQQ)
Another sysrq fix...
2004-12-09 18:29:56 +00:00
kaf24@scramble.cl.cam.ac.uk bc05bbc8f7 bitkeeper revision 1.1159.187.58 (41b88ba7ZjuJcwYxAL5HR5J_1FXMYw)
sysrq hacks from Matt Bloch
2004-12-09 17:30:15 +00:00
mark@maw48.kings.cam.ac.uk 4f4f7d0265 bitkeeper revision 1.1159.1.314 (418442e0ulgOgW7-GQoSm-dOij6jwg)
Add dmesg clear op.
2004-10-31 01:41:52 +00:00
iap10@labyrinth.cl.cam.ac.uk 28f5e0295b bitkeeper revision 1.1159.128.1 (41780f0dzQjdvnhFtMuVv1YAmVoQ8Q)
Merge ssh://xenbk@gandalf.hpl.hp.com//var/bk/xeno-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xeno.bk
2004-10-21 19:33:33 +00:00
mjw@wray-m-3.hpl.hp.com 457afef32d bitkeeper revision 1.1159.118.2 (4177e027QSr5igdHrB1nC0veTxsuvg)
Merge xenbk@gandalf:/var/bk/xeno-unstable.bk
into wray-m-3.hpl.hp.com:/home/mjw/repos-bk/xeno-unstable.bk
2004-10-21 16:13:27 +00:00
mjw@wray-m-3.hpl.hp.com 4a22a3ffb9 bitkeeper revision 1.1159.116.4 (4177df97ZOvl759Lo38Gv7CY081ZCA)
Add resource control parameter to migrate.
2004-10-21 16:11:03 +00:00
cl349@freefall.cl.cam.ac.uk cf9401b0f4 bitkeeper revision 1.1159.1.250 (41778fccML9t77yAOOuhoIJlCQGgKQ)
Remove fbvt scheduler.
2004-10-21 10:30:36 +00:00
mwilli2@equilibrium.research f8e32a93e5 bitkeeper revision 1.1159.1.247 (41770cc6Kk3qrDm03nejgR15F8G8Ng)
Full balloon driver support for 2.6, including control interface
and plumbing into xend / xm.
2004-10-21 01:11:34 +00:00
mjw@wray-m-3.hpl.hp.com c2c9f7989d bitkeeper revision 1.1159.1.165 (4151594cmY68ImBqRlb00RkEm61RcQ)
Split the xend client code into separate synch and asynch client
protocols, and load the asynch one on demand. This speeds up xm
as it doesn't load the asynch code.
2004-09-22 10:51:56 +00:00
mjw@wray-m-3.hpl.hp.com a23e4c0121 bitkeeper revision 1.1159.1.164 (41503abcmVn6L0phzf-BOxlxa3zgxw)
Add support for reconfiguring an existing device,
including support for changing the bridge of a vif.
Treat bridge "null" as meaning no bridge.
2004-09-21 14:29:16 +00:00
mjw@wray-m-3.hpl.hp.com 254692941d bitkeeper revision 1.1159.68.3 (41385101Grb5mmJcQ0YiLdCY2dOnCg)
Notify device controllers when devices are added or removed so
that they can probe for the devices.
2004-09-03 11:09:53 +00:00
mjw@wray-m-3.hpl.hp.com 17acf34b9f bitkeeper revision 1.1159.38.5 (41235bac45keyRYBSLnIxXITxalrzg)
Add 'live' parameter to migrate.
2004-08-18 13:37:48 +00:00
mjw@wray-m-3.hpl.hp.com 3d3c4e1d63 bitkeeper revision 1.1159.6.1 (411748d7-DyfJk-MOXRVdFnSV7ZYdw)
Merge xenbk@gandalf:/var/bk/xeno-unstable.bk
into wray-m-3.hpl.hp.com:/home/mjw/repos-bk/xeno-unstable.bk
2004-08-09 09:50:15 +00:00
gm281@boulderdash.cl.cam.ac.uk 061160d30e bitkeeper revision 1.1133 (410fb6c8BCfflcDT6Pjhr8MK2MOc2A)
The initial implementation of the warping in BVT
2004-08-03 16:01:12 +00:00