Commit Graph
6083 Commits
Author SHA1 Message Date
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
kaf24@firebug.cl.cam.ac.uk f242fca3d2 Merge. 2005-08-04 08:49:45 +00:00
iap10@freefall.cl.cam.ac.uk ed4eb9df9b Add linux 2.6.12.3 patch
Signed-off-by: ian@xensource.com
2005-08-03 21:17:17 +00:00
kaf24@firebug.cl.cam.ac.uk e8657a7dad Move more drivers to bind_evtchn_to_irqhandler() interface.
The most important ones are all done now.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-03 16:11:32 +00:00
kaf24@firebug.cl.cam.ac.uk 98506e40b1 On x86, Xen does not claim any serial port unless the user
explicitly specifies a 'com1=' or 'com2=' configuration
string. This prevents users from being surprised when Xen
stops domain0 from accessing serial port registers.

On ia64 we still allow serial ports to get automatically
configured and locked down even if no 'com1' is specified
on the command line. This maintains the default preferred
by the IA64 developers.

Also, the method for specifying 'use existing baud rate'
has changed. Instead of specifying com1=0, you must now
specify e.g., com1=auto

Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-03 14:44:19 +00:00
kaf24@firebug.cl.cam.ac.uk 2ca1179da8 Virtual device drivers use new bind_evtchn_to_irqhandler() call
instead of directly interfacing with Linux IRQ subsystem. This
allows them to be used in situations where the IRQ subsystem is
not paravirtualised.
Signed-off-by: Keir Fraser <keir@xensource.com>
2005-08-03 12:51:35 +00:00
kaf24@firebug.cl.cam.ac.uk c999562c6c MErge. 2005-08-03 09:35:38 +00:00
kaf24@firebug.cl.cam.ac.uk f3c3d728ee Merge, 2005-08-03 09:35:16 +00:00
kaf24@firebug.cl.cam.ac.uk 6052a8fee9 The attached trivial patch fixes a spurious gcc-4.0 warning in
xen/arch/x86/mm.c when building the current hg tip.  Due to -Werror,
this breaks builds with gcc-4.0.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
2005-08-03 09:34:37 +00:00
kaf24@firebug.cl.cam.ac.uk d9837657c1 gcc-3.4/ia64 compilation fixes.
The ia64 parts of this patch are already in xen-ia64-unstable.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-03 09:33:09 +00:00
kaf24@firebug.cl.cam.ac.uk baa265234e 1) Make more functions in io.c static
2) Fix memory leak in domain free
3) Fix error path in read (reported by aq)
4) Move reading of buffer limit to tty reconnect so that changes in 
limit take affect more quickly.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2005-08-03 09:32:39 +00:00
kaf24@firebug.cl.cam.ac.uk 970440402e Merge. 2005-08-03 09:27:27 +00:00
kaf24@firebug.cl.cam.ac.uk 00244f3e7b Manual merge. 2005-08-03 09:22:03 +00:00
iap10@freefall.cl.cam.ac.uk 59c6a98fcd Update -xen config file for net grant tables. Default to 'y' since this is the kernel we want to use on the test CD and we want to have grant tables on by default.
Signed-off-by: ian@xensource.com
2005-08-03 09:11:49 +00:00
kaf24@firebug.cl.cam.ac.uk 8ece4e0123 Manula merge. 2005-08-03 09:06:10 +00:00
kaf24@firebug.cl.cam.ac.uk 7894bb2a4a Fix typo in Linux header file. Totally harmless -- the code
was never actually compiled in to a XenLinux kernel.
2005-08-03 09:05:46 +00:00
iap10@freefall.cl.cam.ac.uk 6450409d0b Modify default Linux 2.6 config files to build for PentiumPro instead of Pentium4. No idea how that ended up being the default.
Signed-off-by: ian@xensource.com
2005-08-03 09:05:29 +00:00
iap10@freefall.cl.cam.ac.uk 2304d1d144 Fix automatic toggling of PAE in Linux config files
Signed-off-by: ian@xensource.com
2005-08-03 08:52:28 +00:00
iap10@freefall.cl.cam.ac.uk e0c4ddb396 Since we use configs from dist/install/boot in preference to the default configs, update the PAE auto-switcher to work with these too.
Signed-off-by: ian@xensource.com
2005-08-03 08:25:58 +00:00
smh22@firebug.cl.cam.ac.uk a8498f221a Don't enable PAE by default just yet. 2005-08-03 06:46:53 +00:00
vh249@arcadians.cl.cam.ac.uk b13109ba83 fix netdriver grant table option back to n by default
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-03 00:07:48 +00:00
cl349@firebug.cl.cam.ac.uk 035ceca01c merge? 2005-08-02 23:13:50 +00:00
cl349@firebug.cl.cam.ac.uk 0f3e4de4cb Fix migration for SMP guests with 1 vcpu.
Free/setup timer irq on suspend/restore.
Only tested to localhost.  Also add initial code for >1 vcpu guests.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-08-02 23:13:13 +00:00
vh249@firebug.cl.cam.ac.uk df8fe7794a update x86_64 config files for grant table in netdriver
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2005-08-02 22:57:51 +00:00
djm@kirby.fc.hp.com 5105dbcbf8 Fix CONFIG_VTI build
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
2005-08-02 15:38:45 -07:00
kaf24@firebug.cl.cam.ac.uk fadf487d95 Remove USB front/back from 2.4 build, totally. 2005-08-02 19:32:48 +00:00