Commit Graph
54 Commits
Author SHA1 Message Date
smh22@firebug.cl.cam.ac.uk 0f2781b12e One more try...
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-16 18:41:43 +01:00
smh22@firebug.cl.cam.ac.uk 5aebcfee2a Fix annoying error introduced during cleanup. Oops.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-16 18:28:09 +01:00
smh22@firebug.cl.cam.ac.uk 4c908cf0e3 Many fixes for save/restore and related areas for PAE in particular. Now
should be able to save/restore successfully on machines with up to 16GB 
and any size of guest. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-16 17:45:03 +01:00
smh22@firebug.cl.cam.ac.uk 9d894bc217 Fix 64-bit build.
Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-09 09:02:59 +01:00
smh22@firebug.cl.cam.ac.uk 7962b47d8b Enable save/restore for PAE domains.
This includes quite a few cleanups / refactoring of the old code, some
of which is intended to prepare for 64-bit save/restore. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-11-08 18:42:07 +01:00
kaf24@firebug.cl.cam.ac.uk d8263e8dba Fix Xen public interfaces and the tools to consistently
use stdint-format bitsize types (uint32_t and friends).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-12 11:07:37 +01:00
emellor@ewan e92ad65f02 Append a newline to error messages, so that they are parsed by XendCheckpoint.py
correctly.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-09 11:53:34 +01:00
kaf24@firebug.cl.cam.ac.uk 1872f40d78 Clean up sched_op() hypercall interface. One particular
change to watch out for is that the suspend record, on
save/restore, is now passed via register %edx not %esi
(both i386 and x86/64).

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-10-04 15:34:02 +01:00
kaf24@firebug.cl.cam.ac.uk e701d05c8a Re-indent libxc to avoid hard tabs. Also, fix the PAE
domain builder to correctly write PTEs that map pages
above 4GB.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-19 11:06:05 +00:00
kaf24@firebug.cl.cam.ac.uk 3886819443 Remove unsued domain_controller.h file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-09-14 10:58:00 +00:00
iap10@firebug.cl.cam.ac.uk bf753c8c6b Extend save/restore interface to cope with domains >4GB by adding a level of indirection.
Signed-off-by: ian@xensource.com
2005-09-07 02:31:24 +00:00
cl349@firebug.cl.cam.ac.uk 2aace4b332 On suspend, canonicalize store and console mfns in the guest.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-05 15:32:14 +00:00
cl349@firebug.cl.cam.ac.uk 311f8312d8 Get rid of suspend record, start info holds all the info now.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-05 14:53:39 +00:00
cl349@firebug.cl.cam.ac.uk 3bc1edc4ab Update suspend/resume for new console code.
- translate console mfn to pfn
- unbind/bind console evtchn
- recover console mfn on restore
- trigger xenconsoled refresh after mfn is put in store
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-03 18:48:39 +00:00
shand@ubuntu.eng.hq.xensource.com 01d0370a52 Enable 'live' migration from a tools pov; prior to this the 'live' flag was
being ignored by xend/xc_linux_save.

Signed-off-by: Steven Hand <steven@xensource.com>
2005-09-02 17:36:29 -08:00
shand@ubuntu.eng.hq.xensource.com 1f1e576a4a Fix nasty tools race between barking xu_autoreap() and xpopen3.wait() -
save/restore now seems more robust from a tools pov at least. 

Signed-off-by: Steven Hand <steven@xensource.com>
2005-08-28 21:40:36 -08:00
cl349@firebug.cl.cam.ac.uk acc63faffa Break the building/save/restore code out into a separate library libxenguest.
Also update the tools accordingly.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-25 00:51:20 +00:00
vh249@arcadians.cl.cam.ac.uk e08e53f151 make needlessly global functions static and use NULL instead of 0 for pointer
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-12 13:05:50 +00:00
vh249@arcadians.cl.cam.ac.uk 3abb5c2914 remove pointless NULL checks before free()
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-12 10:48:42 +00:00
kaf24@firebug.cl.cam.ac.uk 3184c77cda Memory leak in xc_linux_save, and uninitialised var
in secpol_tool.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
2005-08-11 22:12:11 +00:00
cl349@firebug.cl.cam.ac.uk 59f1e250c2 Fix checkpointing - add save/restore support to the xenbus driver.
- 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>
2005-08-02 17:12:36 +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 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 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 f900ac3343 bitkeeper revision 1.1510 (4291adbf-g-WMA-w33q-SnHuwoX3BA)
XendDomain.py, xc_linux_save.c:
  Re-arrange layout of save/restore file.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-23 10:17:35 +00:00
smh22@firebug.cl.cam.ac.uk 43c44b436d bitkeeper revision 1.1389.1.60 (4284eff8xPCiJXQdVwPYSYL7MEB5zA)
fix calls to xc_domain_getinfo()

Signed-off-by: Steven Hand <steven@xensource.com>
2005-05-13 18:20:40 +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
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
iap10@tetris.cl.cam.ac.uk 56b13d9892 bitkeeper revision 1.1294 (425d9f852SL8ULzr5896Y6r81VmGmQ)
Manual merge
2005-04-13 22:39:01 +00:00
ccoffing@novell.com[iap10] e4c215974f bitkeeper revision 1.1159.258.90 (425a82f9SNVZLPiwpO07IDSTr_VE7g)
[PATCH]  stream fixes for migration

I've attached a patch for libxutil/libxc.  This fixes one of the hangs =
I've seen during migrations.  It applies against 2.0 and 2.0-testing.

Changes:
 * Encountering EOF or error when xfrd reads from stream could cause an =
infinite loop.
 * Cleaned up the closing of streams.
 * Fixed several memory leaks.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
2005-04-11 14:00:25 +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 884609c12f bitkeeper revision 1.1159.217.9 (41e4ea41-PFvthJ_X2r27xBL8jEH1g)
Fix tools compilation.
2005-01-12 09:13:37 +00:00
kaf24@scramble.cl.cam.ac.uk cb674a9f23 bitkeeper revision 1.1159.187.61 (41badd42WPbpyTHpQn9bVGYapDfdOQ)
Type decl cleanups from Charles Coffing.
2004-12-11 11:42:58 +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
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
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
kaf24@freefall.cl.cam.ac.uk 5882e4897e bitkeeper revision 1.1159.1.229 (416d3ad1BpCS1RVPjkX14HUpsanlGw)
Shadow pagetable walkthrough.
2004-10-13 14:25:21 +00:00
iap10@labyrinth.cl.cam.ac.uk 65fa179067 bitkeeper revision 1.1159.1.203 (41627baf9iewVs_cM71QK_H2uLYnYw)
wait longer for domain to suspend.
2004-10-05 10:47:11 +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
kaf24@scramble.cl.cam.ac.uk 6adf087669 bitkeeper revision 1.1159.42.4 (4124c9a2Di3cas2RmMeElljc94T5_A)
Merge scramble.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xeno
2004-08-19 15:39:14 +00:00
kaf24@scramble.cl.cam.ac.uk e23d7726d5 bitkeeper revision 1.1159.44.1 (4124c99bzYQ86nF2sa6s-nSiOfibyQ)
Clean up mapping of I/O memory and Xen-heap memory. We define two
'dummy domains' for this purpose which can be specified to
MMUEXT_SET_FOREIGNDOM.
2004-08-19 15:39:07 +00:00
iap10@labyrinth.cl.cam.ac.uk 30b3cad405 bitkeeper revision 1.1159.43.1 (4124b289EjJu2ABgQn-Zz7HxnmkRUQ)
a few shadow mode cleanups
2004-08-19 14:00:41 +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
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 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
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