Commit Graph
6058 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 1787e1a4b7 When building in separate object directory entry.o fails building
because entry.S includes syscall_table.S but it's in the wrong
directory.  This simply adds the obj-dir to the include search path.

Signed-off-by: Chris Wright <chrisw@osdl.org>
2005-08-09 10:47:41 +00:00
kaf24@firebug.cl.cam.ac.uk 87ce6ef033 Fixes for x86/64 writable pagetables, including SMP
guest support.

NOTE: I removed some x86/64 specific tests from get_page_type().
I can't see what good could come of them -- if they caused
things to work then I'm pretty sure there must be some underlying
bug that is what ought to be fixed.

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-09 10:42:51 +00:00
cl349@firebug.cl.cam.ac.uk 1b63dcf8f4 Restore suspend/resume calls for the control interface on suspend/resume.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-09 09:34:06 +00:00
cl349@firebug.cl.cam.ac.uk b06a5d76b9 Don't expose xenstore daemon-only permission bits through python bindings.
These bits are daemon-only, never come though to userspace.  We already
changed them once and broke compilation: better they had never been
referenced.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-09 08:44:29 +00:00
kaf24@firebug.cl.cam.ac.uk 72782fe7c8 Simple fix to getdomaininfo cpu_time calculation for
multi-vcpu guests. From Josh Triplett.
2005-08-08 18:43:57 +00:00
kaf24@firebug.cl.cam.ac.uk 52318a414c Fix page_to_phys() macro as suggested by Gerd. 2005-08-08 17:00:21 +00:00
kaf24@firebug.cl.cam.ac.uk bc7615a229 That one is obviously needed to make pae xen-linux work with
more than 4GB.
2005-08-08 16:51:02 +00:00
kaf24@firebug.cl.cam.ac.uk 31b2ad0533 Fix x86/64 xenlinux build. Remove stupid patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 14:39:29 +00:00
kaf24@firebug.cl.cam.ac.uk 8718ef030b Fix signedness issue in xenlinux timer interrupt handler.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 14:13:36 +00:00
kaf24@firebug.cl.cam.ac.uk b352ab0b9a Really fix the x86/64 build. Get rid of push/pop from
scale_delta().
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 12:31:04 +00:00
kaf24@firebug.cl.cam.ac.uk 40e0c1037a Fix the x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 12:07:19 +00:00
kaf24@firebug.cl.cam.ac.uk 592d8f352a Remove dead file. 2005-08-08 11:10:54 +00:00
kaf24@firebug.cl.cam.ac.uk 76cc3f4579 Remove dead files. 2005-08-08 11:06:45 +00:00
kaf24@firebug.cl.cam.ac.uk 8cf6cfe286 Fix both Xen and XenLinux to correctly handle 64-bit
time deltas. Good for robustness and future-proofing.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 10:59:22 +00:00
kaf24@firebug.cl.cam.ac.uk 0996bc07b9 1) More testing: include tests which I forgot in previous patch, remove
xs_watch_stress, reduce cycles in "make check" random test.
2) xs_crashme: corrupt random packets going to xenstored, watch it
crash.
3) Handle second input from before we finished output on first one.
4) Fix bug where one-arg operations are given zero args.
5) Fix bug where SET_PERMS fails after blocking on transaction.
6) Fix memory leak when DIRECTORY op given no argument.
7) Fail on first memory leak, for better testing.
8) Fix missing waiting_for_ack initialization for new connections.
9) Ensure all input and output is handled for domains so we don't stall.
10) Fix overrun bug in xs_count_strings on non-nul-terminated strings.
11) New test for clients which write without waiting for response.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2005-08-08 09:13:19 +00:00
kaf24@firebug.cl.cam.ac.uk 9174fdfbfc Fix hw_resend_irq() -- IRQ_PENDING must be propagated back
to evtchn_pending[] bit during irq_enable, or the delayed
callback may never happen.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-08 09:12:22 +00:00
kaf24@firebug.cl.cam.ac.uk 5175be9942 The attached patch adds -Werror to HOSTCFLAGS in Config.mk, makes
xen/tools actually use HOSTCFLAGS (it was already using HOSTCC), and
fixes some gcc-4.0 signedness warnings in xen/tools/symbols.c.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
2005-08-08 08:32:52 +00:00
kaf24@firebug.cl.cam.ac.uk aba8322b54 Attached is a patch to x86_64 xenlinux. It also includes cleanups. We
are also working on SMP + writable pagetable support now.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-08 08:18:38 +00:00
kaf24@firebug.cl.cam.ac.uk a3ec773b26 Writable pagetables for x86/64. Xen portion.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2005-08-08 08:18:06 +00:00
kaf24@firebug.cl.cam.ac.uk ea9fb36c36 Really include renamed console files. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-07 09:13:39 +00:00
kaf24@firebug.cl.cam.ac.uk 2ba532d767 Rename console binaries to xenconsole and xenconsoled.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-07 09:12:55 +00:00
kaf24@firebug.cl.cam.ac.uk 97ef1d5297 this patch fixes X86_64 Xorg Xfree86 issues.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2005-08-07 08:56:57 +00:00
kaf24@firebug.cl.cam.ac.uk bb893a188a Fix perfc_defn.h to allow multiple inclusion. 2005-08-06 15:47:20 +00:00
kaf24@firebug.cl.cam.ac.uk 652bdea7c1 xend prints out some messages when starting, which is annoying. This
patch send those to xend log file instead - people want them always
know where to find them.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-08-06 15:45:41 +00:00
kaf24@firebug.cl.cam.ac.uk 1271b79339 More time-interface fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-06 15:24:22 +00:00
kaf24@firebug.cl.cam.ac.uk ce5f74eea0 Fix xenbus_read() usage in shutdown handler. 2005-08-06 09:54:57 +00:00
kaf24@firebug.cl.cam.ac.uk b07bb957ff - include linux/vmalloc.h for vmalloc
- include grant table includes from common.h rather than blkback.c,
  since both C files use grant tables
