aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename libxc => libxenctrl and xc.h => xen/xenctrl.hcl349@firebug.cl.cam.ac.uk2005-08-241-558/+0
| | | | | | | | | 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
* Get rid of memory_t. Almost all uses should be unsigned long.kaf24@firebug.cl.cam.ac.uk2005-08-191-14/+14
| | | | | | | | | | | | The few uses for a physical/machine address have been mostly changed to u64. Grant table code probably needs auditing for PAE correctness, but at least the interface is now sound. Signed-off-by: Keir Fraser <keir@xensource.com>
* Initialize the xenstore MFN for VMX domainscl349@firebug.cl.cam.ac.uk2005-08-101-1/+4
| | | | | | Signed-off-by: Arun Sharma <arun.sharma@intel.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Fix checkpointing - add save/restore support to the xenbus driver.cl349@firebug.cl.cam.ac.uk2005-08-021-1/+4
| | | | | | | | | | - Add xenbus driver suspend/resume functions - Change xenbus irq to not be shared - Translate store mfn in suspend record to pfn and back - Make tools re-introduce the domain to the store Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Here is our latest patch to enable the Xen tools tokaf24@firebug.cl.cam.ac.uk2005-07-291-0/+16
| | | | | | | build and work with IA64 Xen. Signed-off-by: Matt Chapman <matthewc@hp.com> Acked-by: Dan Magenheimer <dan.magenheimer@hp.com>
* Add xc_init_store and run xenbus probe on INITDOMAIN_STORE privcmd ioctl.cl349@firebug.cl.cam.ac.uk2005-07-121-0/+9
| | | | | | Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* The attached patch adds a new dom0_op, DOM0_GETDOMAININFOLIST. Thiskaf24@firebug.cl.cam.ac.uk2005-07-081-0/+18
| | | | | | | | | | | | | | | | 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>
* bitkeeper revision 1.1753 (42bbe67ePvjh9K0djYf6xRw2rGNreQ)kaf24@firebug.cl.cam.ac.uk2005-06-241-8/+0
| | | | | | Properly remove old plan9 builder from xc header fiel and from xend. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1726.2.1 (42ba6dcaSODxvHIftq9c1t2jDb4htA)kaf24@firebug.cl.cam.ac.uk2005-06-231-0/+1
| | | | | Include ACM header file in libxc header file.
* bitkeeper revision 1.1720 (42b7bb86ag6KD5OEx2v6YdSnS1BhGQ)iap10@freefall.cl.cam.ac.uk2005-06-211-0/+2
|\ | | | | | | | | | | Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
| * bitkeeper revision 1.1718.1.7 (42b742f8NxTuN2pqCHFAWI78dbEYKw)smh22@firebug.cl.cam.ac.uk2005-06-201-0/+2
| | | | | | | | | | | | | | | | | | | | 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>
* | bitkeeper revision 1.1719 (42b36f87tzUHBhdJfZKC_wBV271T0g)iap10@freefall.cl.cam.ac.uk2005-06-181-1/+5
|\ \ | |/ |/| | | | | manual merge
| * bitkeeper revision 1.1159.258.169 (42b35222QJFB1A-V4mSUnrUrLfA8xA)dsteklof@us.ibm.com[iap10]2005-06-171-1/+5
| | | | | | | | | | | | | | | | | | | | | | [PATCH] RE: [Xen-devel] DOM0_GETDOMAININFO intended behavior Ok... now that I (unintentionally) went overboard on this, why not just document how it works and leave it as is? signed-off-by: dsteklof@us.ibm.com signed-off-by: ian@xensource.com
* | bitkeeper revision 1.1700 (42a854e79oBFuqa_DSY4Lr9IhenUQw)cl349@firebug.cl.cam.ac.uk2005-06-091-1/+3
|\ \ | | | | | | | | | | | | | | | Merge xenstore changes. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
| * | bitkeeper revision 1.1662.1.11 (42a4a26bkrYJJbT21Mpjyew3rnh7Cw)cl349@firebug.cl.cam.ac.uk2005-06-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | bitkeeper revision 1.1676 (42a306a07UKpLq27_iCaJyxJBbKedg)kaf24@firebug.cl.cam.ac.uk2005-06-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | More console cleanups. The console ring now overwrites its tail when it fills, rather than stop recording output. The guest serial output is only allowed to half-fill the serial output buffer, and now respects hypercall preemption requests. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | bitkeeper revision 1.1665.1.5 (42a1a779yqLZDCutMj_vFNQlo3q3zw)kaf24@firebug.cl.cam.ac.uk2005-06-041-0/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | bitkeeper revision 1.1527.2.1 (429368a2F0SR4yrzuHsrRucuwriYqA)cl349@firebug.cl.cam.ac.uk2005-05-241-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Execute xc_linux_save in a seperate process so that it can't crash xend. Also handle errors passed from xc_linux_save. xen_domain.c: Disable save in xfrd. xc_save.c: new file Makefile: Add xc_save. XendDomainInfo.py: Add suspended state and threading Condition with notification, allowing easy waiting for state changes. XendDomain.py: Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Set state to "suspended" when detecting a suspended domain. Fix reading output from subprocesses. Fix ValueError in xen_domain(). xc.c: Remove python binding for xc_linux_save. xc_linux_save.c: Implement the parts of vm save which need interaction with xend as part of xend, instead of using xfrd. Also run xc_linux_save in a seperate process. xc_linux_restore.c: Flush output so that xend picks it up timely. Also disable debug output again. xc.h: Update xc_linux_save prototype and fix comments for xc_linux_{save,restore}. ignore: Add tools/xcutils/xc_save. xpopen.py: Exit with 127 if exec fails. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* | bitkeeper revision 1.1511 (4291af78wDb78xhg10ccUaCX1vnh_w)cl349@firebug.cl.cam.ac.uk2005-05-231-2/+1
| | | | | | | | | | | | | | XendDomain.py, xc.c, xc_linux_restore.c, xc.h: Move read of pfn to mfn frame list into xc_linux_restore. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* | bitkeeper revision 1.1488.1.1 (428e39badumj52vi-nzb7GBmoVe2dA)cl349@firebug.cl.cam.ac.uk2005-05-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | XendDomainInfo.py, XendDomain.py, xc.c, xc_linux_restore.c, xc.h: Implement the parts of vm restore which need interaction with xend as part of xend, instead of using xfrd. The restore functionality using xfrd was broken anyway since xend didn't handle the callback channel from xfrd correctly. xen_domain.c: Disable restore in xfrd. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* | bitkeeper revision 1.1488 (428e0104FPjt2icUt6-UvaVbiv-4aQ)cl349@firebug.cl.cam.ac.uk2005-05-201-3/+4
| | | | | | | | | | | | | | | | | | 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>
* | bitkeeper revision 1.1389.19.5 (42833116hOft6cekTRSGqSIk2tNzGA)rusty@rustcorp.com.au[kaf24]2005-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | [PATCH] [PATCH] libxc: mmap doesn't return NULL on error... Hi, was reading libxc code, and noticed this. Patch is bigger than strictly necessary due to indent adjust. Against latest bk. Rusty.
* | bitkeeper revision 1.1389.15.14 (428242a6WycHvjFblUGQbKtJd94NPg)cl349@firebug.cl.cam.ac.uk2005-05-111-22/+19
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | bitkeeper revision 1.1389.15.13 (42821f23dLMLc5Ql8Y-rUwoatYBI6g)cl349@firebug.cl.cam.ac.uk[cl349]2005-05-111-6/+8
| | | | | | | | | | | | | | | | | | 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>
* | bitkeeper revision 1.1389.15.11 (428212beixWz2Ftz7Wj0NeY03LmBnA)cl349@firebug.cl.cam.ac.uk[cl349]2005-05-111-1/+1
| | | | | | | | | | | | | | 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>
* | bitkeeper revision 1.1389.15.10 (428202c9Vz9xfNsG-q-WtZpPrER7xQ)cl349@firebug.cl.cam.ac.uk[cl349]2005-05-111-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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>
* | bitkeeper revision 1.1389.5.37 (427f9fd5lvofpMsmBQ2h16fsuXQH6Q)kaf24@firebug.cl.cam.ac.uk2005-05-091-0/+8
|\ \ | | | | | | | | | | | | Manual merge.
| * \ bitkeeper revision 1.1346.1.1 (42670505dNhgnJm5dQD81pCalXMZgw)iap10@freefall.cl.cam.ac.uk2005-04-211-0/+8
| |\ \ | | | | | | | | | | | | | | | | manual merge
| | * | bitkeeper revision 1.1159.170.102 (41fa2751heRkQ76AYa9Oe-6cOyJuLw)sd386@font.cl.cam.ac.uk2005-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | Enhanced SEDF scheduler
| | * | bitkeeper revision 1.1159.170.101 (41ebbffd4FxrNM4pQF5Ip7nRjrUUjg)sd386@font.cl.cam.ac.uk2005-01-171-0/+8
| | |\ \ | | | |/ | | |/| | | | | | | | | | | | | 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
| | | * bitkeeper revision 1.1159.221.1 (41ebbfeezjfpGp20MD6f6Xl2r6Wd3Q)sd386@font.cl.cam.ac.uk2005-01-171-0/+8
| | | | | | | | | | | | | | | | | | | | Added new simple EDF scheduler
* | | | bitkeeper revision 1.1389.1.23 (4275e716ZM2AFvimq_UhqQK8jiiq5g)kaf24@firebug.cl.cam.ac.uk2005-05-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fix xc_ptrace interface to get rid of pid_t. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | bitkeeper revision 1.1389.1.16 (4273458eyxEjHSppjkQyDsXHHxOY9Q)kaf24@firebug.cl.cam.ac.uk[kaf24]2005-04-301-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | coredump.patch Extend libxc and gdb server to coredump a domain. Signed-off-by: Kip Macy <kmacy@fsmware.com>
* | | | bitkeeper revision 1.1389.1.2 (4270ed5dZvr_HdIQR0eBM2m4Kj81_A)kaf24@firebug.cl.cam.ac.uk2005-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | bitkeeper revision 1.1367 (4269220d42QVzUVVn9-Tn1tb9fNSWw)kaf24@firebug.cl.cam.ac.uk2005-04-221-4/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | 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>
* | | bitkeeper revision 1.1269 (42524412_qy8UFAnO7-nfNL1poTqIg)mafetter@fleming.research2005-04-051-14/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Hand merge Signed-off-by: michael.fetterman@cl.cam.ac.uk
| * | | bitkeeper revision 1.1236.1.209 (42517173PR-QieAWB-SNd4qnSxKmMQ)kaf24@firebug.cl.cam.ac.uk2005-04-041-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove broken atropos and round-robin schedulers. Clean up the scheduler plugin interface a little. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | bitkeeper revision 1.1267 (4251679dHqcry__n_OW9aNhfUtjZ_A)mafetter@fleming.research2005-04-041-5/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Hand merged Signed-off-by: michael.fetterman@cl.cam.ac.uk
| * | | bitkeeper revision 1.1236.1.161 (424a87d38l7A3H0bMHl_fsQl_ZRvuA)kaf24@firebug.cl.cam.ac.uk2005-03-301-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | Remove vmassist dom0_op. Can now adjust vm assists via setdomaininfo. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | | bitkeeper revision 1.1264 (4243449d-JwBVsSinjAWdYveMNhEjQ)mafetter@fleming.research2005-03-241-6/+63
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Initial attempt at merging shadow code with head of unstable tree. Signed-off-by: michael.fetterman@cl.cam.ac.uk
| * | | bitkeeper revision 1.1236.12.11 (422de58bI6Rru29oYT0ipOgZZhpqZw)cwc22@centipede.cl.cam.ac.uk2005-03-081-0/+57
| |\ \ \ | | | | | | | | | | | | | | | | | | | | resolve of grant tables merge
| | * | | bitkeeper revision 1.1236.9.1 (4227c12cJQxFhBUYk0ojkmnooUw0jQ)cwc22@centipede.cl.cam.ac.uk2005-03-041-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | Grant tables work on data structures.
| * | | | bitkeeper revision 1.1236.1.47 (4225ff68LvKUt73k78dKjnXxsnQt7A)kaf24@scramble.cl.cam.ac.uk2005-03-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix tools build. Clean up barrier defs. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
* | | | | bitkeeper revision 1.1243 (4225f63a_DvywTD0qmXez00zLLTU9Q)rneugeba@wyvis.research.intel-research.net2005-03-021-6/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | manual merge Signed-off-by: michael.fetterman@cl.cam.ac.uk
| * | | | bitkeeper revision 1.1236.1.44 (4224f156AyEV3oV5JinuYtfS9e_ITA)kaf24@scramble.cl.cam.ac.uk2005-03-011-6/+22
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Rationalise memory-barrier definitions in user-space tools. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* / / / bitkeeper revision 1.1242 (4225f56fwo6ym-RMTBheAeYhl10ATQ)rneugeba@wyvis.research.intel-research.net2005-03-021-0/+5
|/ / / | | | | | | | | | | | | | | | | | | forward ported James Bulpin's performance counters tool Signed-off-by: michael.fetterman@cl.cam.ac.uk
* | | bitkeeper revision 1.1159.212.66 (42001b6f4kUEhmWXQmgg_vNH-AqiWQ)iap10@labyrinth.cl.cam.ac.uk2005-02-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now, the memory for the 1:1 physical mode page tables comes from the VMX domain's memory. With this change, when the user asks for a domain with M Megabytes of memory, we actually allocate M+N megabytes in xend, where N is the memory for the page table pages. This simplifies the code in the device models that maps guest memory (we now map all of it) and the E820 map can also give the full M megabytes to the guest. Signed-off-by: Xin B Li <xin.b.li@intel.com> Signed-off-by: Arun Sharma <arun.sharma@intel.com> Signed-off-by: ian.pratt@cl.cam.ac.uk
* | | bitkeeper revision 1.1159.217.20 (41ebdda5ZO9YBU_VHuSh0IwgcQe0Ng)cl349@arcadians.cl.cam.ac.uk2005-01-171-1/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | 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
| * | | bitkeeper revision 1.1159.222.1 (41ebdd9btvi-aV_bkwfCgKSenC9XbQ)cl349@arcadians.cl.cam.ac.uk2005-01-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | bitkeeper revision 1.1159.217.18 (41ea5633KLfjrmzpi1tzeYsbJqWJOw)iap10@labyrinth.cl.cam.ac.uk2005-01-161-3/+173
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xen-unstable.bk