Commit Graph
427 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk a187bd9850 bitkeeper revision 1.1474 (428d064ccj8XQgCCXE-M9_O7BIHWLw)
Merge firebug.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/cl349/xen-unstable.bk
2005-05-19 21:34:04 +00:00
cl349@firebug.cl.cam.ac.uk 3618175709 bitkeeper revision 1.1471.1.1 (428d0589wFIw2xri87QgIvuBuKB2Tw)
XendDomain.py:
  Remove domain_db cache -- it's tedious to maintain and has zero use since
  it gets flushed to the XendDB immediately on every update and it's never
  consulted except for maintaining it.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-19 21:30:49 +00:00
akw27@arcadians.cl.cam.ac.uk 33709a954f bitkeeper revision 1.1473 (428d01b2u1JOg4f95CAjC08qwbmHCg)
Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into arcadians.cl.cam.ac.uk:/auto/anfs/nos1/akw27/xeno-clone/xeno.bk
2005-05-19 21:14:26 +00:00
akw27@arcadians.cl.cam.ac.uk 90a17e697b bitkeeper revision 1.1421.2.1 (428d0172Mlrhy6MiEsOJ6GtVjT0HPg)
Little blkif interface and xend fixes to make parallax work again.
Also minor debug printing fix to blktap.

Signed-off-by: andrew.warfield@cl.cam.ac.uk
2005-05-19 21:13:22 +00:00
cl349@firebug.cl.cam.ac.uk b77845590a bitkeeper revision 1.1471 (428cf949ZdshF_D_GTMuih23dXPidw)
XendDomain.py:
  Add XendDomainDict for easy by name lookup.
  Don't call self.refresh() from XendDomain.list().
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-19 20:38:33 +00:00
cl349@firebug.cl.cam.ac.uk a1a710f835 bitkeeper revision 1.1470 (428ced50yxI-yUVLt1gizxNq0Nofxg)
console.py, blkif.py, SrvDomainDir.py, XendDomain.py, XendConsole.py:
  Rename XendDomain.domains() to XendDomain.list() and rename
  XendDomain.domain_by_id to XendDomain.domains.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-19 19:47:28 +00:00
cl349@firebug.cl.cam.ac.uk a5ee12cd7f bitkeeper revision 1.1468 (428ce527Lb7wgq3pLjYHY6S5zNVk7g)
XendDomainInfo.py:
  XendDomain.domain_exists() now returns a truth value, use domain_lookup
  instead.
XendDomain.py:
  Remove domain_by_name lookup array -- it's tedious to maintain for
  hardly any benefits.  Also make domain_exists return a truth value.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-19 19:12:39 +00:00
cl349@firebug.cl.cam.ac.uk 41d6cf803a bitkeeper revision 1.1467 (428cc6abzdTlehevsvwAL2V8qyBT-A)
XendRoot.py:
  Disable logging to stderr -- the log messages are in /var/log/xend.log
  already.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-19 17:02:35 +00:00
cl349@firebug.cl.cam.ac.uk 176187faa1 bitkeeper revision 1.1461.1.1 (428caf7bGihAjAM_KvFgRGUSkzIQLw)
XendDomainInfo.py, XendDomain.py:
  Remove DomainShutdown class and store shutdown information in domain's
  XendDomainInfo object.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-19 15:23:39 +00:00
cl349@firebug.cl.cam.ac.uk 1a89ea3773 bitkeeper revision 1.1456.1.1 (428c6495K-Bk3cP5wcdHyT5L6-GVxQ)
event.py, XendMigrate.py, EventServer.py:
  Use scheduler.{now,later} instead of reactor.callLater.
reactor.py:
  Remove reactor.callLater function -- same as scheduler.{now,later}.
EventServer.py:
  Cleanup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-19 10:04:05 +00:00
cl349@firebug.cl.cam.ac.uk 1baea2ab53 bitkeeper revision 1.1456 (428b84afhYDPsxh36MUzWQkhznuotQ)
XendDomain.py, scheduler.py:
  Simplify scheduler.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 18:08:47 +00:00
cl349@firebug.cl.cam.ac.uk 3f4e372b28 bitkeeper revision 1.1452.1.1 (428b7fa6MuhQh_l2UNUJg7zzlnM1pw)
XendDomain.py:
  Simplify domain restart code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 17:47:18 +00:00
cl349@firebug.cl.cam.ac.uk 224a8c2804 bitkeeper revision 1.1452 (428b6062g_unu25_ly_M7YUuHKn8Wg)
XendDomain.py:
  Bring back refresh() calls but only run the code cleanup parts
  of refresh when necessary.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 15:33:54 +00:00
cl349@firebug.cl.cam.ac.uk cbe8a716f2 bitkeeper revision 1.1451 (428b5f14gpuT4COa88QnSJNe11X63A)
XendDomain.py:
  Don't add domain to shutdown cleanup machinery when sending sysrq.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 15:28:20 +00:00
