@@ -211,12 +211,11 @@ def boot_image_type(args, vmid, config):
211
211
print ("" , file = config )
212
212
213
213
214
- def interrupt_storm (names , vmid , config ):
215
- uos_type = names ['uos_types' ][vmid ]
216
-
217
- if uos_type not in ("CLEARLINUX" , "ANDROID" , "ALIOS" ) or is_nuc_whl_clr (names , vmid ):
214
+ def interrupt_storm (pt_sel , config ):
215
+ if not pt_sel :
218
216
return
219
217
218
+ # TODO: --intr_monitor should be configurable by user
220
219
print ("#interrupt storm monitor for pass-through devices, params order:" , file = config )
221
220
print ("#threshold/s,probe-period(s),intr-inject-delay-time(ms),delay-duration(ms)" , file = config )
222
221
print ('intr_storm_monitor="--intr_monitor 10000,10,1,100"' , file = config )
@@ -517,9 +516,11 @@ def dm_arg_set(names, sel, dm, vmid, config):
517
516
print (" -i /run/acrn/ioc_$vm_name,0x20 \\ " , file = config )
518
517
print (" -l com2,/run/acrn/ioc_$vm_name \\ " , file = config )
519
518
519
+ if sel :
520
+ print (" $intr_storm_monitor \\ " , file = config )
521
+
520
522
if not is_nuc_whl_clr (names , vmid ):
521
523
print (" -s {},wdt-i6300esb \\ " .format (launch_cfg_lib .virtual_dev_slot ("wdt-i6300esb" )), file = config )
522
- print (" $intr_storm_monitor \\ " , file = config )
523
524
print (" -s {},xhci,1-1:1-2:1-3:2-1:2-2:2-3:cap=apl \\ " .format (launch_cfg_lib .virtual_dev_slot ("xhci" )), file = config )
524
525
525
526
if uos_type != "PREEMPT-RT LINUX" :
@@ -553,7 +554,7 @@ def gen(names, pt_sel, dm, vmid, config):
553
554
wa_usage (uos_type , config )
554
555
delay_use_usb_storage (uos_type , config )
555
556
mem_size_set (names , dm , vmid , config )
556
- interrupt_storm (names , vmid , config )
557
+ interrupt_storm (pt_sel , config )
557
558
log_level_set (uos_type , config )
558
559
559
560
# gen acrn-dm args
0 commit comments