acrn-hypervisor/hypervisor/common
Yan, Like a8cd6925fc hv: pirq: clean up irq handlers
There are several similar irq handlers with confusing function names and it's
not friendly to call update_irq_handler() to update a proper handler after
request_irq().

With this commit, a single generic irq handler is being used, in which, no lock
need to be acquired because our design could guarantee there is no concurrent
irq handling and irq handler request/free.
A flags field is added to irq_desc struct to select the proper processing flow
for an irq. Irqflags is defined as follows:
 IRQF_NONE       (0U)
 IRQF_LEVEL      (1U << 1U)       /* 1: level trigger; 0: edge trigger */
 IRQF_PT         (1U << 2U)       /* 1: for passthrough dev */

Because we have only one irq handler, update_irq_handler() should be replace by
set_irq_trigger_mode(), whichs set trigger mode flag of a certian irq.
Accordingly, the code where called update_irq_handler() need to be updated.

Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2018-08-17 14:25:52 +08:00
..
hv_main.c HV: Enclose debug specific code with #ifdef HV_DEBUG 2018-08-15 11:17:29 +08:00
hypercall.c hv:fix return value violations for vpic/vioapic 2018-08-16 09:01:08 +08:00
io_request.c HV: io: drop REQ_STATE_FAILED 2018-08-15 12:04:12 +08:00
ptdev.c hv: pirq: clean up irq handlers 2018-08-17 14:25:52 +08:00
schedule.c idle: enable IRQ in default idle 2018-08-15 12:05:18 +08:00
softirq.c hv: softirq: refine softirq 2018-08-01 11:36:27 +08:00
stack_protector.c HV:common:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
static_checks.c hv: add compile time assert for static checks 2018-08-14 13:05:06 +08:00
trusty_hypercall.c HV: trusty: new hypercall to save/restore context of secure world 2018-08-09 15:09:15 +08:00
vm_load.c hv: sw_loader for VMs in ACRN partition mode 2018-08-17 10:04:51 +08:00