aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Handle failure to register the xen store event channel instead of3.0.2-branchedIan.Campbell@xensource.com2006-04-032-21/+26
| | | | | | | | | | | | just not initialising xenbus/store when the supervisor_mode_kernel feature flag is enabled. When initialising grant tables only -ENOSYS is a valid reason to fail so BUG_ON anything else like we did prior to changeset 9498. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* Make checksum handling in the virtual network drivers more robust.kaf24@firebug.cl.cam.ac.uk2006-04-027-32/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Largely this involves making the logic symmetrical: for example, not only should netfront be able to tell netback that a packet has an empty protocol checksum field, but the reverse must also be true. Another change is that the drivers only advertise IP checksum offload functionality. There is currently no information propagated across the device channel about the offset of the protocol-specific checksum field. Therefore it is not safe to defer checksum calculation for protocols the remote end may not understand -- it will end up dropping having to drop the packet. Yet another change is to allow netback to disable tx checksum offload, just as we already could for netfront. Currently there is no support for disabling rx checksum offload -- that would seem to require some way of propagating the checksum-offload advertisement (or lack of it) across the device channel, as it really ought to be the transmitter that acts on it. Thanks to Ian Jackson for pointing out some of the problems with our checksum-offload handling. Several of the changes here are due to his comments. Signed-off-by: Keir Fraser <keir@xensource.com>
* Enable HYPERVISOR_sched_op() and HYPERVISOR_sched_opt_compat() for ia64.kaf24@firebug.cl.cam.ac.uk2006-04-021-2/+12
| | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* Define __XEN_INTERFACE_VERSION__ when building Xen.kaf24@firebug.cl.cam.ac.uk2006-04-021-1/+11
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* This patch fixes several issues related to vmxassist:kaf24@firebug.cl.cam.ac.uk2006-04-015-46/+63
| | | | | | | | | | 1) AP bring up; 2) RHEL4 IA32e installation; 3) SLES10 IA32e installation; Signed-off-by: Xin Li <xin.b.li@intel.com>
* Rename sched_op->sched_op_compat and sched_op_new->sched_opkaf24@firebug.cl.cam.ac.uk2006-04-0110-31/+36
| | | | | | | | after Christian's interface cleanup. Signed-off-by: Keir Fraser <keir@xensource.com>
* When dom0 fails to balloon enough memory to allow a new domain to start,kaf24@firebug.cl.cam.ac.uk2006-04-011-1/+1
| | | | | | | | | | an exception is thrown. The test that decides which exception to throw is backwards, resulting in strange error messages. The attached patch fixes the problem. Signed-off-by: Charles Coffing <ccoffing@novell.com>
* Changed deprecated "set-vcpus" to "vcpu-set" in the xm man page.kaf24@firebug.cl.cam.ac.uk2006-04-011-3/+3
| | | | | | Signed-off-by: Charles Coffing <ccoffing@novell.com>
* Fix makefiles for hvmloader and vmxassist for FC5 on x86_64kaf24@firebug.cl.cam.ac.uk2006-04-012-4/+4
| | | | | | | | | | | | | | | | | systems. In FC5, gcc has issues with the command lines used to build hvmloader and vmxassist. Basically, the compiler doesn't like the combination of -m64 and -m32. As these are 32 bit apps, and intended to be, take a modified approach and simply define XEN_TARGET_ARCH for 32 bits. This cleans up the command line and builds the images correctly. From: Ben Thomas <ben@virtualiron.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [SVM] Do not update seg.base in realmode while obtaining the iokaf24@firebug.cl.cam.ac.uk2006-04-011-5/+1
| | | | | | | | addr for ins/outs. Signed-off-by: Tom Woller <thomas.woller@amd.com>
* Minor minios traps.c fix for x86/64.kaf24@firebug.cl.cam.ac.uk2006-04-011-28/+25
| | | | | | | Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
* [IA64] Include features header in xenbus_probe and build features.ckaf24@firebug.cl.cam.ac.uk2006-04-012-1/+2
| | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* Add new boot parameter 'lowmem_emergency_pool' which createskaf24@firebug.cl.cam.ac.uk2006-04-011-1/+33
| | | | | | | | | | | | | | | | | | | | an emergency pool of pages below 4GB (i.e., in Xen's DMA pool) which will ever be used to satisfy normal allocation requests. This is particularly useful in an i386 PAE environment to ensure that pages will always be available for allocation as page-table base directories. Usage, for example (to reserve 16MB): lowmem_emergency_pool=16M In a PAE environment, each reserved megabyte guarantees you should be able to create up to 256 processes (counted across all guests). 16MB means you're good for 4096 processes. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix do_IRQ high bit masking.cl349@firebug.cl.cam.ac.uk2006-03-316-8/+115
| | | | | | | | | Instead of setting the highest bit (which isn't easily done on native x86_64), negate the interrupt vector stored in orig_{e,r}ax. Also add patch for native build. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Plumb network vif credit-based rate limiting thorugh xenbuskaf24@firebug.cl.cam.ac.uk2006-03-315-25/+130
| | | | | | | | | | | | | | | | and xend into xm guest config files. A new vif parameter 'rate' is supported, with an optional time window paremeter for specifying granularity of credit replenishment. The default window is 50ms. For example: 'rate=10Mb/s' 'rate=250KB/s' 'rate=1MB/s@20ms' From: Chris Clark <christopher.w.clark@gmail.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Currently, xm & xend allow an XAUTHORITY to be specified in the configkaf24@firebug.cl.cam.ac.uk2006-03-311-1/+8
| | | | | | | | | | | | | | | | | | | | | file. If that is not specified, then xm will pass the XAUTHORITY environment variable back to xend instead. This is not sufficient, since it is possible that XAUTHORITY is not set at all. This doesn't cause a problem for most X apps, because xlib will use the fall-back of $HOME/.Xauthority. But the viewer is started from xend, which almost certainly doesn't have a reasonable HOME variable. We fix this by always passing some value for XAUTHORITY. In order of preference, that value is: 1. Use the value from the config file, if specified. 2. Use the value from the XAUTHORITY env variable, if set. 3. Use $HOME/.Xauthority, if HOME is set. 4. Look up the user's home directory via getpwuid, and append "/.Xauthority" Signed-off-by: Charles Coffing <ccoffing@novell.com>
* Various softirq cleanups:kaf24@firebug.cl.cam.ac.uk2006-03-313-11/+8
| | | | | | | | | | | | | | 1. Make __softirq_pending a long, since PPC borrows the file hardirq.h from us and they only do atomic ops on longs. 2. do_softirq() explicitly takes a void param list. 3. Remove idle_timestamp field from irq_cpustat. It's unused and lets us simplify the idle loop a little bit. Part 1 based on a patch from Hollis Blanchard at IBM. Signed-off-by: Keir Fraser <keir@xensource.com>
* Disable xen bus and grant tables when supervisor_mode_kernel is enabled.Ian.Campbell@xensource.com2006-03-312-2/+14
| | | | | | | | | | | | | | Neither of these features are useful/available in this mode since only a single domain is supported. Do not attempt to initialise xen bus when supervisor_mode_kernel is enabled. Do not BUG_ON() failure to setup grant tables, future versions of supervisor_mode_kernel may return -ENOSYS here. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* See panic messages before the post message processing.kaf24@firebug.cl.cam.ac.uk2006-03-311-0/+1
| | | | | | Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
* Enable the setting and trapping of breakpoints for hvm guest.kaf24@firebug.cl.cam.ac.uk2006-03-314-2/+50
| | | | | | | | Catch Ctrl-C for gdbserver and let gdb break from continue command. Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
* The ia64 build doesn't yet include drivers/xen/Kconfig directly so wekaf24@firebug.cl.cam.ac.uk2006-03-311-0/+5
| | | | | | | | | need to replicate the new XEN_INTERFACE_VERSION option in the arch Kconfig. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* Merged.emellor@leeni.uk.xensource.com2006-03-3116-100/+234
|\
| * Remove __HYPERVISOR_sched_op_new in favour of a header file interface ↵cl349@firebug.cl.cam.ac.uk2006-03-3016-98/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | version number system. Define interface version in Kconfig and define it through CPPFLAGS for C and assembly file compilation. Add HYPERVISOR_{yield,block,shutdown} to remove direct use of sched_op from guest code. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
| * Change how we add the include asm override to CPPFLAGS.cl349@firebug.cl.cam.ac.uk2006-03-302-2/+2
| | | | | | | | | | | | | | | | Add to CPPFLAGS instead of entirely redefining it. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* | Remove the transaction parameter from xenbus_switch_state and move the stateemellor@leeni.uk.xensource.com2006-03-3110-54/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | switch out of a transaction, in the few cases where it is inside one. In order to behave properly, it is necessary for a driver to know its own xenbus state (see changeset 9469:b3cb19d2b07f, for example). This value is stored as xenbus_device.state and updated by xenbus_switch_state. If xenbus_switch_state occurs within a transaction, then there is a possibility that the transaction would be aborted, leaving the state field dangerously out of sync with the value currently in the store. This fixes recent problems seen whereby bringing multiple devices up at the same time results in some devices not coming up (often all of the even-numbered ones, because of the pattern of transaction conflict). Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Better formatting of error messages for xmlrpclib.Faults, matching similar codeemellor@leeni.uk.xensource.com2006-03-311-0/+13
| | | | | | | | | | | | | | in main.py. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Print error messages to stderr. Remove unused handle_xend_error.emellor@leeni.uk.xensource.com2006-03-311-14/+3
| | | | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Set the permissions correctly on the XML-RPC UDP socket, so that non-root usersemellor@leeni.uk.xensource.com2006-03-312-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | cannot use the socket. This closes a security hole, and fixes the intermittent failure of xm-test/06_list_nonroot.test. c.f. xen-unstable changeset 9205:faa1eb1621b9 (same bug, different socket). Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Further attempts to recover from a corrupt store, this one triggered when aemellor@leeni.uk.xensource.com2006-03-311-0/+1
| | | | | | | | | | | | | | tdb_store fails. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Don't use abbreviated ip subcommands -- these are not accepted by iproute2.emellor@leeni.uk.xensource.com2006-03-312-3/+10
|/ | | | | | | Closes bug #478. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merged.emellor@leeni.uk.xensource.com2006-03-3016-173/+190
|\
| * The attached trivial patch fixes cases where a block device is mountedkaf24@firebug.cl.cam.ac.uk2006-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | read-only in domain 0, but still fails to be shared with a domU, because it is mis-identified as being mounted writable. (On SUSE, CDs and DVDs are auto-mounted not with merely permissions "ro", but "ro,nosuid,nodev", hence the mis-identification.) Signed-off-by: Charles Coffing <ccoffing@novell.com>
| * Fix comment.smh22@firebug.cl.cam.ac.uk2006-03-301-2/+2
| | | | | | | | | | Signed-off-by: Steven Hand <steven@xensource.com>
| * More fixes to gdbserver for HVM guest debugging. Also fixkaf24@firebug.cl.cam.ac.uk2006-03-3010-166/+180
| | | | | | | | | | | | | | | | | | | | writing back of register state for HVM guests. From: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * Use AFLAGS for assembly files so we can "+=" more flags.kaf24@firebug.cl.cam.ac.uk2006-03-303-3/+6
| | | | | | | | | | | | | | | | From: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * Include the E7520 (e.g., Dell 1850) irqbalance quirk fix even whenkaf24@firebug.cl.cam.ac.uk2006-03-301-1/+1
| | | | | | | | | | | | | | | | building a non-SMP kernel. The underlying hypervisor may still be SMP. Signed-off-by: Keir Fraser <keir@xensource.com>
* | Added medium-length (around 20 minute run-time) test group.emellor@leeni.uk.xensource.com2006-03-302-1/+28
|/ | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merged.emellor@leeni.uk.xensource.com2006-03-301-12/+24
|\
| * Fix xenconsoled when sending lots of console data to a domU.kaf24@firebug.cl.cam.ac.uk2006-03-301-12/+24
| | | | | | | | | | | | | | | | Fixes bug #477. Signed-off-by: Keir Fraser <keir@xensource.com>
* | Check the return value of domain_lookup_by_name_or_id_nr for None (i.e. noemellor@leeni.uk.xensource.com2006-03-301-5/+26
| | | | | | | | | | | | | | | | | | | | | | such domain) inside each of the public-facing functions. This fixes the Internal errors seen when specifying an invalid domain. domain_pincpu takes cpumap, which is a list, not a string, so there's no need to try and split it up. Fixes xm vcpu-pin. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Fix the ProtocolError seen when the server throws an exception and runningemellor@leeni.uk.xensource.com2006-03-301-6/+9
|/ | | | | | | | | | under Python 2.3; traceback.format_exc was introduced in 2.4, so we can't use it. Added some exception logging. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Same panic() behaviour as native Linux when running as domain 0.kaf24@firebug.cl.cam.ac.uk2006-03-301-2/+2
| | | | | | | | That is, no reboot: just sit there and flash the keyboard LEDs. Signed-off-by: Keir Fraser <keir@xensource.com>
* Xen waits 5 seconds to reboot when domain 0 crashes, givingkaf24@firebug.cl.cam.ac.uk2006-03-301-0/+8
| | | | | | | | | | time to read crash messages. From: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Keir Fraser <keir@xensource.com>
* Revert accidental commit.emellor@leeni.uk.xensource.com2006-03-294-53/+0
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merged.emellor@leeni.uk.xensource.com2006-03-294-0/+53
|
* Fix save/restore on 64-bit. smh22@firebug.cl.cam.ac.uk2006-03-291-1/+1
| | | | | Signed-off-by: Steven Hand <steven@xensource.com>
* Fix save/restore bug; further rationalization of xenbus state machine smh22@firebug.cl.cam.ac.uk2006-03-291-5/+10
| | | | | | | logic deferred until post 3.0.2. Signed-off-by: Steven Hand <steven@xensource.com>
* Free shadows of any pages which are released by a domain back to Xen.cl349@firebug.cl.cam.ac.uk2006-03-291-0/+3
| | | | | | | | This should fix the "Assertion '! IS_INVALID_M2P_ENTRY(gpfn)'"-crash in free_shadow_page on domain destruction. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Re-arrange code for followup patch and remove extra shadow_lock in function ↵cl349@firebug.cl.cam.ac.uk2006-03-291-44/+42
| | | | | | | which is only called with the lock already held. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Compute actual baud rate from UART divisor latch contentskaf24@firebug.cl.cam.ac.uk2006-03-291-4/+17
| | | | | | | | | when no baud rate is specified. Generalise the divisor calculation based on external clock rate. Signed-off-by: Keir Fraser <keir@xensource.com>