- include linux/version.h from block.h (a macro there uses it)
- include asm-xen/hypervisor.h from block.h (virt_to_machine)

Signed-off-by: Matthew Chapman <matthewc@hp.com>
2005-08-06 09:52:01 +00:00
kaf24@firebug.cl.cam.ac.uk a5af5704b2 This patch changes the vcpu-hotplug handler from using control message
over to using xenstore for triggers.  Dropping the control messages also
fixes the issue with not being able to use xm vcpu-hotplug on dom0.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2005-08-06 09:50:51 +00:00
kaf24@firebug.cl.cam.ac.uk 52c8195eb2 This patch changes the probe notifier, per Rusty's suggestion. It
also converts the balloon driver to use the notifier structure, and
removes the root-watch workaround.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-08-06 09:49:22 +00:00
kaf24@firebug.cl.cam.ac.uk 32060bbf97 This patch changes the shutdown driver and xend to use strings instead
of codes for signaling a shutdown request.

Also, we fix the return code for the shutdown notifier, so other
notifiers will get to run ;)

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-08-06 09:48:47 +00:00
kaf24@firebug.cl.cam.ac.uk 18a62c66f0 Fix mach2phys table allocation for 32-bit PAE Xen.
Found by Gerd Knorr.
2005-08-05 15:11:46 +00:00
kaf24@firebug.cl.cam.ac.uk 339bc1ef13 Fix xtime_lock handling to avoid deadlock in sched_clock().
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-05 14:57:43 +00:00
kaf24@firebug.cl.cam.ac.uk 8bfe74175c No need to define errno defined at the top of reboot.c.
err2 is only needed when CONFIG_MAGIC_SYSRQ is defined.

Signed-off-by: Li Xin <xin.b.li@intel.com>
2005-08-05 09:53:04 +00:00
kaf24@firebug.cl.cam.ac.uk a3cbc30d9f xenstored has had a testsuite for some time. This splits the test
targets into "make -s check" (the GNU standard) which is designed to run
in several seconds or less, with only "<dirname>:" and a seried of "."
for output, and "make fullcheck" which is more verbose and complete, and
runs in minutes.

I plan to submit a patch to plumb these tests in at the top level soon,
with the idea of having a "make -s check" which you can reasonable run
every checkin (time make check << time make), and a "make fullcheck"
which you can run after significant changes.

This patch speeds up testing by making tests one single "xs_test"
script, enhancing xs_test with a simple "expect" command.  It also only
runs the "high value" tests under "make check", and leaves the rest for
"make fullcheck".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2005-08-05 09:04:01 +00:00
kaf24@firebug.cl.cam.ac.uk d2f97d17d4 The C interface no longer has a priority arg, but the python interface
still takes one (and just doesn't use it).  Noone uses it anyway, so
nothing should break by taking it away.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2005-08-05 09:02:58 +00:00
kaf24@firebug.cl.cam.ac.uk 04303c4108 Attached is a randomized tester for consoled. It's a patch against
xen-unstable.hg but it doesn't add itself to any of the Makefiles but 
just as a subdirectory of consoled.  There's a README in the directory 
that should be read otherwise you won't be able to do anything useful 
with it :-)

Right now, we can get pretty far before seeing data corruption.  
Previously, we'd see it almost immediately (after ~600 bytes, which is 
the max the control channel can hold before filling up).

It's actual general enough that it could be also used to test network 
traffic corruption but there are certainly better tools for that.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-05 09:02:09 +00:00
kaf24@firebug.cl.cam.ac.uk af976cb9bd Instead of queuing messages when the control channels are full, xcs just
does nothing (see ctrl_interface.c:ctrl_chan_write_request()).

