aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add XENVER_pagesize hypercall.kaf24@firebug.cl.cam.ac.uk2006-06-271-0/+13
| | | | | | | | | | | | Make xen pagesize available through xm info and sysfs. Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-06-2315-100/+326
|\|
| * [LINUX][TPM] Use min_t/min instead of the #define'd MIN.kaf24@firebug.cl.cam.ac.uk2006-06-211-9/+7
| | | | | | | | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| * [LINUX] Transparent virtualization fixes.kaf24@firebug.cl.cam.ac.uk2006-06-213-2/+9
| | | | | | | | | | Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
| * Add new XENMEM_machphys_mapping to get info about location andkfraser@dhcp93.uk.xensource.com2006-06-204-4/+48
| | | | | | | | | | | | | | sizeof of the mach2phys table default mapping. Use this in Linux to dynamically adapt the mfn_to_pfn() routine to undelrying hypervisor. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Another fix to i386 mfn_to_pfn().kfraser@dhcp93.uk.xensource.com2006-06-201-1/+1
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Fix i386 build -- define max_mapnr in mfn_to_pfn().kfraser@dhcp93.uk.xensource.com2006-06-201-0/+1
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Export machine_to_phys start and end addresses to guests.kfraser@dhcp93.uk.xensource.com2006-06-202-14/+22
| | | | | | | | | | | | | | Use this info in Linux to bounds-check accesses to the m2p table. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Small fixes to changesets 10424 and 10425 (spurious #PF detection).kaf24@firebug.cl.cam.ac.uk2006-06-171-1/+1
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Fix dependencies on CONFIG_PROC_FS. kaf24@firebug.cl.cam.ac.uk2006-06-175-2/+22
| | | | | | | | | | Signed-off-by: Horms <horms@verge.net.au>
| * [LINUX] Add spurious page-fault detection, intended primarilykfraser@dhcp93.uk.xensource.com2006-06-162-4/+101
| | | | | | | | | | | | | | | | | | for spurious write faults on mappings that have been changed from read-only to writable. If a CPU has a stale read-only entry in its TLB, it is allowed to fault on the next write access without re-walking the page table. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Merge with xen-ia64-unstable.hg.kfraser@dhcp93.uk.xensource.com2006-06-161-69/+120
| |\
| | * [LINUX] Use new XENMEM_exchange hypercall (where possible)kfraser@dhcp93.uk.xensource.com2006-06-161-69/+120
| | | | | | | | | | | | | | | | | | | | | to provide watertight implementations that should never crash in ENOMEM situations. Signed-off-by: Keir Fraser <keir@xensource.com>
* | | [IA64] memory exchange: use memory exchangeawilliam@xenbuild.aw2006-06-231-114/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | rewrite __xen_create_contiguous_region() and __xen_destroy_contiguous_region() with XENMEM_exchange hypercall similar to x86. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | | [IA64] memory exchange: ia64 counter part of cs 10353 xen-unstable.hgawilliam@xenbuild.aw2006-06-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA64 counter part of the change set 10353:bd1a0b2bb2d4596227951ad6d36cb4fcc2d00a8e of xen-unstable.hg Only destroy a machine-contiguous memory region if it really is contiguous. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | | [IA64] Allow guest to set the address of shared_info.awilliam@xenbuild.aw2006-06-233-40/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new hypercall: SET_SHARED_INFO_VA. Cleanup of asm-xsi-offsets: do not define absolute address, use a new macro. Cleanup of linux asm-offsets: use a macro for xen mapped regs. xensetup.S: set the shared_info address (disabled if using compatibility). privop.h: May redefined XSI_BASE (not yet enabled for compatibility). Vocabulary coherence: use XMAPPEDREGS_ prefix. Cleanup of xensystem.h Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | | [IA64] build linux kernel without using asm-xsi-offsets.hawilliam@lappy2006-06-207-33/+335
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the relevent information are already exported with arch-ia64.h Use linux asm-offsets.h to write xsi offsets defines. Signed-off-by: Tristan Gingold <tristan.gingold@bull.net> [Removed xen-mkbuildtree-post/-pre] Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | | [IA64] fix mfn_to_local_pfn() for dma contextawilliam@xenbuild.aw2006-06-201-1/+1
|/ / | | | | | | | | | | | | | | | | Thanks to Kevin for tracking down this problem. This is a temporary solution until we come up with something better for ia64. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-06-161-0/+1
|\|
| * [LINUX] Export new gnttab_cancel_free_callback() to modules.kaf24@firebug.cl.cam.ac.uk2006-06-161-0/+1
| | | | | | | | | | Signed-off-by: Charles Arnold <carnold@novell.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-06-1515-106/+1813
|\|
| * [LINUX][PAE] Fix e820 setup for PAE guests: preserve high-order bits of max_pfn.kaf24@firebug.cl.cam.ac.uk2006-06-151-2/+2
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Network buffers do not need to be multi-page contiguouskaf24@firebug.cl.cam.ac.uk2006-06-151-2/+9
| | | | | | | | | | | | | | for unprivileged domains (in any case, can fall back to swiotlb). On non-privileged domain of Xen/IA64, this caused some trouble. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * [LINUX] Only destroy a machine-contiguous memory region ifkaf24@firebug.cl.cam.ac.uk2006-06-151-1/+2
| | | | | | | | | | | | it really is contiguous (e.g., create_contiguous did not fail). Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX][PAE] More fixes to pgd allocation. Since allocating pmdskaf24@firebug.cl.cam.ac.uk2006-06-141-48/+73
| | | | | | | | | | | | | | | | | | can sleep, we could race save/restore and end up with stale machine addresses stores in pgd entries. Avoid this by remembering virtuall addresses and translating to machine addresses all at the end and protected by the pgd_lock. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] front: Discard packets in tx ring rather than attempting retransmitkaf24@firebug.cl.cam.ac.uk2006-06-141-45/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when reconnecting to backend driver (e.g., after save/restore or migrate). Two main reasons for this: 1. The retransmit code is broken for fragmented packets. It would need a rewrite to cope with the new scatter-gather format. 2. We will drop packets anyway, in both directions (e.g., takes some time for received packets to be redirected to new virtual interface; also further transmitted packets from the network stack are dropped after we call netif_carrier_off(), so even if we retransmite what's already in the ring it is likely that some subsequent packets will already be lost). If this causes downtimes that are too long (particularly for live relocation) then the whole strategy for buffering packets while the frontend-backend connection is severed needs to be considered. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX][PAE] Improve allocation strategy when PAE pgdirs must be below 4GB.kaf24@firebug.cl.cam.ac.uk2006-06-142-16/+37
| | | | | | | | | | | | | | | | | | | | | | | | Moving the re-allocation to low memory into pgd_alloc() has several advantages: 1. Avoids race with save/restore where pgdir may end up above 4GB after save/restore. 2. If pgdir cannot be re-allocated we can return failure to the caller rather than BUG(). 3. Slightly reduces diff against native Linux code. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX][BLK] front: More care over device teardown.kaf24@firebug.cl.cam.ac.uk2006-06-143-1/+34
| | | | | | | | | | | | | | | | | | 1. We must ensure gnttab callbacks are disabled and all work flushed before tearing down device state. A new gnttab interface call is added for this purpose. 2. blkif_free() must check for a request_queue before deref'ing it. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Eliminates a deadlock and reduce (sometimes significantly) the timekaf24@firebug.cl.cam.ac.uk2006-06-137-9/+1653
| | | | | | | | | | | | | | interrupts are off during context switch. Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * [LINUX] A better way to stop blkdev request handling in blkfrontkaf24@firebug.cl.cam.ac.uk2006-06-131-2/+2
| | | | | | | | | | | | driver. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Fix blkfront driver to check connection status to backend inkfraser@dhcp93.uk.xensource.com2006-06-131-5/+7
| | | | | | | | | | | | all critical circumstances. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Export some tlb-flush functions to modules, which arekfraser@dhcp93.uk.xensource.com2006-06-131-0/+2
| | | | | | | | | | | | directly accessible via macros in tlbflush.h. Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] work around for skbuff_ctor() on non-privileged domainawilliam@xenbuild.aw2006-06-151-1/+15
| | | | | | | | | | | | | | | | | | populate physmap/increase reservation hypercall fail with extent order > 0 on non-privileged domain. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] fix garbage in irq_ia64.c kernel messageawilliam@xenbuild.aw2006-06-151-4/+5
| | | | | | | | | | | | Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | [IA64] Remove Makefile entry for xenia64_initawilliam@xenbuild.aw2006-06-131-1/+0
| | | | | | | | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-06-1368-2076/+1551
|\ \
| * | [IA64] Define mfn_to_local_pfn()awilliam@xenbuild.aw2006-06-131-0/+10
| |/ | | | | | | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
| * [LINUX] Correctly return the results of {event_channel_op,physdev_op}_compatIan.Campbell@xensource.com2006-06-132-0/+4
| | | | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [LINUX] Fix code indentation in Linux drivers.kfraser@dhcp93.uk.xensource.com2006-06-1218-114/+115
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix race in device resume path - need to ensure we add the watch only shand@chelmsford.uk.xensource.com2006-06-122-28/+15
| | | | | | | | | | | | | | | | after the device-specific resume code has run. Also removed some unused / usless code from netfront.c. Signed-off-by: Steven Hand <steven@xensource.com>
| * [LINUX] Fix interaction between idle loop and RCU subsystem.kaf24@firebug.cl.cam.ac.uk2006-06-121-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | There is a problem with the current implementation of stop_hz_timer in arch/i386/kernel/time-xen.c where the hz timer can be stopped on a CPU which has RCU callbacks pending. This patch backports a new RCU API created to fix this problem for the s390 implementation of stop_hz_timer and also updates the time-xen.c implementation of stop_hz_timer to call the new API. Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
| * [LINUX] Clean up unused variable in mm/memory.c.kaf24@firebug.cl.cam.ac.uk2006-06-121-2/+0
| | | | | | | | | | Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
| * [LINUX] Fix IRQ SMP affinity logic for event channels.kaf24@firebug.cl.cam.ac.uk2006-06-111-30/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic now mimics native x86 behaviour: a request to change affinity via /proc is held until the next interrupt on that event channel. So /proc/irq/n/smp_affinity may not change immediately! Other notes: 1. CPU-specific interrupts silently ignore requests to change affinity. For example, resched0, timer0, callfunc0, ... 2. Reading smp_affinity always returns a cpumask containing a single cpu. An event channel can only be bound to a single cpu at a time. Neither Xen nor XenLinux implement IRQ balancing: requires a user-space balancing daemon. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Remove the only use of evtchn_upcall_mask in common code.kaf24@firebug.cl.cam.ac.uk2006-06-101-4/+3
| | | | | | | | | | | | Replace with an assertion of irq_disabled(). Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Simplify /proc/iomem initialisation -- no need to fake akaf24@firebug.cl.cam.ac.uk2006-06-092-15/+6
| | | | | | | | | | | | domU memory map. The main e820 map already terminates at max_pfn. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX][X86/64] Initialise pages outside initial allocation so thatkaf24@firebug.cl.cam.ac.uk2006-06-091-0/+7
| | | | | | | | | | | | | | they are picked up by the balloon driver. From: Jan Beulich Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX][XENBUS] replace xenbus_transaction_t with an opaque transaction ID.kaf24@firebug.cl.cam.ac.uk2006-06-0916-83/+87
| | | | | | | | | | | | | | | | | | | | | | xenbus_transaction_t -> struct xenbus_transaction, which just contains a single u32. Also renamed XBT_NULL to XBT_NIL to emphasize that it isn't a NULL pointer, but a NIL transaction ID. Compile and boot tested. Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> [chrisw: updated for xen-unstable from patchqueue] Signed-off-by: Chris Wright <chrisw@sous-sol.org>
| * [LINUX][XENBUS] Drop (struct xenbus_device)->data, and simply use ↵kaf24@firebug.cl.cam.ac.uk2006-06-099-43/+42
| | | | | | | | | | | | | | | | | | | | | | | | ->dev.driver_data instead, since that's what it is there for. Similar to patch in patchqueue started by Jeremy, and expanded by me to include all relevant drivers in xen-unstable. Cc: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
| * [LINUX][BLKTAP] This code doesn't compile, is marked as DANGEROUS, andkaf24@firebug.cl.cam.ac.uk2006-06-099-1400/+0
| | | | | | | | | | | | | | | | is said to be removed when block drivers use grant tables. So let's remove it. Signed-off-by: Chris Wright <chrisw@sous-sol.org>
| * [LINUX] Use structs not typedefs, remove trailing whitespaces, place symbolkaf24@firebug.cl.cam.ac.uk2006-06-091-95/+61
| | | | | | | | | | | | | | | | EXPORTs with functions, order includes, eliminate unsed macros, don't initialize static data to NULL, etc. Cleanups from patchqueue. Signed-off-by: Chris Wright <chrisw@sous-sol.org>