acrn-hypervisor/hypervisor/common
Zhangwei6 ddfcb8c3fc hv: enable thermal lvt interrupt
This patch can fetch the thermal lvt irq and propagate
it to VM.

At this stage we support the case that there is only one VM
governing thermal. And we pass the hardware thermal irq to this VM.

First, we register the handler for thermal lvt interrupt, its irq
vector is THERMAL_VECTOR and the handler is thermal_irq_handler().

Then, when a thermal irq occurs, it flags the SOFTIRQ_THERMAL bit
of softirq_pending, This bit triggers the thermal_softirq() function.
And this function will inject the virtual thermal irq to VM.

Tracked-On: #8595

Signed-off-by: Zhangwei6 <wei6.zhang@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2024-05-16 09:40:32 +08:00
..
delay.c hv/mod_timer: separate delay functions from the timer module 2021-05-18 16:43:28 +08:00
efi_mmap.c HV: fix build issue on RELEASE version 2021-11-16 19:01:44 +08:00
event.c hv: support halt in hv idle 2023-09-15 11:52:40 +08:00
hv_main.c hv: sched: Add sched_params struct for thread parameters 2023-09-18 16:26:05 +08:00
hypercall.c hv: return error code for default case in hcall_vm_intr_monitor 2024-04-23 15:58:36 +08:00
irq.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
ptdev.c ptirq: Fix ptirq hash tables 2023-04-13 12:24:57 +08:00
sbuf.c hv: add max_len for sbuf_put param 2024-02-20 11:52:02 +08:00
sched_bvt.c hv: sched: add four parameters for BVT scheduler 2023-09-18 16:26:05 +08:00
sched_iorr.c hv: sched: Add sched_params struct for thread parameters 2023-09-18 16:26:05 +08:00
sched_noop.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
sched_prio.c hv: sched: Fix scheduler priority issue 2024-05-08 14:52:23 +08:00
schedule.c hv: sched: Add sched_params struct for thread parameters 2023-09-18 16:26:05 +08:00
softirq.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
thermal.c hv: enable thermal lvt interrupt 2024-05-16 09:40:32 +08:00
ticks.c hv/mod_timer: split tsc handling code from timer. 2021-05-18 16:43:28 +08:00
timer.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
trusty_hypercall.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vm_event.c hv: add max_len for sbuf_put param 2024-02-20 11:52:02 +08:00
vm_load.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00