The following patch throttles the rate in which consoled writes data to 
xcs.  With the current values, you get a responsive console but avoid 
data corruption in most scenarios.

I'm able to get pretty far in my regression test with this patch.  With 
higher throttle values I'm able to get even further (but the console 
becomes painfully slow).

I implemented proper control channel queuing in xenctld in VM-Tools and 
it's pretty nasty stuff.  This should prevent corruption for most users 
until we can get rid of xcs.

Regards,

Anthony Liguori

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com
2005-08-05 09:01:30 +00:00
kaf24@firebug.cl.cam.ac.uk 73349217f0 xc_console is probably too chatty about termios failures since ssh
sessions apparently don't have proper term settings.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-05 09:00:50 +00:00
kaf24@firebug.cl.cam.ac.uk fe0b8e6e6e The attached patch:
1. Converts the shutdown driver and xend to use the store instead of
   control messages, 

2. Includes Anthony's xenstore notification code, and

3. Changes xend so that sysrq's are no longer sent as "special case"
   shutdown messages.  Store keys are cheap, so making the sysrq
   delivery less obscure is good.

I think I have made all of the appropriate modifications to Xend, but
it is complex, so I may have missed something.  Comments are welcome.

Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-05 08:59:41 +00:00
kaf24@firebug.cl.cam.ac.uk 1126965540 Attached are
three patches to fix a problem with Xend starting consoled.  consoled 
depends on xenstored to be running and xenstored is started on demand in 
Xend.  The patches change xenstored to manage its own pidfile, and have 
xend start actually start up xenstored.
2005-08-04 18:51:55 +00:00
kaf24@firebug.cl.cam.ac.uk 55b7c09016 Fix my previous patch to the trap-frame creation code
in Xen. I was clobbering an in-use register (AL): use
CH instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-04 17:37:09 +00:00
kaf24@firebug.cl.cam.ac.uk 2245cfc689 Merge 2005-08-04 16:53:30 +00:00
kaf24@firebug.cl.cam.ac.uk c9501438bb Fix event-upcall masking when creating a trap frame
on guest kernel stack. Previously an exception would
clear an already-set mask. 
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-04 16:53:11 +00:00
akw27@arcadians.cl.cam.ac.uk 15c8e89845 Blktap updates: request batching, O_DIRECT/AIO support.
This patch changes the blktap code mapping pages to user space to be
faster and to allow page lookups to foreign mapped pages through linux
to do direct io.  An AIO test driver on this achieves comparable
performance to the in-kernel block-backend.

Signed-off-by: andrew.warfield@cl.cam.ac.uk
2005-08-04 16:35:35 +00:00
akw27@arcadians.cl.cam.ac.uk 8148452c35 Add missing parallax makefile.
Seems to have vanished in the directory shuffle of last month.

Signed-off-by: andrew.warfield@cl.cam.ac.uk
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
2005-08-04 15:02:09 +00:00
akw27@arcadians.cl.cam.ac.uk 5fa8dca989 Fix two syntax errors in frame-and-sect decoding macros.
Both are in the non-grant-tables cases of 
cset ae51fa1d32b23066c4342bbeb5f4dc401b82ea37.

Signed-off-by: andrew.warfield@cl.cam.ac.uk
2005-08-04 14:32:21 +00:00
kaf24@firebug.cl.cam.ac.uk 281d3b20f0 Fix iopl() syscall so that we pass LTP's iopl02 test.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-04 13:13:02 +00:00
kaf24@firebug.cl.cam.ac.uk f6d93de51e The attached patch removes all of the console handling code from Xend
and changes xm to simply exec /usr/libexec/xen/xc_console.

I've done a pretty good amount of testing and this seems to clear up all 
of the Xend console issues in bugzilla.

This is a pretty big change to Xend though with a lot of deleted code so 
I'd appreciate if people more familiar with the Xend codebase could look 
through it critically.

In addition to the patch, the following files are no longer used:

tools/python/xen/util/console_client.py
tools/python/xen/xend/XendConsole.py
tools/python/xen/xend/server/SrvConsole.py
tools/python/xen/xend/server/SrvConsoleDir.py
tools/python/xen/xend/server/console.py

Regards,

Anthony Liguori

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-04 09:00:16 +00:00
kaf24@firebug.cl.cam.ac.uk c025f1530a Here are another couple of places where 8 sectors/page is assumed,
which I missed in my first patch.

Signed-off-by: Matthew Chapman <matthewc@hp.com>
2005-08-04 08:58:18 +00:00
kaf24@firebug.cl.cam.ac.uk 165c0d1741 libxenstore (used to access the daemon) should be licensed under LGPL.
There are several people I am aware of interested in writing non-GPL
tools, and this code is trivial, so they'd just end up writing their
own.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2005-08-04 08:57:37 +00:00