aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
Commit message (Collapse)AuthorAgeFilesLines
...
| * [NET] front: There's a small leak on a couple error paths in setup_device().kaf24@firebug.cl.cam.ac.uk2006-06-091-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | While there rearrange the ring setup order slightly to simplify error path since netif_free() will cleanup once ring_ref is valid. And use get_zeroed_page() instead of __get_free_page()/memset(). Handle error if bind_evtchn_to_irqhandler() fails, as bad info->irq value is likely to cause oops later. In create_device(), gnttab_free_grant_references() is accidentally called twice on tx_head during cleanup from failed gnttab_alloc_grant_references() on rx_head, which could corrupt gnttab_free_count. Signed-off-by: Chris Wright <chrisw@sous-sol.org>
| * [LINUX] swiotlb allocates multiple smaller contiguous DMA regions,kaf24@firebug.cl.cam.ac.uk2006-06-081-14/+21
| | | | | | | | | | | | rather than a single big one. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Set up /proc/iomem in a sensibel way to indicatekaf24@firebug.cl.cam.ac.uk2006-06-083-15/+21
| | | | | | | | | | | | | | code & data resources, and a RAM area on domU. From: Gerd Hoffmann <kraxel@suse.de> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Only trigger unhandled irq path if irq is not shared acrosskaf24@firebug.cl.cam.ac.uk2006-06-084-0/+518
| | | | | | | | | | | | multiple guests (another guest may have handled the interrupt). Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Rename hw_resend_irq to allow it to be defined seperately per arch.kaf24@firebug.cl.cam.ac.uk2006-06-074-7/+18
| | | | | | | | | | Signed-off-by Kevin Tian <kevin.tian@intel.com>
| * [LINUX][X86/64] Support IO-port permissions bitmaps (ioperm() syscall).kaf24@firebug.cl.cam.ac.uk2006-06-071-8/+50
| | | | | | | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * x86/64 Linux: destroy entire init memory mapping beyond kernel image.kaf24@firebug.cl.cam.ac.uk2006-06-072-20/+20
| | | | | | | | | | | | Avoids overlap with modules mapping area. Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * Use explicitly-sized types in the dom0_ops and privcmd structures.kaf24@firebug.cl.cam.ac.uk2006-06-062-12/+14
| | | | | | | | | | | | | | | | As discussed previously, the these operations are not performance-sensitive, so the additional cache footprint shouldn't be an issue. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
| * Represent PFNs with their own type, rather than 'unsigned long'.kaf24@firebug.cl.cam.ac.uk2006-06-062-2/+2
| | | | | | | | | | | | ('long' changes size and alignment between 32- and 64-bit ABIs.) Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
| * [NET] front: Turn grant-ref error into a fatal bug. That's the best wekfraser@dhcp93.uk.xensource.com2006-06-061-1/+1
| | | | | | | | | | | | can do until we have a backend driver recovery method. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Add a few comments to the goriest parts of the scatter-gather patch.kaf24@firebug.cl.cam.ac.uk2006-06-051-21/+20
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] front: Transmit SG packets if supportedkaf24@firebug.cl.cam.ac.uk2006-06-051-29/+142
| | | | | | | | | | | | | | | | | | This patch adds scatter-and-gather transmission support to the frontend. This allows the MTU to be raised right now and the potential for TSO in future. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
| * [NET] back: Add SG supportkaf24@firebug.cl.cam.ac.uk2006-06-052-50/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds scatter-and-gather support to the backend. It also advertises this fact through xenbus so that the frontend can detect this and send through SG requests only if it is supported. SG support is required to support skb's larger than one page. This in turn is needed for either jumbo MTU or TSO. One of these is required to bring local networking performance up to a level that is acceptable. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
| * [NET] back: fix synchronisation of access to deallocation buffer ring.kaf24@firebug.cl.cam.ac.uk2006-06-051-1/+7
| | | | | | | | | | | | | | Must ensure ring is written to before producer index is incremented. Bug diagnosed by Ky Srinivasan <ksrinivasan@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Simply shared_info mapping code. Always use a fixmap.kaf24@firebug.cl.cam.ac.uk2006-06-024-32/+10
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX][X86_64] Destroy initial page-table mappings to avoid overlap with ↵kfraser@dhcp93.uk.xensource.com2006-06-021-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modules. The temporary mappings needed to set up the 1:1 mappings must be torn down after use; otherwise they may trigger the WARN_ON() in vmap_pte_range() (namely if the chunk allocated to hold kernel and initial page tables gets close to or exceeds 128Mb, or if a sufficiently high mem= argument causes the static allocations to grow beyond 128Mb, which in either case means these mappings extend into the modules area). Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * A few put_cpu() calls were missed when adding CONFIG_X86_NO_TSS.kaf24@firebug.cl.cam.ac.uk2006-06-021-0/+4
| | | | | | | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * [NET] loopback: Added support for SGkaf24@firebug.cl.cam.ac.uk2006-06-021-0/+2
| | | | | | | | | | | | | | | | | | Just like the standard loopback device, SG support here is innate. So all we need to do is mark it as such and zero the change_mtu method so that the MTU can be changed at will. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
| * Use halt() instead of asm("hlt").kaf24@firebug.cl.cam.ac.uk2006-06-021-1/+1
| | | | | | | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * Add backing support for HDIO_GETGEO ioctl to blkfront.kaf24@firebug.cl.cam.ac.uk2006-06-023-4/+19
| | | | | | | | | | | | Inspired by an earlier patch from Charles Coffing. Signed-Off-By: Jan Beulich <jbeulich@novell.com>
| * [PAE] Fix support for pgdirs above 4GB. Requires an interface change so that ↵kaf24@firebug.cl.cam.ac.uk2006-06-023-5/+7
| | | | | | | | | | | | | | | | | | | | %cr3 is extended to include high-order address bits at bottom of %cr3 value. Guests who understand this interface change publish the fact by setting the option 'PAE=yes[extended-cr3]' in their __xen_guest section. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Build breakage: revert 10247:2fd7f4fb7d1453e4ff418c06961b0bd9fcb71129.kfraser@dhcp93.uk.xensource.com2006-06-021-24/+10
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Fix cpu_possible_map initialisation.kaf24@firebug.cl.cam.ac.uk2006-06-011-3/+2
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX][X86_64] Fix initial memory mapping code.kaf24@firebug.cl.cam.ac.uk2006-06-011-10/+24
| | | | | | | | | | | | | | | | | | | | The temporary mappings needed to set up the 1:1 mappings must be torn down after use; otherwise they may trigger the WARN_ON() in vmap_pte_range() (namely if the chunk allocated to hold kernel and initial page tables gets close to or exceeds 128Mb, or if a sufficiently high mem= argument causes the static allocations to grow beyond 128Mb, which in either case means these mappings extend into the modules area). Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * [LINUX] Converge ia64 versions of xen/drivers Makefiles with general versions.kaf24@firebug.cl.cam.ac.uk2006-06-017-67/+68
| | | | | | | | | | | | | | | | | | This patch converges the ia64-specific and general versions of xen/drivers/Makefile and xen/drivers/core/Makefile, using Kconfig settings instead to control whether specific pieces are built. Signed-off-by: Aron Griffis <aron@hp.com>
* | [IA64] Revert xen-ia64-unstable.hg cset 10237awilliam@xenbuild.aw2006-06-133-668/+0
| | | | | | | | | | | | | | | | back out the change set 10237 which causes domain creation failure. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] Revert xen-ia64-unstable.hg cset 10238awilliam@xenbuild.aw2006-06-134-119/+0
| | | | | | | | | | | | | | | | back out the change set 10238 which causes domU creation failure. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] sparse tree cleanupsawilliam@xenbuild.aw2006-06-0811-41/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here's a first pass at some sparse tree cleanups based on feedback we've gotten on linux-ia64. I haven't taken all of the comments into account yet, this is just a start. Specific changes: - CONFIG_ARCH_XEN is no longer necessary - simple is_running_on_xen() checks can be handled w/o CONFIG_XEN - pulled forward a drivers/xen/Makefile change that broken make clean - changed some comments from C++ style to C - turned HYPERVISOR_ioremap into a macro for !CONFIG_XEN - made hypervisor.h and privop.h include-able for !CONFIG_XEN Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] clean out xen/drivers/patches in the sparse treeawilliam@xenbuild.aw2006-06-086-176/+0
| | | | | | | | | | | | | | | | This is all old, unused code. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] remove xenia64_init.cawilliam@xenbuild.aw2006-06-066-69/+33
| | | | | | | | | | | | | | | | Relocate the few bits left to ia64 specific parts of the tree. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] Vcpu hot-plug supportawilliam@xenbuild.aw2006-06-031-4/+9
| | | | | | | | | | | | | | | | | | Handle SAL return. Handle ptr.i/ptr.d Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | [IA64] cleanup linux-2.6-xen-sparseawilliam@xenbuild.aw2006-06-031-2/+2
| | | | | | | | | | | | Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
* | [IA64] paravirtualize vdsoawilliam@xenbuild.aw2006-06-034-0/+119
| | | | | | | | | | | | | | | | | | | | paravirtualize vdso area. introduce hyperprivop HYPERPRIVOP_RSM_BE and HYPERPRIVOP_GET_PSR. and paravirtualize vdso area using them. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] import linux gate.S, gate.ld.S and patch.cawilliam@xenbuild.aw2006-06-033-0/+668
|/ | | | | | | | | import gate.S, gate.ld.S and patch.c which are needed to paravirtualize vdso area. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* [IA64] fix up a few more warningsawilliam@xenbuild.aw2006-05-312-1/+4
| | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* [IA64] remove linux-2.6-xen-sparse/arch/ia64/xen/xenconsole.cawilliam@xenbuild.aw2006-05-313-21/+8
| | | | | | | | | Inline the content of early_console_setup() to setup.c and remove xenconsole.c Signed-off-by: Aron Griffis <aron@hp.com>
* merge with xen-unstable.hgawilliam@xenbuild.aw2006-05-3113-42/+63
|\
| * Fix ACM hypercall macros (broke the x86/64 and ia64 builds).kfraser@dhcp93.uk.xensource.com2006-05-312-2/+2
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [ACM] Add a hypervisor call macro to the linux kernel; it kaf24@firebug.cl.cam.ac.uk2006-05-313-0/+21
| | | | | | | | | | | | | | | | | | | | completes the alignment of the ACM call interface with the other Xen hypervisor call interfaces. This macro is used to call from the a guest kernel directly into the ACM hypervisor module. Signed-off by: Reiner Sailer <sailer@us.ibm.com> Signed-off by: Bryan D. Payne <bdpayne@us.ibm.com>
| * Fix x86/64 definition of dma_get_cache_alignment().kaf24@firebug.cl.cam.ac.uk2006-05-311-2/+0
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Define halt() and safe_halt() properly for Linux-on-Xen. Remove duplicatedkaf24@firebug.cl.cam.ac.uk2006-05-307-30/+38
| | | | | | | | | | | | code for initial bringup of secondary VCPUs. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [BALLOON] Remove the static lower bound on memory target from balloon driver.kaf24@firebug.cl.cam.ac.uk2006-05-301-6/+0
| | | | | | | | | | | | | | Experimentation an discussion on xen-devel concludes that a dynamic method for determining safe balloon size will be required. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix SMP boot for kernels without CONFIG_HOTPLUG_CPU.kaf24@firebug.cl.cam.ac.uk2006-05-283-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The function cpu_is_allowed() appears that it should return a boolean but in fact returns zero on success and an errno on failure. Thus rename it to the more vague cpu_up_check(), in line with its return value and thge fact it has unspecified side effects. Fix the macro definition of cpu_up_check() when building non-hotplug kernel to return zero rather than one (which always failed secondary cpu bringup!). Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] Add several missing is_running_on_xen().awilliam@xenbuild.aw2006-05-313-16/+22
| | | | | | | | | | | | Signed-off-by Kevin Tian <kevin.tian@intel.com>
* | [IA64] clean up ia64 xen-mkbuildtree-preawilliam@xenbuild.aw2006-05-301-1/+0
| | | | | | | | | | | | | | | | | | xen-mkbuildtree-pre of ia64 clean up. evtchn_ia64.c doesn't exist now. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] use is_running_on_xen()awilliam@xenbuild.aw2006-05-308-36/+35
| | | | | | | | | | | | | | | | | | | | Now xen drivers use is_running_on_xen() to check whether it runs on xen or bare metal. There remains many if (running_on_xen) in ia64 specific codes. This patch replaces running_on_xen with is_running_on_xen() Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] add missing END(xen_bsw1)awilliam@xenbuild.aw2006-05-301-0/+1
| | | | | | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-05-2630-420/+362
|\|
| * Move include/asm-x86_64/e820.h to include/asm-x86_64/mach-xen/asm/e820.hIan.Campbell@xensource.com2006-05-261-0/+0
| | | | | | | | | | | | | | | | | | | | This fixes the native build. Signed-off-by: Ian Campbell <ian.campbell@xensource.com> --HG-- rename : linux-2.6-xen-sparse/include/asm-x86_64/e820.h => linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/e820.h
| * Remove net_driver_util module. Inline the one mac-parsing functionkaf24@firebug.cl.cam.ac.uk2006-05-256-115/+42
| | | | | | | | | | | | | | into the netfront and netback drivers. Take the opportunity to fix the mac-parsing logic. Signed-off-by: Keir Fraser <keir@xensource.com>