Commit Graph
5891 Commits
Author SHA1 Message Date
cl349@firebug.cl.cam.ac.uk 55e1cda4c0 Make XENSTORED_DEBUG create a xenstored trace logfile.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-27 17:03:00 +00:00
cl349@firebug.cl.cam.ac.uk 0e358737de Move SIF_BLK_BE_DOMAIN and SIF_NET_BE_DOMAIN definitions to where they are used.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-27 17:00:24 +00:00
cl349@firebug.cl.cam.ac.uk f423cd3752 merge? 2005-07-27 16:57:37 +00:00
cl349@firebug.cl.cam.ac.uk 63c82e1bdd Don't auto-add domains we don't know about.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-27 16:57:01 +00:00
kaf24@firebug.cl.cam.ac.uk 8ab01c502c Add IBM Cyclone support to Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-27 16:18:02 +00:00
kaf24@firebug.cl.cam.ac.uk 5e8bc03f67 Add HPET support to Xen. It is quicker to access and more
precise than the PIT.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-27 15:32:44 +00:00
kaf24@firebug.cl.cam.ac.uk e386da97d1 On opt_nosmp, also force num_cores to 1. Do this in setup.c
instead of cpu/common.c. This is where opt_nosmp is defined,
and it reduces diff of cpu/ subdir against native Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-27 11:20:47 +00:00
sos22@douglas.cl.cam.ac.uk b5deb01bfa Kill a bad assertion.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-07-27 11:02:30 +00:00
sos22@douglas.cl.cam.ac.uk 1a92d96790 Merge.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-07-27 10:54:39 +00:00
sos22@douglas.cl.cam.ac.uk fb6e1a7ed1 Make sure that opt_nosmp also disables hyperthreading. This stops us
from trying to create domains on non-existent threads, which would
lead to a rather nasty crash.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
2005-07-27 10:52:29 +00:00
cl349@firebug.cl.cam.ac.uk 1693f2a523 Rename file with space in name.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : tools/sv/images/internet copy.jpg => tools/sv/images/internet_copy.jpg
2005-07-27 09:56:31 +00:00
kaf24@firebug.cl.cam.ac.uk 6e27226763 Fix memory reservation in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-07-27 09:24:51 +00:00
iap10@freefall.cl.cam.ac.uk 36df52b0a8 Frob the Linux-2.6 configs to enable PAE (HIGHMEM_64G) if XEN_TARGET_X86_PAE=y
Signed-off-by: ian@xensource.com
2005-07-27 00:27:36 +00:00
cl349@firebug.cl.cam.ac.uk 44ff21af8a merge? 2005-07-26 18:41:39 +00:00
cl349@firebug.cl.cam.ac.uk 7808c397e3 Clean up xenbus code not to use priorities.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:38:33 +00:00
cl349@firebug.cl.cam.ac.uk 120e5a3fed Fix case where watch callback unregisters itself: do not try to ack it
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:27:26 +00:00
cl349@firebug.cl.cam.ac.uk d151513350 Implement xenbus_dev_error() and xenbus_dev_ok() functions
for better error reporting using the store.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:25:57 +00:00
cl349@firebug.cl.cam.ac.uk f9f0de6a9c Scrub initial xenstore page, free xendev structure.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:24:22 +00:00
cl349@firebug.cl.cam.ac.uk de1ea907bb Fix locking: probe can be called from several places, so ensure
we lock for it.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:22:38 +00:00
cl349@firebug.cl.cam.ac.uk c09136c10a Fix bus watch code, and clean up a little.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:19:38 +00:00
cl349@firebug.cl.cam.ac.uk f45352ee46 Note about when device_find is fixed
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:18:55 +00:00
cl349@firebug.cl.cam.ac.uk 167875bb34 Modify to assume transactions
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:18:11 +00:00
cl349@firebug.cl.cam.ac.uk f1b3a3b311 Do not use device_find: crashes for some reason
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:16:55 +00:00
cl349@firebug.cl.cam.ac.uk aeb5e4c445 Fix missing argument rename in xenbus_exists.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:15:53 +00:00
cl349@firebug.cl.cam.ac.uk 0302e34615 Grab lock around registering watch.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:07:50 +00:00
cl349@firebug.cl.cam.ac.uk 3468eb81a1 Add watch for dynamic add/remove of devices.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:07:05 +00:00
cl349@firebug.cl.cam.ac.uk 52af332595 Fix return from xenbus_scanf: returns number scanned, not 0!
Fix xenbus_write args in xenbus_printf
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 17:04:33 +00:00
cl349@firebug.cl.cam.ac.uk c61e87e799 Major xenbus cleanup
1) Make xenbus_* functions first-class citizens, evict xs_ prefix.
2) Add xenbus_scanf and xenbus_printf instead of multiple functions
3) Remove unused code from xenbus.c
4) Use standard debugging macros.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 16:59:40 +00:00
kaf24@firebug.cl.cam.ac.uk 646239403d Manual merge. 2005-07-26 16:17:04 +00:00
kaf24@firebug.cl.cam.ac.uk bd16e616b6 Attached patch removes the empty domain if
xc.memory_increase_reservation fails.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-07-26 16:16:39 +00:00
cl349@firebug.cl.cam.ac.uk cec6ff4898 Update python bindings - xs_watch doesn't support a priority anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:57:18 +00:00
cl349@firebug.cl.cam.ac.uk a6b41d9b80 Don't enter sv subdirectory until its Makefile supports targets
like `clean' or actually does anything useful.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:37:40 +00:00
cl349@firebug.cl.cam.ac.uk eb825f79cb Remove ill-conceived concept of watches blocking reply on
connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way
of avoiding them: it is reasonable for someone to ignore watch
notifications while doing other actions, and that means that
we can do other writes.  These writes can block pending other
watchers; if one of these is the process blocked awaiting our
ack, we deadlock.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:26:32 +00:00
cl349@firebug.cl.cam.ac.uk dfc7e02e7a Fix bug where transaction fires multiple events.
Add general trace() call to help future debugging.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:24:28 +00:00
cl349@firebug.cl.cam.ac.uk df569ddb1c Fix bug where watch messages doesn't go out. Also change xs_test
to more closely represent xenbus behaviour so we can see the bug.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:23:50 +00:00
cl349@firebug.cl.cam.ac.uk b4ff7e6103 Allow test.sh to take arg: name of test to start with
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:21:32 +00:00
cl349@firebug.cl.cam.ac.uk c86032d118 Make testing more reliable: wait for event after async so we know
child has done command
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:21:00 +00:00
cl349@firebug.cl.cam.ac.uk ef07173654 Change watches: operations block until everyone has acked.
Watch events are no longer sent to self
Watches no longer take a priority
async and asyncwait commands for xs_test, now we need to continue
despite blocking ops.
Print test name at end of verbose run on failure.
Use --trace-file arg to xenstored when testing
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:20:09 +00:00
kaf24@firebug.cl.cam.ac.uk 71ae53ce26 This patch prevents you from getting a screen full of stack trace when
trying to run commands like xm list as a normal user, and instead provides a
helpful error message.

Signed-off-by: Sean Dague <sean@dague.net>
2005-07-26 15:16:39 +00:00
kaf24@firebug.cl.cam.ac.uk 9ced17e2ab Manual merge. 2005-07-26 15:16:12 +00:00
cl349@firebug.cl.cam.ac.uk e04c630cb2 Change from bool indicating blocked to an enum: when watches go
synchronous this makes it easier (because then we have two reasons
to block)
Instead of using return value, use explicit state member inside
struct connection.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:13:56 +00:00
cl349@firebug.cl.cam.ac.uk e08ecc0000 Test and fix acknowedge_watch from returning EINVAL.
Also ensure that daemon re-xmits event if they ack wrong thing
(otherwise confused clients get stuck, as we will send no more
data while awaiting ack).
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:09:43 +00:00
cl349@firebug.cl.cam.ac.uk a9c1da21e1 Fix testsuite to ignore tool/ dir.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 15:08:22 +00:00
cl349@firebug.cl.cam.ac.uk d461f09e21 Start of code to persistent store connections when xenstored restarts
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-07-26 14:02:33 +00:00
twilkie@paploo.uk.xensource.com 2145204551 Add XenSV back into the repository.
Now uses Python Server Pages, not twisted.
2005-07-26 13:56:30 +00:00
cl349@firebug.cl.cam.ac.uk 967dd235f5 # HG changeset patch
# User Rusty Russell <rusty@rustcorp.com.au>
# Node ID a92163adedcfcff0d05c965d09da747f3c8aa13e
# Parent  63ab20781afa311300f3a8e832744292014ea7f6

Remove ill-conceived concept of watches blocking reply on connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way of avoiding them: it is reasonable for someone to ignore watch notifications while doing other actions, and that means that we can do other writes.  These writes can block pending other watchers; if one of these is the process blocked awaiting our ack, we deadlock.

diff -r 63ab20781afa -r a92163adedcf tools/xenstore/xenstored_core.c
2005-07-26 13:11:01 +00:00
kaf24@firebug.cl.cam.ac.uk a21324269e Fix restart/poweroff properly. From aq. 2005-07-26 10:09:06 +00:00
kaf24@firebug.cl.cam.ac.uk e39ba51523 - allows to optionally boot the system with a policy already being
active at startup; this works by adding a module line into the grub
  configuration file and placing the binary policy generated by the
  policy tool into the boot directory; This assumes that a maximum of
  one module line is used for the initrd in the grub configuration
  file - Question: do users pass more than one module to the kernel?
- enables the policy hypervisor call on x86/64
- some function prototypes moved to include files
- moves the version number in the java tool up to the current
  version (a better way of doing this will be submitted soon)

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
2005-07-25 21:19:14 +00:00
kaf24@firebug.cl.cam.ac.uk 5102630952 Improve guest time keeping
Even though we accounted for lost ticks, the accounting was not precise.
Specifically, we didn't account for the delay in calling the ac_timer
handler.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:03:40 +00:00
kaf24@firebug.cl.cam.ac.uk 2988ab5bf3 Really enable gdbserver for real mode code.
Missed out one instance where we need to check if we're running on
1:1 page tables with guest paging disabled.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-07-25 21:03:25 +00:00