cl349@firebug.cl.cam.ac.uk 5c19670752 bitkeeper revision 1.1448.1.1 (428b5d756NfzYJ90kQUy0Q91tiUWhw)
scheduler.py:
  Simplify scheduler by removing support for cancelling timeouts.
  Also add a ``now'' function to run a function in a seperate thread.
XendDomain.py:
  g/c gratuitous refresh() calls.
  Drive domain restart off the virq signaling that a domain has terminated.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 15:21:25 +00:00
cl349@firebug.cl.cam.ac.uk 7218d0c4bd bitkeeper revision 1.1446.1.1 (428b47a7E-qEps_VFpIpa2dT5I_afw)
XendDomain.py:
  Move code to create dominfo entries for unknown domains into
  domain_lookup.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 13:48:23 +00:00
cl349@firebug.cl.cam.ac.uk f074a9fc2f bitkeeper revision 1.1440.1.1 (428b4130AHhjh0DP-1uIBubaOIywiw)
domain.c:
  Send VIRQ_DOM_EXC when domain_destruct removes a domain from
  Xen's list of domains.
XendDomain.py:
  Now that virq's work, remove periodic domain refresh calls to reap expired
  domains.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-18 13:20:48 +00:00
cl349@firebug.cl.cam.ac.uk 627aaffcb5 bitkeeper revision 1.1440 (428a703fGt3asjVc5fTAW72ClnFOog)
Many files:
  g/c _readline{,s} and use regular readline{,s} functions -- the special
  _readline{,s} functions were only needed because of Twisted.
ip.py:
  Also use readlines() instead of xreadlines().
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-17 22:29:19 +00:00
cl349@firebug.cl.cam.ac.uk 899c0f0840 bitkeeper revision 1.1439 (428a6cf5pJzUJXByrppn04a8boHuAw)
Fix virq delivery in Xend.
xcs.c:
  Fix binding to virq's -- setup evtchn binding.
channel.py:
  Use VIRQ_DOM_EXC as exported from xc.  Also don't bind to virq's we
  don't care for or which won't get delivered to us anyway.
xc.c:
  Export VIRQ_DOM_EXC to python.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-17 22:15:17 +00:00
cl349@firebug.cl.cam.ac.uk 5b0d192b95 bitkeeper revision 1.1438 (428a6cbbhokMA5cP0GT8z63oSTQwIA)
ip.py:
  Make the get_current_ip* functions more robust -- default to look at the
  interface which is currently used for the default route instead of eth0.
  Fix get_current_ipaddr, get_current_ipmask and get_current_ipgw for
  veth0.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-17 22:14:19 +00:00
cl349@firebug.cl.cam.ac.uk b93e7f7e8b bitkeeper revision 1.1426.1.1 (4289cc8cPUM98bLJs4TV93NHY9LOKg)
Many files:
  Make interface to network/block scripts consistent:
  - output on stdout is returned to the script caller
  - output on stderr is logged at the error level, messages with a '-' prefix
    are logged at the debug level and messages with a '*' prefix are logged
    at the info level.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-17 10:50:52 +00:00
cl349@firebug.cl.cam.ac.uk dd6f104cdb bitkeeper revision 1.1421.1.1 (4289b3a0n7JmXiz6fiz0QAfqJ_M1Lg)
XendDomainInfo.py:
  Redirect debug output to log.
PrettyPrint.py:
  Add prettyprintstring.
XendDomainInfo.py:
  Remove debug print.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-17 09:04:32 +00:00
cl349@firebug.cl.cam.ac.uk e17de76e38 bitkeeper revision 1.1420 (4288c742JYmWjAz3bZlZhafhzuQ73w)
Vifctl.py:
  Pass script output through logger.
process.py:
  os.system() replacement which outputs through the logger
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-16 16:16:02 +00:00
cl349@firebug.cl.cam.ac.uk a511447ae4 bitkeeper revision 1.1419 (4288b44f4jmaJGEAjpgklKaura3Q9g)
SrvServer.py:
  Use log.info to output unix server address.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-16 14:55:11 +00:00
cl349@firebug.cl.cam.ac.uk 12f9bc2314 bitkeeper revision 1.1418 (4288b194SVDMgqu_H0b_Hwg8OcoZkA)
blkif.py:
  Import XendLogging.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-16 14:43:32 +00:00
