Commit Graph
34 Commits
Author SHA1 Message Date
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 8f7262f9a6 Recently some people complain that they cannot set the maxmem for
domU. The problem is that some code wrongly treat dom.max_memkb as in
byte unit, instead of KB unit. This patch fixs the problem.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-07-15 08:30:22 +00:00
kaf24@firebug.cl.cam.ac.uk aab6fa579e The attached patch adds a new dom0_op, DOM0_GETDOMAININFOLIST. This
operation allows retrieval of the domain info structures for all domains
in one hypercall.

Using a small test program, on a system with 97 domains with
non-contiguous domain IDs, I found that with this hypercall I could
retrieve the full array of info structures 12840 times per second, an
improvement from 2380 times per second with the DOM0_GETDOMAININFO op.

The patch also adds a libxc wrapper for this new hypercall.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
2005-07-08 09:06:04 +00:00
kaf24@firebug.cl.cam.ac.uk 61724bdcde bitkeeper revision 1.1730 (42ba7dbdkTADQfBqHaC_Ynqo3i1ZVw)
The xc_domain_getinfo does not clear the info structure before filling 
it in, and in some circumstances it doesn't completely fill in the 
structure for each domain.  In particular, it sets the crashed flag if 
the domain has crashed, but does not clear it if the domain has not 
crashed, so the crashed flag may be random stack garbage from the 
calling program.  With the attached patch (against the latest nightly), 
xc_domain_getinfo zeroes the array of info structures before filling 
them in.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
2005-06-23 09:15:41 +00:00
kaf24@firebug.cl.cam.ac.uk 8a6c33ded1 bitkeeper revision 1.1726.2.3 (42ba7587nwhnhQJ_hDkHTk8kTKtAFw)
Make sure we save errno across error-path printfs and munlocks. Based
on a patch from Anthony Liguori.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-23 08:40:39 +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 03249160f6 bitkeeper revision 1.1628 (429dc9b7MTwsBkscbFS1sK8SbwJhdg)
Fix domain shutdown so that the new status, and notification to domain0,
occur *after* the domain is fully descheduled and its execution state
synchronised.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-06-01 14:44:07 +00:00
cl349@firebug.cl.cam.ac.uk 19a92cce63 bitkeeper revision 1.1488 (428e0104FPjt2icUt6-UvaVbiv-4aQ)
XendDomainInfo.py, xc.c, xc_linux_restore.c, xc_domain.c, xc.h:
  Split pincpu, setcpuweight, setmaxmem and memory increase reservation
  out of xc_domain_create.  Add glue to get the missing functions exposed
  to python and use.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-20 15:23:48 +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 1ab02347d8 bitkeeper revision 1.1389.15.14 (428242a6WycHvjFblUGQbKtJd94NPg)
Many files:
  Merge interface changes from previous 'Split out context fetching into
  separate DOM0 op' and 'xen,tools: pincpu use vcpu and cpumap_t' checkins.
xc_linux_save.c:
  Undo incorrect change from previous patch.
xc.h, xc_domain.c:
  Cleanup whitespace.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 17:36:38 +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
cl349@firebug.cl.cam.ac.uk[cl349] 0ececa920d bitkeeper revision 1.1389.15.11 (428212beixWz2Ftz7Wj0NeY03LmBnA)
sched.h, dom0_ops.h, dom0_ops.c, xc_domain.c, xc.h:
  Minor cleanups.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-11 14:12:14 +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
smh22@tempest.cl.cam.ac.uk 1d5464775f bitkeeper revision 1.1389.5.16 (427a2d48fB11IAeFlv0AL07RxME0vg)
build privcmd even in unpriv domains; minor libxc fix

Signed-off-by: Steven Hand <steven@xensource.com>
2005-05-05 14:27:20 +00:00
kaf24@firebug.cl.cam.ac.uk e286f60403 bitkeeper revision 1.1389.7.5 (4279f582pwUD_gXMbX8w4RQ2aYmGDA)
Fix return code from xc_domain_create.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-05 10:29:22 +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
kaf24@firebug.cl.cam.ac.uk f50cd74cf2 bitkeeper revision 1.1373 (426a2bc8m7wX71OOkLtSOgNXcrObMA)
xc_domain.c:
  Ensure ctxt is mlocked in xc_domain_getfullinfo.
2005-04-23 11:04:40 +00:00
kaf24@firebug.cl.cam.ac.uk 0ebae1de2a bitkeeper revision 1.1367 (4269220d42QVzUVVn9-Tn1tb9fNSWw)
Remove memory and cpu parameters from DOM0_CREATEDOMAIN, and remove
DOM0_SETINITIALMEM. You can get the same effect via PINCPU, 
SETMAXMEM, and do_mem_op(increase_reservation).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-22 16:10:53 +00:00
iap10@freefall.cl.cam.ac.uk 7fbf26132f bitkeeper revision 1.1320 (42642ddapSMPP0vKzhY_zJP6GaMQ7A)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-2.0-testing.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
2005-04-18 21:59:54 +00:00
iap10@freefall.cl.cam.ac.uk d25f5a7f56 bitkeeper revision 1.1159.258.103 (42642c5djs1dzMOSs-vIJLlGCQyrMQ)
Allow xc_domain_info_t to be optional in xc_domain_getfullinfo
From: Kip Macy
Signed-off-by: ian@xensource.com
2005-04-18 21:53:33 +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 b90e35d94a bitkeeper revision 1.1236.1.161 (424a87d38l7A3H0bMHl_fsQl_ZRvuA)
Remove vmassist dom0_op. Can now adjust vm assists via setdomaininfo.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-03-30 11:04:51 +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
kaf24@scramble.cl.cam.ac.uk 8b313272dd bitkeeper revision 1.1159.1.525 (41d58ba8VgPwkfEiKrUXF8b7LLwQ5Q)
Andy's control-interface message switch -- first cut.
2004-12-31 17:26:00 +00:00
smh22@tempest.cl.cam.ac.uk f222d03636 bitkeeper revision 1.1159.209.1 (41d559d4GzyJ3WvVnHx_oB2IlXZPuw)
temporary fix for BIGLOCK deadlock & tools fix
2004-12-31 13:53:24 +00:00
kaf24@freefall.cl.cam.ac.uk 187a0366b6 bitkeeper revision 1.1159.142.2 (41849fadYlUYMwSy6tcq8Y-Yi8NMZA)
Clean up libxc by allowing direct use of Xen headers from userland:
 #include <xen/...>
2004-10-31 08:17:49 +00:00
kaf24@freefall.cl.cam.ac.uk 57e067d108 bitkeeper revision 1.1159.124.2 (4177d163xinza3-p0e7_VEpiJ-okNA)
Remove domain names from Xen. These are now stored only within xend.
2004-10-21 15:10:27 +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
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
gm281@boulderdash.cl.cam.ac.uk 274e01f431 bitkeeper revision 1.1159.30.1 (411ddb8cj12XLuMNx_qS9SGeej51OQ)
cpu_weight parameter added to the xm create command. Minor bug fix for BVT.
2004-08-14 09:29:48 +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
mjw@wray-m-3.hpl.hp.com deb5f9442a bitkeeper revision 1.1108.14.6 (410649f9zyS54Re8bSXNwM_nPxqrOw)
Add support for setting and getting domain maxmem.
2004-07-27 12:26:33 +00:00
mjw@wray-m-3.hpl.hp.com a45a1c42f6 bitkeeper revision 1.1108.1.16 (41010e2br7ouRoQI0b4MbAxS1GzgpA)
Allow specification of the domain id to use for a new domain.
2004-07-23 13:10:03 +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