aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers/linux-2.6/platform-pci/evtchn.c
Commit message (Collapse)AuthorAgeFilesLines
* unmodified_drivers: handle IRQF_SAMPLE_RANDOMOlaf Hering2012-09-101-1/+5
| | | | | | | | | | The flag IRQF_SAMPLE_RANDOM was removed in 3.6-rc1. Add it only if it is defined. An additional call to add_interrupt_randomness is appearently not needed because its now called unconditionally in handle_irq_event_percpu(). Signed-off-by: Olaf Hering <olaf@aepfle.de> Committed-by: Jan Beulich <jbeulich@suse.com>
* PV-on-HVM: unmask_evtchn() must always use hypercall.Keir Fraser2008-08-211-39/+2
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* pv-on-hvm: Change barrier from rmb to wmb.Keir Fraser2008-05-291-1/+1
| | | | Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* [PV-on-HVM] Process event channels notifications in round-robin orderKeir Fraser2008-01-251-7/+55
| | | | | Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* pv-on-hvm: Fix up linux code after hypercall-type-checking changes.Keir Fraser2008-01-231-4/+5
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* [PV-ON-HVM] Fix evtchn of unbind_from_irqhandler()Keir Fraser2007-11-061-1/+1
| | | | | | | | | | | When xm block-detach command was done on PV-ON-HVM, the response of other disks was lost. It is because a wrong event channel was invalidated when detaching it. Not the evtchn number but the irq number is invalidated specifying it. Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
* pv-on-hvm: fixes for unmodified drivers build and modern LinuxKeir Fraser2007-10-251-7/+15
| | | | | | | | | | | | | | | | | | - 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>
* PV-on-HVM: Fixes for module loading.kfraser@localhost.localdomain2007-04-111-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* PV-on-HVM: More save/restore fixes.kfraser@localhost.localdomain2007-04-111-50/+92
| | | | 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-30/+122
| | | | | reboot.ko and xenbus.ko. These are now part of xen-platform-pci.ko. Signed-off-by: Keir Fraser <keir@xensource.com>
* hvm: Fix platform-irq handling in presence of irqbalance daemon.kaf24@firebug.cl.cam.ac.uk2007-03-191-1/+2
| | | | | | | | | | | | | | | | The HVM guest did not respond when PV-on-HVM driver was tested on the following conditions. 1. RHEL4u4 2. vcpu 4 3. irqbalance on 4. pv-on-hvm driver used. Eventhandler did not work because IRQ was delivered to another vcpu by irqbalance. Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
* [LINUX] Purge include <linux/config.h>. It has been obsolete for some time now.Ian Campbell2007-02-231-1/+0
| | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* [PV-on-HVM] Add definition of irq_to_evtchn_port().kfraser@localhost.localdomain2007-01-061-0/+6
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [PV-ON-HVM] Update evtchn interface to match new PV Linux interfaces.kaf24@localhost.localdomain2006-12-311-17/+46
| | | | | | Also fix unbind_from_irqhandler() to close event-channel port where that is appropriate. Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Update VPIC device model for new interrupt delivery code.kaf24@localhost.localdomain2006-11-261-24/+8
| | | | | | Move BSP VLAPIC initialisation to hvmloader. Remove callback_irq update hack from Linux unmodified drivers. Signed-off-by: Keir Fraser <keir@xensource.com>
* [PV-ON-HVM] Don't generate lots of spurious interrupts when using eventSteven Smith2006-10-311-1/+7
| | | | | | | | | | | | | | | | | | channel upcalls. The issue here was that the Xen platform PCI interrupt is only updated when you return from the hypervisor into guest context, and so remained asserted for a short interval after the interrupt handler ran. If it happened that the first subsequent trap to the hypervisor was for unmasking the 8259 interrupt again, the unmasking caused the interrupt to be reinjected. This caused an edge on the chaining interrupt from the slave PIC to the master. The platform interrupt on the slave would then be cleared as we returned to the guest, and so you eventually end up injecting an interrupt on the master chained interrupt with nothing pending on the slave, which shows up as a spurious interrupt in the guest. Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* 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>
* Fix Intel copyright notice in a single source file.kaf24@localhost.localdomain2006-08-281-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [HVM] Linux driver for the xen platform pseudo-PCI device.kfraser@localhost.localdomain2006-08-171-0/+173
Signed-off-by: Steven Smith <ssmith@xensource.com>