aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
Commit message (Collapse)AuthorAgeFilesLines
...
| * Introduce XEN_IA64_DOM0_NON_VP to simplify some ifdefskaf24@firebug.cl.cam.ac.uk2006-04-304-5/+12
| | | | | | | | | | | | | | | | from defined(__ia64__) && !defined(CONFIG_XEN_IA64_DOM0_VP) to defined(XEN_IA64_DOM0_NON_VP). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Balloon driver: when in autotranslate mode, pages are returnedkaf24@firebug.cl.cam.ac.uk2006-04-301-3/+16
| | | | | | | | | | | | | | | | to xen without traversing init_mm. This change is needed for xen/ia64 vp model. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Fix blktap "bad page state" bug.kaf24@firebug.cl.cam.ac.uk2006-04-301-3/+8
| | | | | | | | | | | | Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk> Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * balloon_alloc_empty_page_range() should set the reference countkaf24@firebug.cl.cam.ac.uk2006-04-301-2/+11
| | | | | | | | | | | | | | on every page structure before returning. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Define new event-channel and physdev hypercalls with a more extensiblekaf24@firebug.cl.cam.ac.uk2006-04-3028-265/+302
| | | | | | | | | | | | | | | | | | | | | | | | interface (the legacy hypercalls would break if subcommands with large argument structures were added, as it would grow the size of the union of all argument structures). Also, based on a patch from Kevin Tian, add a new physdev op to signal EOI for a particular irq. Signed-off-by: Keir Fraser <keir@xensource.com>
| * xen/ia64 with dom0 vp model doesn't need the blkbkack ia64 workaroundskaf24@firebug.cl.cam.ac.uk2006-04-282-3/+3
| | | | | | | | | | | | | | | | | | any more. xen/ia64 dom0 vp model is a big change so that xen/ia64 with the old model (P=M) still remains as the compile option. Hopefully the work around will be eliminated in the future completely. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Makefile changes for xen/ia64 with dom0 vp model needs.kaf24@firebug.cl.cam.ac.uk2006-04-281-1/+1
| | | | | | | | | | | | | | xenLinux/ia64 with dom0 vp model needs arch/i386/kernel/swiotlb.o Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * xen/ia64 with dom0 vp model needs direct_remap_pfn_range() to be calledkaf24@firebug.cl.cam.ac.uk2006-04-281-6/+6
| | | | | | | | | | | | | | for IOCTL_PRIVCMD_MMAPBATCH. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Recent GUEST_HANDLE related cset broke ia64 compilation.kaf24@firebug.cl.cam.ac.uk2006-04-281-2/+3
| | | | | | | | | | Signed-off-by Kevin Tian <kevin.tian@intel.com>
| * Rename {SG}ET_XEN_GUEST_HANDLE to {sg}et_Xen_guest_handle, as theykaf24@firebug.cl.cam.ac.uk2006-04-289-15/+14
| | | | | | | | | | | | | | are function macros rather than define/declare macros. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Relax BUG_ON() state ment in increase_reservation() in balloon.c.kaf24@firebug.cl.cam.ac.uk2006-04-281-1/+2
| | | | | | | | | | | | | | | | | | When xen_feature(XENFEAT_auto_translated_physmap) = 1, phys_to_machine_mapping_valid(pfn) always returns true. Relaxed BUG_ON() for xen_feature(XENFEAT_auto_translated_physmap) = 1 case. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Bump Xen interface version number to 0x00030201 for newkaf24@firebug.cl.cam.ac.uk2006-04-272-2/+2
| | | | | | | | | | | | structural guest handles. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Wrap all GUEST_HANDLEs in structures, and define SET/GET macros to access themkaf24@firebug.cl.cam.ac.uk2006-04-279-14/+15
| | | | | | | | | | | | | | in Linux and libxc. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
| * This patch adds the ability to have restricted write access to somekaf24@firebug.cl.cam.ac.uk2006-04-2711-72/+435
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the structures on the capability list. Specifically, this patch adds support for reading data through the Vital Product Data capability structure and for manipulating power management of a card. A driver domain is not allowed to enable Power Management Events (the PME trace may be shared across devices in many domains), but it can put a device in its control to sleep or query it for power usage statistics. This code could possibly be expanded in the future to add support for AGP, PCI-X, and MSI/MSIX (all of which are controlled through structures on the capability list). This patch also corrects some formatting issues in the PCI backend and adds some comments to the code regarding permissive mode. Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
| * Just allocate unbound irq only from dynirq range, sincekaf24@firebug.cl.cam.ac.uk2006-04-271-1/+2
| | | | | | | | | | | | | | | | pirq range is reserved for physical devices. This saves unnecessary checks on pirq range. Signed-off-by Kevin Tian <kevin.tian@intel.com>
* | [IA64] RSE incomplete cfmawilliam@xenbuild.aw2006-05-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In theory, after Guest executes "cover", incomplete frame changes to complete frame. So Guest should set INCOMPL to 0 just after "cover". At least before guest psr.ic and psr.i are turned on. Previously, only when Guest executes "rfi", INCOMPL is set to 0. The window between "cover" and "rfi" causes trouble in below scenario. 1. Application A calls system call. 2. In OS breaks handler entry, INCOMPL is 0. Due to its system call, Linux kernel doesn't execute "cover". 3. Before returning to Application A, schedule happens, Application B begins to run. 4. A TLB miss happens on the context of B, this may make INCOMPL 1, before Returning to B, (that means "rfi" is not executed, and INCOMPL is still 1) schedule happens again. A resumes to run with INCOMPL 1 (this is incorrect now). 5. As mentioned before, this is system call, "cover" is executed in ia64_leave_kernel path. Because INCOMPL is 1, this "cover" is not actually executed, but this "cover" should be executed. 5. Thus application A's frame is destroyed. Issue appears. From: Anthony Xu <anthony.xu@intel.com> Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] cleanup hyperprivop definitionsawilliam@xenbuild.aw2006-05-081-25/+26
|/ | | | | | | | Move hyperprivop definitions into arch-ia64.h Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* merge with xen-unstable.hgawilliam@xenbuild.aw2006-04-263-2/+14
|\
| * Make xen_features and force_evtchn_callback() non-GPLkaf24@firebug.cl.cam.ac.uk2006-04-262-2/+4
| | | | | | | | | | | | | | | | symbols as they are used in a variety of ubiquitous kernel macros. Signed-off-by: Keir Fraser <keir@xensource.com>
| * xenLinux/ia64 has its own dma_map_page(), dma_unmap_page(), and it needsyamahata@valinux.co.jp2006-04-261-0/+10
| | | | | | | | | | | | | | | | | | | | | | linux default implementations of dma_declare_coheremnt_memory() and its families which is defined in include/linux/dma-mapping.h. So those in pci-dma-xen.c are unnecessary. #ifdef out them. PATCHNAME: pci-dma-xen-common Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-04-2525-225/+365
|\|
| * Need a little more serialisation in pciback_do_op().kaf24@firebug.cl.cam.ac.uk2006-04-251-4/+5
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Some of the Linux PCI functions called by the virtual configurationkaf24@firebug.cl.cam.ac.uk2006-04-253-9/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | space handlers were making calls into ACPI code which uses semaphores. Since semaphores can not be locked while atomic (because they could sleep), I changed the way the PCI backend responds to requests from the frontend. Previously, the virtual configuration space handlers ran in the same context as the event channel interrupt handler (which was often atomic if not always atomic). Now the interrupt handler schedules a callback function (a bottom half) in the system work queue (keventd) that will get called in process context at a slightly later time. This allows the handlers in the virtual configuration space to run in process context and to call any core PCI function regardless of whether it will sleep or not. Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
| * Fix the -xen, -xen0 builds.kaf24@firebug.cl.cam.ac.uk2006-04-251-1/+1
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Change the xenbus_map_ring_valloc() interface and implementation sokaf24@firebug.cl.cam.ac.uk2006-04-254-36/+21
| | | | | | | | | | | | that it is buildable as a module. Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * Add a return statement to the non-Xen version of skb_checksum_setup.kaf24@firebug.cl.cam.ac.uk2006-04-251-1/+1
| | | | | | | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * The Xen checksum offload feature attempts to insert a TCP/UDPkaf24@firebug.cl.cam.ac.uk2006-04-221-32/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | checksums into already encrypted packets (esp4) in dom0. Obviously, it is not possible to insert a checksum into an already encrypted packet, so this patch inserts the checksum prior to encrypting packets in net/ipv4/xfrm4_output.c. To do this cleanly, the TCP/UDP header pointers need to be pointed to the correct spot, so this functionality has been abstracted into a new function. This patch fixes bug 143 (verified by Jim Dykman). Earlier version verified by Jon McCune. Signed-off-by: James Dykman <dykman@us.ibm.com> Signed-off-by: Jon Mason <jdmason@us.ibm.com>
| * Fix VM_RESERVED check in vm_normal_page(). Pointed out bykaf24@firebug.cl.cam.ac.uk2006-04-221-1/+1
| | | | | | | | | | | | | | Isaku Yamahata. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Don't BUG_ON() if we cannot register an NMI callback since it is not a fatalIan.Campbell@xensource.com2006-04-212-4/+2
| | | | | | | | | | | | | | problem. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * Rename TSS_sysenter_esp0 to SYSENTER_stack_esp0 to reflect the actualIan.Campbell@xensource.com2006-04-212-5/+5
| | | | | | | | | | | | | | usage since the TSS is not used under Xen. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * Linux support for sysenter/exit on x86_32.Ian.Campbell@xensource.com2006-04-212-1/+42
| | | | | | | | | | | | | | | | This support is only active when supervisor_mode_kernel is enabled in the Xen build (and when the hardware supports sysenter). Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * Remove CONFIG_X86_SYSENTER option.Ian.Campbell@xensource.com2006-04-217-26/+13
| | | | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * Merge nmi_op functionality with the callback_op hypercall.Ian.Campbell@xensource.com2006-04-212-6/+24
| | | | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * Use set_callbacks hypercall if callback_op is not available.Ian.Campbell@xensource.com2006-04-212-5/+21
| | | | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * Propagate information about bad (or good) REGSEL registerkaf24@firebug.cl.cam.ac.uk2006-04-211-0/+6
| | | | | | | | | | | | | | | | | | of chipset IO-APICs to Xen. If REGSEL is bad (some old SiS chipsets) then we have a slower read-modify-write routine. Loosely based on an original patch from Jan Beulich. Signed-off-by: Keir Fraser <keir@xensource.com>
| * PAE pgd construction code should use clone_pgd_range().kaf24@firebug.cl.cam.ac.uk2006-04-211-7/+7
| | | | | | | | | | | | | | Also fix the loop that allocates users pmds. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Enable migration of a domain to the local machine - some timingkaf24@firebug.cl.cam.ac.uk2006-04-204-39/+34
| | | | | | | | | | | | | | | | | | issues needed to be resolved by executing certain code early/later Restore the physical to machine array such that balloon-allocated pages can be deallocated. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| * In both i386 and x86-64 Linux, using a static variable (and thus kaf24@firebug.cl.cam.ac.uk2006-04-202-10/+6
| | | | | | | | | | | | | | | | | | | | having the potential of missing synchronization there, as I suspect exists in native Linux) is not needed with the hypercall approach. In the hypervisor, the patch adds the needed synchronization. Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * Clean up the xenoprofile hypercall interface.kaf24@firebug.cl.cam.ac.uk2006-04-192-48/+94
| | | | | | | | | | Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
* | [IA64] linux: arch/ia64/xen/makefile changeawilliam@localhost2006-04-251-0/+3
| | | | | | | | | | | | | | | | update linux-2.6-xen-sparse/arch/ia64/xen/Makefile Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] dma paravirtualizationawilliam@localhost2006-04-2510-14/+500
| | | | | | | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] add dom0vp hypercall interfacesawilliam@ldap.hp.com2006-04-251-0/+206
| | | | | | | | | | | | | | | | adds the dom0vp hypercall interfaces. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] introduce config optionawilliam@ldap.hp.com2006-04-251-0/+7
| | | | | | | | | | | | | | | | introduce XEN_IA64_DOM0_VP config. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] SMP-guestawilliam@xenbuild.aw2006-04-212-0/+18
| | | | | | | | | | | | | | | | Final SMP-guest patch: add IPI and boot rendez-vous support. Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | [IA64] Add support to physdev_opsawilliam@xenbuild.aw2006-04-213-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to physdev ops, and thus give IOSAPIC RTEs managed by Xen now. Dom0 now issues hypercall to r/w RTE entry. Another change is the irq vector allocation which is also owned by xen now. After this change, the IOSAPIC is almost owned by xen with only exception as IOSAPIC EOI which is still issued by dom0 directly. But that's OK since currently dom0 owns all external physical devices. Later full event channel mechanism will provide necessary support for driver domain, and at that time, dom0 instead issues physdev_op (PHYSDEVOP_IRQ_UNMASK_NOTIFY) naturally as replace of IOSAPIC EOI. Signed-off-by Kevin Tian <kevin.tian@intel.com>
* | [IA64] add base iosapic filesawilliam@xenbuild.aw2006-04-213-0/+1503
| | | | | | | | | | | | | | | | | | Add base iosapic files from Linux-2.6.16 in preparation for Kevin's iosapic changes. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] Use a constant instead of an hard-coded value.awilliam@xenbuild.aw2006-04-191-1/+1
| | | | | | | | | | | | Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-04-1822-133/+157
|\|
| * Merged.emellor@leeni.uk.xensource.com2006-04-1520-129/+148
| |\
| | * Touch softlockup watchdog while warning user about use ofkaf24@firebug.cl.cam.ac.uk2006-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | | tls libraries. Signed-off-by: Keir Fraser <keir@xensource.com>