aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
Commit message (Collapse)AuthorAgeFilesLines
* unmodified_drivers: enable unplug per defaultOlaf Hering2013-09-201-1/+7
| | | | | | | | | | | | | Since xen-3.3 an official unplug protocol for emulated hardware is available in the toolstack. The pvops kernel does the unplug per default, so it is safe to do it also in the drivers for forward ported xenlinux. Currently its required to load xen-platform-pci with the module parameter dev_unplug=all, which is cumbersome. Also recognize the dev_unplug=never parameter, which provides the default before this patch. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* unmodified_drivers: remove inclusion of asm/system.hOlaf Hering2012-05-141-1/+0
| | | | | | | | | Allow compilation of PVonHVM drivers with forward-ported xenlinux sources in openSuSE 12.2. Since Linux 3.4 asm/system.h is not present anymore. Remove inclusion of this header, its not needed. Signed-off-by: Olaf Hering <olaf@aepfle.de> Committed-by: Jan Beulich <jbeulich@suse.com>
* unmodified drivers: add pfn_is_ram helper for kdumpOlaf Hering2012-03-161-0/+29
| | | | | | | | | | Register pfn_is_ram helper speed up reading /proc/vmcore in the kdump kernel. It is compiled only if the kernel source is recent enough to have the pfn_is_ram helper (v3.0-rc1, commit 997c136f518c5debd63847e78e2a8694f56dcf90). Signed-off-by: Olaf Hering <olaf@aepfle.de> Committed-by: Jan Beulich <jbeulich@suse.com>
* unmodified drivers: hide xen_cpuid_base() in version 2.6.38+Olaf Hering2012-03-161-0/+2
| | | | | | | | | | | | | | | | | | | | Allow compilation of PVonHVM drivers with forward-ported xenlinux sources in openSuSE 12.1. xen_cpuid_base() is now in mainline, the copy in the xen tree leads to a compilation error. The current state leads to a compile error: /usr/src/packages/BUILD/xen-4.2.24547/non-dbg/obj/default/platform-pci/platform-pci.c:121: error: redefinition of 'xen_cpuid_base' /usr/src/linux-3.0.13-0.11/arch/x86/include/asm/xen/hypervisor.h:43: error: previous definition of 'xen_cpuid_base' was here The reason is that the kernel sources are searched before the xen sources for asm/hypervisor.h: /usr/src/linux-3.0.13-0.11/arch/x86/include/asm/hypervisor.h /usr/src/packages/BUILD/xen-4.2.24547/non-dbg/obj/default/include/asm/hypervisor.h Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Jan Beulich <jbeulich@suse.com> Committed-by: Jan Beulich <jbeulich@suse.com>
* pv-drivers: use PCI interfaces to request IO and MEM resources on platform ↵Keir Fraser2011-01-141-13/+9
| | | | | | | | | | | | | | device This is the correct interface to use and something has broken the use of the previous incorrect interface (which fails because the request conflicts with the resources assigned for the PCI device itself instead of nesting like the PCI interfaces do). pci_request_region() has been available since at least Linux 2.6.5. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jan Beulich <jbeulich@novell.com>
* pv-on-hvm: Fix unplug logicKeir Fraser2010-02-221-1/+1
| | | | | | Add the missing part for the dev_unplug parameter in r20847 Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* pv-on-hvm: Correct the order of the argument of out*()Keir Fraser2010-01-291-3/+3
| | | | | | | | | The order of the argument of outl() is wrong. The correct order is outl(value, port). This causes kernel panic. And outw() is also similar. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* pv-on-hvm: Only unplug emulated devices if requested via module parameter.Keir Fraser2010-01-231-10/+48
| | | | | | | | | | | dev_unplug=[all,][ide-disks,][aux-ide-disks,][nics] ide-disks: Unplug all emulated IDE disks (but not CD-ROMs) aux-ide-disks: As above, but doesn't touch primary IDE master nics: Unplug all emulated NICs all: ide-disks and nics Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 hvm: Guests should scan CPUID range 40000000-4000ff00 for Xen leaves.Keir Fraser2009-09-161-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Remove support for out-of-date SLES9 and RHEL4 kernelKeir Fraser2009-07-201-0/+58
| | | | | | | | | | ports from build integration Both distros now include Xen support from their respective upstreams and these kernels are very out of date wrt both the upstream distro kernel and the upstream Xen kernel. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
* x86, hvm: Hyper-V guest interface support with small set of enlightenmentsKeir Fraser2008-10-141-23/+28
| | | | | | | | | | | | | A minimal implementation of the Viridian (Hyper-V) guest interface. The only enlightenments advertised and supported are vAPIC MSRs and long-spin-wait notifications. The set of enlightenments can easily be extended in future, as they are found to provide a performance win, and configured via an extended HVM_PARAM_VIRIDIAN hvm parameter. Signed-off-by: Peter Johnston <peter.johnston@citrix.com> Signed-off-by: Tim Deegan <tim.deegan@citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* pv-on-hvm: Signal crash to Xen tools when HVM guest panics.Keir Fraser2008-02-131-0/+4
| | | | | | | | | | | | | | | | | Attached patch adds a function to automatically dump core file when guest linux on HVM domain panics, in the same way as PV domain. I tested this patch with kernel 2.6.9 and 2.6.18 on both of x86 and ia64 (to buid for ia64, some patches in the ia64 tree are needed) by the following steps, and confirmed it works well: 1. Build xen-platform-pci.ko. 2. In /etc/xen/xend-config.sxp, set (enable-dump yes). 3. On guest linux, execute insmod: # insmod xen-platform-pci.ko 4. When guest linux panics, a core file is dumped. Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>
* pv-on-hvm: fixes for unmodified drivers build and modern LinuxKeir Fraser2007-10-251-0/+4
| | | | | | | | | | | | | | | | | | - The adjustments to README and overrides.mk are generic. - The removal of explicit linux/config.h inclusion should also not cause any issues. - The introduction of irq_handler_t should eliminiate warnings on 2.6.19+ kernels (I didn't check they're there, but since the request_irq prototype changed, I'm sure there's at least one. However, as a result changes to the Linux tree are expected to be required. - The change setup_xen_features -> xen_setup_features follows the naming in mainline 2.6.23 but would apparently also require changes to the Linux tree. - The changes SA_* -> IRQF_ and pci_module_init -> pci_register_driver should also not cause issues. Signed-off-by: Jan Beulich <jbeulich@novell.com>
* [IA64] xencomm - compilation fix of unmodified driverAlex Williamson2007-08-161-1/+1
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* pv-on-hvm: Re-init hypercall stubs page after HVM save/restore.kfraser@localhost.localdomain2007-05-251-15/+61
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* PV-on-HVM: More save/restore fixes.kfraser@localhost.localdomain2007-04-111-22/+12
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* PV-on-HVM: Fixes for save/restore. Also gets rid of separate moduleskfraser@localhost.localdomain2007-04-101-48/+43
| | | | | reboot.ko and xenbus.ko. These are now part of xen-platform-pci.ko. Signed-off-by: Keir Fraser <keir@xensource.com>
* PV-on-HVM: A bit more re-jigging so the build gets further againstKeir Fraser2007-04-061-2/+2
| | | | | native Linux 2.6.5. It's not quite there still, but closer. Signed-off-by: Keir Fraser <keir@xensource.com>
* PV-on-HVM: Add new ioreq 'invalidate' for zapping ioemu-dm mapccahekfraser@localhost.localdomain2007-04-051-10/+0
| | | | | | | | | | | | | after balloon operations in an HVM guest. This removes the I/O port hack from the guest OS, and from ioemu. Also we flush on reservation *increases* as well as decreases. This is necessary until qemu-dm can demand-fault page mappings into existing valid buckets. Signed-off-by: Steven Hand <steven@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Save/restore: PV-on-HVM driver save/restore supportTim Deegan2007-03-291-2/+33
| | | | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* Small cleanups to PV-on-HVM support code.Keir Fraser2007-02-081-12/+9
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [IA64] Follow to allow PV-on-HVM callback irq to be identified by PCI device.awilliam@xenbuild2.aw2007-02-061-9/+3
| | | | | | Also delete IA64 specific spec concerned with IA64_CALLBACK_IRQ_RID. Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
* [HVM] Allow HVM guest to request invalidation of foreign mappings viakaf24@localhost.localdomain2007-01-271-0/+10
| | | | | an I/O port write. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* [PV-on-HVM] Make PV drivers on HVM kernels work on older kernels afterIan Campbell2007-01-221-2/+11
| | | | | | update to 2.6.18. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* merge with xen-unstable.hgawilliam@xenbuild2.aw2007-01-151-10/+18
|\
| * [PV-on-HVM] Allow platform interrupt to be used for entropy.kfraser@localhost.localdomain2007-01-121-3/+3
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [HVM] Allow PV-on-HVM callback irq to be identified by PCI device.kfraser@localhost.localdomain2007-01-101-7/+15
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] Rename RID maker HVM_PARAM_CALLBACK_IRQ_RID to IA64_CALLBACK_IRQ_RIDawilliam@xenbuild2.aw2007-01-021-1/+1
| | | | | | | | Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
* | [IA64] Follow new interrupt deliver mechanism for PV-on-HVM/IPFawilliam@xenbuild2.aw2006-12-201-2/+7
|/ | | | | | This fixes PV-on-HVM drivers for ia64 Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
* [IA64] Change callback_irq spec of PV-on-HVM for IPFkfraser@localhost.localdomain2006-11-221-3/+19
| | | | | Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com> Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-251-0/+5
|\
| * PV-on-HVM: Add infrastructure for a compatibility shim in order toIan Campbell2006-10-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | support PV-on-HVM drivers for older kernel releases. The compatability code is included in the xen-platform-pci module since this module underpins all the others. Signed-off-by: Ian Campbell <ian.campbell@xensource.com> Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com> Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
| * [LINUX] PV-on-HVM: Directly include headers which are used in variousIan Campbell2006-10-251-0/+1
| | | | | | | | | | | | | | | | | | files rather than relying on them being included indirectly. This is required because these headers are not pulled in indirectly on older kernels. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* | [IA64] Xencomm fixes for HVM PV-driversawilliam@xenbuild.aw2006-10-141-0/+7
|/ | | | | | Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* [HVM] Use the right, PCI SIG assigned, vendor ID for xensource rather thanSteven Smith2006-09-211-2/+4
| | | | | | just making one up. Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* Fix unmodified drivers for PV-on-HVM on IA64.kaf24@firebug.cl.cam.ac.uk2006-09-131-1/+4
| | | | | Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
* [HVM] pv drivers: Allocate hypercall area as an executable region.kaf24@firebug.cl.cam.ac.uk2006-09-081-14/+16
| | | | | | We have to use __vmalloc() and __PAGE_KERNEL because vmalloc_exec() and PAGE_KERNEL_EXEC are not exported to modules. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix up cset 11228.ssmith@weybridge.uk.xensource.com2006-09-051-1/+1
| | | | Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* [HVM] Clean ups for PV-on-HVM drivers. In particular, platform-pcikfraser@localhost.localdomain2006-08-221-23/+23
| | | | | driver can now handle multi-page hypercall stub areas. Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Make grant tables functions work in PV-on-HVM drivers.kfraser@localhost.localdomain2006-08-171-3/+6
| | | | | Signed-off-by: Steven Smith <ssmith@xensource.com>
* [HVM] Linux driver for the xen platform pseudo-PCI device.kfraser@localhost.localdomain2006-08-171-0/+268
Signed-off-by: Steven Smith <ssmith@xensource.com>