mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-13 11:33:58 +00:00
softirq: move softirq from hv_main to interrupt context
softirq shouldn't be bounded to vcpu thread. One issue for this is shell (based on timer) can't work if we don't start any guest. This change also is trying best to make softirq handler running with irq enabled. Also update the irq disable/enabel in vmexit handler to align with the usage in vcpu_thread. Tracked-On: #3387 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -28,11 +28,7 @@ void vcpu_thread(struct sched_object *obj)
|
||||
}
|
||||
|
||||
if (!is_lapic_pt_enabled(vcpu)) {
|
||||
/* handle pending softirq when irq enable*/
|
||||
do_softirq();
|
||||
CPU_IRQ_DISABLE();
|
||||
/* handle risk softirq when disabling irq*/
|
||||
do_softirq();
|
||||
}
|
||||
|
||||
/* Don't open interrupt window between here and vmentry */
|
||||
|
||||
Reference in New Issue
Block a user