mjw@wray-m-3.hpl.hp.com 007d7b6e1e bitkeeper revision 1.1403 (4284c2edzLTGTr4gHmGzYsZMuetTRQ)
Switch to using unix-domain interface on xend instead
of http via libcurl.
Sundry other merges and fixes.
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-05-13 15:08:29 +00:00
xenbk@gandalf.hpl.hp.com 5149cc539b bitkeeper revision 1.1400 (4284b9fcQX9z9IzwMeHwdHYRkEIjFA)
Merge
2005-05-13 14:30:20 +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
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
kaf24@firebug.cl.cam.ac.uk bb5ae6b5cc bitkeeper revision 1.1389.5.37 (427f9fd5lvofpMsmBQ2h16fsuXQH6Q)
Manual merge.
2005-05-09 17:37:25 +00:00
mjw@wray-m-3.hpl.hp.com cc5f6e3045 bitkeeper revision 1.1397 (4277741fdlZ9gO-8RTiQcqQmqkKEEw)
Fix import.
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-05-03 12:52:47 +00:00
xenbk@gandalf.hpl.hp.com 34f6661b0a bitkeeper revision 1.1396 (4277318fhBrWTxIQcLWvjKyF4aX-_w)
Merge
2005-05-03 08:08:47 +00:00
kaf24@firebug.cl.cam.ac.uk[kaf24] f497950f3f bitkeeper revision 1.1389.1.18 (4273a203Crs6SOBhDcJcXdza1-0gNw)
dump-enable.patch
Dump guest core if enable-dump is set.
Signed-off-by: Kip Macy <kmacy@fsmware.com>
2005-04-30 15:19:31 +00:00
kaf24@firebug.cl.cam.ac.uk[kaf24] b61e6cb4e9 bitkeeper revision 1.1389.1.16 (4273458eyxEjHSppjkQyDsXHHxOY9Q)
coredump.patch
Extend libxc and gdb server to coredump a domain.
Signed-off-by: Kip Macy <kmacy@fsmware.com>
2005-04-30 08:45:02 +00:00
mjw@wray-m-3.hpl.hp.com 83a12f2ba6 bitkeeper revision 1.1327.2.15 (4270e4efrExxOueWy0PzsA_9yhB0tA)
Move blkif utility functions into xen.util.
Importing xen.xend.server.blkif from xm create caused
errors.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-28 13:28:15 +00:00
mjw@wray-m-3.hpl.hp.com 51a9f171a5 bitkeeper revision 1.1327.2.13 (4270d6c35WpxFmhdkREjmSvk82s-Bg)
Merge Jeremy's pygrub bootloader patch.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-28 12:27:47 +00:00
mjw@wray-m-3.hpl.hp.com b4ac7763be bitkeeper revision 1.1327.2.12 (4270a5f3EYQTq9cfFkGDYjjJ7ckjuw)
Fix problem with Python 2.4 caused by change in error behaviour
of dircache.listdir. In 2.4 it throws an error on non-existent
directories instead of returning an empty list.
See 'Porting to 2.4' in the Python release notes.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-28 08:59:31 +00:00
mjw@wray-m-3.hpl.hp.com 5ee95edd62 bitkeeper revision 1.1327.2.11 (426fb893OrpBVeRpaWJ0atIxlG4Hxw)
Add support for unix-domain sockets to consoles and the
event server.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-27 16:06:43 +00:00
mjw@wray-m-3.hpl.hp.com 21e79ab902 bitkeeper revision 1.1327.2.10 (426fa4e4eW-9e4FXXSNCILoSYO6KKA)
Add error handling so that disconnecting from a console
producing fast output doesn't cause an error loop.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-27 14:42:44 +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
mjw@wray-m-3.hpl.hp.com 890ea518d9 bitkeeper revision 1.1327.2.8 (426cead1A05puWeKCli1otyMkZ6B9A)
Refresh domain list periodically.
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-25 13:04:17 +00:00
mjw@wray-m-3.hpl.hp.com 4ef819374f bitkeeper revision 1.1327.2.7 (42692f39Ootfn2QyViUck00eh0wT7Q)
Remove deferred and dead code.
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-22 17:07:05 +00:00
mjw@wray-m-3.hpl.hp.com eae3cc0a1f bitkeeper revision 1.1327.2.6 (4269277eFXyepEq1XdwqGS1lcCxhhg)
Fix problem with netdevs not coming back on reboot.
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-22 16:34:06 +00:00
mjw@wray-m-3.hpl.hp.com 790a97e56c bitkeeper revision 1.1327.2.5 (426921fa25ZaWjkBe-mPZImv-iXvmg)
Message unpacking fix.
Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-22 16:10:34 +00:00
mjw@wray-m-3.hpl.hp.com a2dd80a6ea bitkeeper revision 1.1327.2.4 (426918a34Af7gihN8mTkq-P3KrAZXg)
Remove twisted from save/migrate handling.
This needs to use threads, so add thread support for
http server requests.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-22 15:30:43 +00:00
mjw@wray-m-3.hpl.hp.com 1075f20bac bitkeeper revision 1.1327.2.3 (4267b4918M714ImdecocSvKqAkVj1A)
Add some locking to console handling.
Remove a dead file.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-21 14:11:29 +00:00
mjw@wray-m-3.hpl.hp.com 14a5b54eb0 bitkeeper revision 1.1327.2.2 (4267a9b3MhPpljnjQ5IbfLdzcW2K3w)
Remove twisted from the HTTP server and replace with a 
threaded server. Add classes to provide tcp and unix servers
using threads instead of twisted. Remove use of twisted from
the consoles, event server and HTTP resources

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-21 13:25:07 +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
mjw@wray-m-3.hpl.hp.com ebd2e8acfb bitkeeper revision 1.1327.2.1 (4266169fT9qqykPCJWENnvnqwf71kQ)
Refactor domain construction and device controllers to
remove use of twisted. Use threads to dispatch channel
input. Move device controllers into domains.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2005-04-20 08:45:19 +00:00