acrn-hypervisor/hypervisor/include
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
..
arch/x86/asm hv: enable thermal lvt interrupt 2024-05-16 09:40:32 +08:00
common hv: enable thermal lvt interrupt 2024-05-16 09:40:32 +08:00
debug hv: change sbuf to a common infrastructure 2022-09-27 10:26:42 +08:00
dm debug: vuart: add guest break key support 2024-04-25 15:00:09 +08:00
hw hv: enable thermal lvt interrupt 2024-05-16 09:40:32 +08:00
lib hv: add clamp macro for convenience 2023-09-18 16:26:05 +08:00
public dm: vm_event: add support for RTC change event 2024-02-01 17:01:31 +08:00