acrn-hypervisor/hypervisor/arch/x86/guest
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
..
assign.c hv: bugfix: skip invalid ffs64 return value 2023-07-14 17:38:16 +08:00
ept.c hv: define a MACRO to indicate maximum memory size 2023-09-12 13:52:48 +08:00
guest_memory.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
hyperv.c hv: tlfs: fix the incorrect vLAPIC freq MSR 2022-07-26 05:53:19 +08:00
instr_emul.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
lock_instr_emul.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
nested.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
optee.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
pm.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
trusty.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
ucode.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vcat.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vcpu.c hv: enable thermal lvt interrupt 2024-05-16 09:40:32 +08:00
vcpuid.c hv: disable HFI and ITD for guests 2023-08-01 14:57:23 +08:00
ve820.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vept.c hv: define a MACRO to indicate maximum memory size 2023-09-12 13:52:48 +08:00
virq.c hv: enable thermal lvt interrupt 2024-05-16 09:40:32 +08:00
virtual_cr.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vlapic_priv.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vlapic.c hv: signal_event after make_request 2023-09-15 11:52:40 +08:00
vm_reset.c hv: vm_event: send event on triple fault handler 2024-02-01 17:01:31 +08:00
vm.c hv: vm_event: create vm_event support 2024-02-01 17:01:31 +08:00
vmcall.c hv: add hypercall to register asyncio 2022-09-27 10:26:42 +08:00
vmcs.c hv: hide mwait from guest. 2022-11-04 18:55:52 +08:00
vmexit.c hv: hide mwait from guest. 2022-11-04 18:55:52 +08:00
vmsr.c hv: expose thermal MSRs to VM. 2024-05-16 09:40:32 +08:00
vmtrr.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vmx_asm.S Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vmx_io.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00