Commit Graph
47 Commits
Author SHA1 Message Date
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 f886165f6f bitkeeper revision 1.1550.1.3 (4294b356XJn1FHEVZ-2JlKpBDmqmpA)
xc_linux_restore.c:
  Make read from network work.
  Make error messages more specific.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-25 17:18:14 +00:00
cl349@firebug.cl.cam.ac.uk 23999c8bc1 bitkeeper revision 1.1527.2.1 (429368a2F0SR4yrzuHsrRucuwriYqA)
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>
2005-05-24 17:47: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
cl349@firebug.cl.cam.ac.uk fa16d77058 bitkeeper revision 1.1511 (4291af78wDb78xhg10ccUaCX1vnh_w)
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>
2005-05-23 10:24:56 +00:00
cl349@firebug.cl.cam.ac.uk 3277f00e2a bitkeeper revision 1.1488.1.1 (428e39badumj52vi-nzb7GBmoVe2dA)
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>
2005-05-20 19:25:46 +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
cl349@firebug.cl.cam.ac.uk 3887ad07b3 bitkeeper revision 1.1446 (428b4307MH3U7T8lRzS3M2j3aIil2w)
xc_linux_restore.c:
  g/c p_gdt left over from previous cleanup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 13:28:39 +00:00
kaf24@firebug.cl.cam.ac.uk 9aeab194c2 bitkeeper revision 1.1443 (428b3f59xxbCVcbUBrHu1R1TkWcYhg)
Cleaner GDT interface. Xen now reserves the last 2 pages of a full-size
(16 page) GDT. A guest can register a GDT with up to 7k entries. Xen
automatically makes the GDT up to max size with empty page mappings,
and turns page faults in that area to #GP(selector).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-18 13:12:57 +00:00
kaf24@firebug.cl.cam.ac.uk bfad555857 bitkeeper revision 1.1415 (42887ada_Jmkta2rYHnpJBE2EVpy4w)
Remove generic 'fast trap' from the Xen public interfaces. Internally
within Xen, we automatically set up direct trap for int 0x80, which is
the only 'fast trap' vector that we ever supported anyway.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-05-16 10:50:02 +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[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
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
smh22@firebug.cl.cam.ac.uk 324df1cf56 bitkeeper revision 1.1385.1.1 (426e50841dwkW8TPBgE1y4h3O71bsQ)
build when DEBUG=1 + whitespace fixes
2005-04-26 14:30:28 +00:00
kaf24@firebug.cl.cam.ac.uk 76d7931a0b bitkeeper revision 1.1236.1.183 (424d1ccaDlUUQZ1KrVHubRYFS5AKQA)
Batch p.t. pin requests during guest restore (after being suspended, or
after migration). Allow L1 tables to be pinned even after their va
backptr is fixed (no longer mutable).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-04-01 10:04:58 +00:00
kaf24@firebug.cl.cam.ac.uk 99d21671d5 bitkeeper revision 1.1236.1.164 (424aed36IaX4v3-NGAT_MnCdUsD1yQ)
Split mmu_update() hypercall into mmu_update() and mmuext_op().
All MMUEXT_* ops are now done via the latter hypercall. This allows
more arguments to be passed in a nicer way to mmuext operations.
Linux 2.4, 2.6 and control tools all use the new interface. The BSDs
will need some work, but shouldn't be too hard (and they can be moved
to writable pagetables at the same time :-) ).
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-03-30 18:17:26 +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
iap10@freefall.cl.cam.ac.uk 18ec56e8ed bitkeeper revision 1.1236.23.1 (42305c30ANG71NeXhipzTkvkmsry9Q)
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/users/iap10/xeno-clone/xen-unstable.bk
2005-03-10 14:39:44 +00:00
iap10@freefall.cl.cam.ac.uk 15f6b230e3 bitkeeper revision 1.1159.258.36 (42305b3948mU75urrgzQftpV3eNPbg)
Tidy up ugly warning in debug builds from xc_linux_restore.
Signed-off-by: ian@xensource.com
2005-03-10 14:35:37 +00:00
kaf24@scramble.cl.cam.ac.uk 09e143ff89 bitkeeper revision 1.1159.1.561 (420a44fbc4-bx17m5WWwDlyH93ab-g)
Some simple renaming. 'guestos' -> 'kernel'.
Signed-off-by: keir.fraser@cl.cam.ac.uk
2005-02-09 17:14:35 +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
mafetter@fleming.research 79c26560e2 bitkeeper revision 1.1159.220.2 (41e6700bFJzLjEYlNh48j_cSTbRy9A)
Code duplication cleanup: remove a number of duplicate identical
static functions in xc_*_{build,restore}.c, replaced with single
(non-static) copy in xc_private.c
2005-01-13 12:56:43 +00:00
cl349@freefall.cl.cam.ac.uk 225da2d6cf bitkeeper revision 1.1159.1.399 (4191f4cbUvkMenqLkHaeRu45RztOdA)
More SMP guest support.
2004-11-10 11:00:27 +00:00
kaf24@freefall.cl.cam.ac.uk 58f3afdd98 bitkeeper revision 1.1159.1.332 (41874e954CLIDA2J3phVFD2RnzVTpA)
Clean up public XenLinux header files. Now accessible from userspace as
#include <xen/linux...>
Got rid of the linux-xen-sparse symlink as it's no longer needed.
2004-11-02 09:08:37 +00:00
cl349@freefall.cl.cam.ac.uk e5901452e9 bitkeeper revision 1.1159.135.1 (417fd3b8e-uijqG_Stg0EouCeWPftA)
Add network bandwidth adaptive rate limiting to migration and
timestamped info messages.
2004-10-27 16:58:32 +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 74de957247 bitkeeper revision 1.1159.1.211 (4163fb35XBjUO8_fLeyomd3I9mHZOA)
Get rid of delay between finishing the transfer of a domain and when it gets to run.
2004-10-06 14:03:33 +00:00
iap10@labyrinth.cl.cam.ac.uk e2f19d9096 bitkeeper revision 1.1159.1.201 (41600e1fkVMoQU0dVgk1h6vT502hEg)
Merge
2004-10-03 14:35:11 +00:00
kaf24@freefall.cl.cam.ac.uk 4e7da2001d bitkeeper revision 1.1159.98.1 (415e7911bLQPew3o_RI5Cm8viw6VCQ)
Remove Xen-specific ioctl from /dev/mem device. Update domain-building
tools to use the correct device file for mapping foreign memory.
2004-10-02 09:46:57 +00:00
mjw@wray-m-3.hpl.hp.com d61b7f7baa bitkeeper revision 1.1159.96.3 (415c16a40z3XgMlliaGAnrifiHmpNg)
Move the configuration step for a restored/received domain so that it
is as early as possible in the domain construction process.
Change domain restore to use xfrd to avoid blocking and double
configuration.
2004-09-30 14:22:28 +00:00
iap10@labyrinth.cl.cam.ac.uk df524f3773 bitkeeper revision 1.1159.75.1 (4141e7297AE7URpA2fz0RRbAQySy8w)
Migration fix for immutable back pointers.
2004-09-10 17:40:57 +00:00
iap10@labyrinth.cl.cam.ac.uk f213cd2240 bitkeeper revision 1.1159.1.96 (412a083dAhGUZb_6ytHtPU56pIh13g)
cleanup
2004-08-23 15:07:41 +00:00
iap10@tetris.cl.cam.ac.uk 6e92cd3227 bitkeeper revision 1.1159.45.15 (4126390c2dSRHYLR3YNd9JysCy4XTw)
Export new mapping interface 'xc_map_foreign'
2004-08-20 17:46:52 +00:00
iap10@labyrinth.cl.cam.ac.uk bc09a61ef3 bitkeeper revision 1.1159.32.3 (4120e70bXTpJy0O5vPdcj0GxE44yNw)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into labyrinth.cl.cam.ac.uk:/auto/anfs/scratch/labyrinth/iap10/xeno-clone/xeno.bk
2004-08-16 16:55:39 +00:00
iap10@labyrinth.cl.cam.ac.uk 83b44e251e bitkeeper revision 1.1159.33.1 (4120e700LNXbe5IhAOotAN5jyP0RJw)
suspend/resume fixes
2004-08-16 16:55:28 +00:00
gm281@boulderdash.cl.cam.ac.uk 903335eb04 bitkeeper revision 1.1159.1.60 (411de531r3zspsa5WRoqFKGtfCbuAg)
Marge to the xc_linux_restore.c file
2004-08-14 10:10:57 +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
iap10@labyrinth.cl.cam.ac.uk 73f849e28d bitkeeper revision 1.1159.29.1 (411d0591E5q-eH5VYLKCC5XcKgmqCw)
fixes
2004-08-13 18:16:49 +00:00
iap10@labyrinth.cl.cam.ac.uk 9715db0088 bitkeeper revision 1.1159.1.55 (411ce247qbjvhaE1_176h9hDMmh3cg)
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-08-13 15:46:15 +00:00
iap10@labyrinth.cl.cam.ac.uk 00cc829c91 bitkeeper revision 1.1159.27.1 (411ce22fF0PE2whpAPrucFCnOwpOIw)
save/restore for linux 2.6 (not quite there yet)
2004-08-13 15:45:51 +00:00
mjw@wray-m-3.hpl.hp.com 90434d9229 bitkeeper revision 1.1159.1.50 (411cafaaPlpV28_c19BEAsmasMfTcg)
Hacking to try to get migrate to localhost going.
2004-08-13 12:10:18 +00:00
kaf24@scramble.cl.cam.ac.uk d985fae1b4 bitkeeper revision 1.1159.17.6 (41193a207z6kESTDa2SXhULAPY-Bmw)
Fix the broken build. Also avoid floating-point code in Xen.
2004-08-10 21:12:00 +00:00
gm281@boulderdash.cl.cam.ac.uk 92080adc56 bitkeeper revision 1.1159.16.2 (4118ed20n9s8eU8-4zEBAN9uVi9YWQ)
Fix to a broken build (previously not picked up by make). Prorer fix will follow soon.
2004-08-10 15:43:28 +00:00
iap10@labyrinth.cl.cam.ac.uk 43940acfca bitkeeper revision 1.1159.1.32 (4118d35c609YWhxt_3C-hWCNhXozxA)
migration integration with new xend
2004-08-10 13:53:32 +00:00
iap10@labyrinth.cl.cam.ac.uk 3e468e8ded bitkeeper revision 1.1159.12.2 (4117f3b8rwM8OBu0SxwoWkvUXsjLTQ)
add migration support to ngio frontend blk driver.
2004-08-09 21:59:20 +00:00
kaf24@scramble.cl.cam.ac.uk 5018bf3137 bitkeeper revision 1.1041.2.1 (40e2dccbwLPMSsarwzAscW72tSfuEg)
Add resource tracking for pfn mappings in libxc.
2004-06-30 15:31:23 +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