aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Switch the default build to make the -xen kernel, not the -xen0 and -xenU3.0.2-rcemellor@leeni.uk.xensource.com2006-03-241-1/+1
| | | | | | | | | | | | kernels. Distros will be using -xen exclusively, so this change means that developers and users of unstable will be (by default) using the same configuration as the distros. This can be overridden by setting KERNELS="linux-2.6-xen0 linux-2.6-xenU" on the command line. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix bug 515 by adding a global lock around the hotplug scripts in the ↵harry@localhost.localdomain2006-03-241-0/+6
| | | | | | | | | | | | | | | non-udev hotplug case only. There are two possible root causes for 515, both of which are only problems in the non-udev hotplug case because udev uses udevsend which already implements the required serialisation. 1) Script concurrency. 2) Kernel reordering hotplug events. This changeset fixes (1) but not (2). Since (1) is the problem that seems to be happening this is probably OK. A fix for (2) for the hotplug case might be to add extra serialisation using state changes in the store but this would impact all the drivers and the code and extra complexity would be redundant once everyone had moved to udev. This doesn't seem worthwhile unless we actually start to see (2) happening.
* 1) Introduce new exception type XendInvalidDomain that maps to the high levelanthony@rhesis.austin.ibm.com2006-03-243-28/+12
| | | | | | | | | | | | | | | XEND_INVALID_DOMAIN faultType. 2) Fix exception logic in XMLRPCServer 3) Fix TCP server 4) Remove catching of ProtocolError in main.py. ProtocolErrors only occur when there is an exception in the exception handling code which shouldn't ever happen. I've reproduced the error cases described by Ewan with xend_domain_setTargetMemory and once I fixed the exception logic, I get a normal faultType of 1 as would be expected. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Create /var/xen/dump/ during tools installation, or core fileskaf24@firebug.cl.cam.ac.uk2006-03-241-0/+1
| | | | | | | | are not written even if we set (enable-dump yes) in xend-config.sxp. Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
* Detect spurious faults taken in the hypervisor that arekaf24@firebug.cl.cam.ac.uk2006-03-245-42/+178
| | | | | | | | due to writable pagetable logic. Signed-off-by: Keir Fraser <keir@xensource.com>
* This patch is mainly a cleanup of vmx related xentrace code. One minorkaf24@firebug.cl.cam.ac.uk2006-03-245-14/+9
| | | | | | | | | xentrace bug is fixed. Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com> Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
* Update gdb documentationkaf24@firebug.cl.cam.ac.uk2006-03-241-2/+2
| | | | | | | | | * Kernel isn't 2.6.12 anymore * ARCH=xen isn't needed for make anymore Signed-Off-By: Horms <horms@verge.net.au>
* The patch removes old Xenbus files, fixes 0 length mmu_updates table bug kaf24@firebug.cl.cam.ac.uk2006-03-246-1030/+50
| | | | | | | | | (bugfix by Melvin Anderson) and adds missing console.h header file (again spotted by Melvin). Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* Fix mini-os xenbus.kaf24@firebug.cl.cam.ac.uk2006-03-2414-316/+473
| | | | | | | From: Grzegorz Milos <gm281@cam.ac.uk> Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove unnecessary zlib includes.kaf24@firebug.cl.cam.ac.uk2006-03-232-2/+0
| | | | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* on_selected_cpus() must not send IPIs with empty target masks.kaf24@firebug.cl.cam.ac.uk2006-03-231-0/+17
| | | | | | | | This causes send accept errors on Pentium/P6 . Signed-off-by: Keir Fraser <keir@xensource.com>
* Merged.emellor@leeni.uk.xensource.com2006-03-2318-159/+222
|\
| * Remove unused variable.cl349@firebug.cl.cam.ac.uk2006-03-231-2/+0
| | | | | | | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
| * Reduce spin-waiting in Xen serial driver:kaf24@firebug.cl.cam.ac.uk2006-03-234-27/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Split the serial port lock into receiver and transmitter locks. 2. In the ns16550 interrupt, only call the generic serial service routines if there is receive (or transmit) work to do. 3. In the generic transmit ISR, avoid long spin-waits by *trying* to take the transmitter lock and, if that fails, check again whether the transmitter is empty. This will allow us to bail bail quickly if there is a long-term lock holder stuffing lots of bytes. Also, gdbstub should be setting its serial handle in synchronous mode, just for sanity. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Merge hvm_store_cpu_guest_regs() and hvm_store_cpu_guest_ctrl_regs()kaf24@firebug.cl.cam.ac.uk2006-03-237-78/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | into a single function. On VMX, make the function work even when the passed VCPU is not the currently-executing VCPU. This allows gdbserver-xen to get correct cpu register context for VMX guests. Signed-off-by: Keir Fraser <keir@xensource.com> Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
| * Rename generic_page_range as apply_to_page_range, export the symbolkaf24@firebug.cl.cam.ac.uk2006-03-236-52/+60
| | | | | | | | | | | | | | | | | | to GPL modules. Rename pte_page parameter to pmd_page (following the Linux idiom). apply_to_pte_range() should take the pte spinlock. Signed-off-by: Keir Fraser <keir@xensource.com>
* | Remove undefined XFAIL_TESTS variable.emellor@leeni.uk.xensource.com2006-03-231-1/+1
| | | | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Remove undefined XFAIL_TESTS variable.emellor@leeni.uk.xensource.com2006-03-231-1/+1
|/ | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merged.emellor@leeni.uk.xensource.com2006-03-232-5/+9
|\
| * Fix 2 VMX time-related bugs:kaf24@firebug.cl.cam.ac.uk2006-03-232-5/+9
| | | | | | | | | | | | | | | | | | 1) bogomips=0 or a very huge number after booting ia32/ia32e vmx 2) Repeated keys show in Xwindow terminal after one key is pressed Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
* | Added copyright declaration for Christopher Clark, Andrew Tridgell.emellor@leeni.uk.xensource.com2006-03-231-0/+34
|/ | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Use *args inside FAIL and SKIP so that it is possible to call these functionsemellor@leeni.uk.xensource.com2006-03-231-4/+4
| | | | | | | | with multiple arguments, printf style. This is already being done in some cases (causing an exception of course). Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Import the current version of talloc from the Samba 3 source base. This givesemellor@leeni.uk.xensource.com2006-03-234-133/+278
| | | | | | | | | us greater confidence that our talloc implementation is "known good". Remove the OOM handling from consider_message: talloc_set_fail_handler is no longer supported. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merged.emellor@leeni.uk.xensource.com2006-03-232-0/+1
|
* Merged.emellor@leeni.uk.xensource.com2006-03-231-10/+53
|\
| * Enable Windows PAE guest on x86-64. Deals with two issues:kaf24@firebug.cl.cam.ac.uk2006-03-231-10/+53
| | | | | | | | | | | | | | | | | | 1) To handle the situation when PE=1 and PG=0. 2) Windows PAE guest seems to enable PAE first and then enable PG. Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
* | Improve error handling, in particular fixing the ProtocolError that is thrownemellor@leeni.uk.xensource.com2006-03-234-9/+38
| | | | | | | | | | | | | | | | when a domain is specified by the user that does not exist. Added a few error codes -- many more to come, I expect. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Added exception handler for ProtocolError.emellor@leeni.uk.xensource.com2006-03-231-0/+6
| | | | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Added example config entries for xend-tcp-xmlrpc-server andemellor@leeni.uk.xensource.com2006-03-232-4/+8
| | | | | | | | | | | | | | | | xend-unix-xmlrpc-server. Deprecate the SXP-based servers, and disable them by default. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Use the string Error: rather than Xend has generated an internal Fault:.emellor@leeni.uk.xensource.com2006-03-231-1/+1
| | | | | | | | | | | | | | xm-test looks for this. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Removed unused handler parameter from UnixXMLRPCServer interface -- just passemellor@leeni.uk.xensource.com2006-03-232-5/+6
| | | | | | | | | | | | | | | | | | UnixXMLRPCRequestHandler through to TCPXMLRPCServer. Do not log requests -- this fills up xend-debug.log uselessly. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Fix call to send_sysrq.emellor@leeni.uk.xensource.com2006-03-231-1/+1
| | | | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | Use XML-RPC as a transport for Xend instead of S-Expression/HTTP.anthony@rhesis.austin.ibm.com2006-03-2312-510/+314
|/ | | | | | | | | This changeset introduces a new XML-RPC service that runs in Xend and the required changes to have xm use this new service by default. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix a Linux bug in the driver core in regards to the bind sysfs driverkaf24@firebug.cl.cam.ac.uk2006-03-231-0/+14
| | | | | | | | | attribute. I've submitted this to lkml, but it should be included in Xen now for people who will use the pciback late binding capability. Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
* Support late binding of PCI devices to the PCI backend driver inkaf24@firebug.cl.cam.ac.uk2006-03-237-145/+525
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dom0. This allows you to bind devices to the backend driver *after* dom0 has booted. You are no longer required to specify the devices to hide on the kernel command-line. Using the bind/unbind driver attributes (see /sys/bus/pci/drivers/pciback), you can specify which devices that the PCI backend will seize. There are three new driver attributes in that directory: slots - lists all of the PCI slots that the PCI backend will try to seize new_slot - write the name of a slot here (in 0000:00:00.0 format) to have the PCI Backend seize the device in this slot remove_slot - write the name of a slot here to have the PCI Backend no longer try to seize a device in this slot Note that writing to new_slot/remove_slot does not actually change whether the PCI Backend is actually bound to the device in that slot or not. Instead, it tells the PCI backend which slots it should be interested in. The sysfs attributes "bind" and "unbind" (which are common to all drivers, not just the PCI Backend) must be used to actually add or remove a device from the PCI backend driver. Note that the syntax for specifying a device to bind and unbind is very strict (do not append a newline). For Example: # Add a new slot to the PCI Backend's list echo -n 0000:01:04.d > /sys/bus/pci/drivers/pciback/new_slot # Now that the backend is watching for the slot, bind to it echo -n 0000:01:04.d > /sys/bus/pci/drivers/pciback/bind # Unbind a PCI network card from its network driver echo -n 0000:05:02.0 > /sys/bus/pci/drivers/3c905/unbind # And now bind it to the PCI Backend echo -n 0000:05:02.0 > /sys/bus/pci/drivers/pciback/new_slot echo -n 0000:05:02.0 > /sys/bus/pci/drivers/pciback/bind Unfortunately, Linux makes it possible to remove (unbind) a PCI device from the PCI backend while that device is attached to a driver domain. It is also possible to unload the PCI Backend module while a PCI Frontend is attached. DON'T DO EITHER OF THESE ACTIONS. This patch will output warnings if you do try and do these. Be aware that while access to the configuration space of the device has been revoked, the driver domain can still access the I/O resources of the device as they have not been revoked (although I *hope* to explore adding support for this soon). Before unloading the module or unbinding a device, shutdown your driver domain. These patches also convert a few function and variable declarations to static (no sense in polluting the global namespace with local function names) and rename a few structures in drivers/xen/pciback/pci_stub.c. Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
* The PCI Frontend doesn't properly clean-up PCI buses and their deviceskaf24@firebug.cl.cam.ac.uk2006-03-232-13/+28
| | | | | | | | | | | | that are in-use if the PCI Backend goes away. This patch corrects that. This patch also shortens the timeout in drivers/xen/pcifront/pci_op.c (in an attempt to minimize the amount of time spent waiting with interrupts disabled). Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
* SVM patch to fix guest time, including 64bit msr code - allowing 64bitkaf24@firebug.cl.cam.ac.uk2006-03-234-56/+96
| | | | | | | | linux guests to enable APIC (ie. apic=1 now works in guest config file). Signed-off-by: Tom Woller <thomas.woller@amd.com>
* Fix build with crash_debug=y.kaf24@firebug.cl.cam.ac.uk2006-03-231-1/+1
| | | | | | Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
* Update and extend netif transmit/receive flag names.kaf24@firebug.cl.cam.ac.uk2006-03-233-7/+15
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* merge with xen-ia64-unstable.hgkaf24@firebug.cl.cam.ac.uk2006-03-2213-129/+626
|\
| * Paravirtualise the CPUID instruction by forcing emulation with an ↵kaf24@firebug.cl.cam.ac.uk2006-03-2210-45/+511
| | | | | | | | | | | | | | | | | | | | invalid-opcode prefix. This allows to clear feature flags and hide unsupported features from guests. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Clean up netfront. Eliminate some macros in favour of inline functions.kaf24@firebug.cl.cam.ac.uk2006-03-221-43/+52
| | | | | | | | | | | | | | | | Fix allocation of receive batching arrays (should be per interface). Signed-off-by: Keir Fraser <keir@xensource.com>
| * Externally triggered reboot signal executes ctrl_alt_del()kaf24@firebug.cl.cam.ac.uk2006-03-221-24/+8
| | | | | | | | | | | | | | | | rather than calling /sbin/reboot directly. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Replace evtchn macro maze with static inline functions.kaf24@firebug.cl.cam.ac.uk2006-03-221-17/+55
| | | | | | | | | | | | | | | | Todo: could replace current irq_info packed format with a bitfield. Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] build xen_sysfs by defaultawilliam@xenbuild.aw2006-03-224-0/+11
| | | | | | | | | | | | | | | | This works on xen/ia64 too, enable the code Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | merge xen-unstable.hgawilliam@xenbuild.aw2006-03-2253-339/+997
|\|
| * A few cleanups based on comments from Arjan van de Ven.kaf24@firebug.cl.cam.ac.uk2006-03-223-41/+24
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Use shiny new mutexes instead of semaphores where possible in our Linux code.kaf24@firebug.cl.cam.ac.uk2006-03-225-40/+40
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Licensing clarifications in Linux source files:kaf24@firebug.cl.cam.ac.uk2006-03-2239-122/+427
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Make it clear in all dual-licensed files that the license when distributed with Linux is GPLv2. 2. Add MODULE_LICENSE(dual) in a few places. 3. Change many of our EXPORT_SYMBOL() decls to EXPORT_SYMBOL_GPL(). This is the preference of the Linux maintainers, and avoids any trouble down the road if our EXPORT_SYMBOL'ed functions use Linux internal interfaces that are GPL only. Signed-off-by: Keir Fraser <keir@xensource.com>
| * On x86/64 a domU kernel just sits around forever on a panic becausekaf24@firebug.cl.cam.ac.uk2006-03-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | the HV doesn't know it crashed. This patch sends the signal, which allows the kernel to be cleaned up (according to whatever guest.conf rules). It is basically copied and pasted from the i386 branch. From: Don Zickus Signed-off-by: Keir Fraser <keir@xensource.com>