mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-18 09:23:44 +00:00
acrn-config: refine interrupt_storm function
interrupt_storm should be enabled while passthrough device was set. Tracked-On: #3854 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
958830fbf6
commit
1818dfd906
@ -211,12 +211,11 @@ def boot_image_type(args, vmid, config):
|
|||||||
print("", file=config)
|
print("", file=config)
|
||||||
|
|
||||||
|
|
||||||
def interrupt_storm(names, vmid, config):
|
def interrupt_storm(pt_sel, config):
|
||||||
uos_type = names['uos_types'][vmid]
|
if not pt_sel:
|
||||||
|
|
||||||
if uos_type not in ("CLEARLINUX", "ANDROID", "ALIOS") or is_nuc_whl_clr(names, vmid):
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# TODO: --intr_monitor should be configurable by user
|
||||||
print("#interrupt storm monitor for pass-through devices, params order:", file=config)
|
print("#interrupt storm monitor for pass-through devices, params order:", file=config)
|
||||||
print("#threshold/s,probe-period(s),intr-inject-delay-time(ms),delay-duration(ms)", file=config)
|
print("#threshold/s,probe-period(s),intr-inject-delay-time(ms),delay-duration(ms)", file=config)
|
||||||
print('intr_storm_monitor="--intr_monitor 10000,10,1,100"', file=config)
|
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):
|
|||||||
print(" -i /run/acrn/ioc_$vm_name,0x20 \\", file=config)
|
print(" -i /run/acrn/ioc_$vm_name,0x20 \\", file=config)
|
||||||
print(" -l com2,/run/acrn/ioc_$vm_name \\", file=config)
|
print(" -l com2,/run/acrn/ioc_$vm_name \\", file=config)
|
||||||
|
|
||||||
|
if sel:
|
||||||
|
print(" $intr_storm_monitor \\", file=config)
|
||||||
|
|
||||||
if not is_nuc_whl_clr(names, vmid):
|
if not is_nuc_whl_clr(names, vmid):
|
||||||
print(" -s {},wdt-i6300esb \\".format(launch_cfg_lib.virtual_dev_slot("wdt-i6300esb")), file=config)
|
print(" -s {},wdt-i6300esb \\".format(launch_cfg_lib.virtual_dev_slot("wdt-i6300esb")), file=config)
|
||||||
print(" $intr_storm_monitor \\", file=config)
|
|
||||||
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)
|
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)
|
||||||
|
|
||||||
if uos_type != "PREEMPT-RT LINUX":
|
if uos_type != "PREEMPT-RT LINUX":
|
||||||
@ -553,7 +554,7 @@ def gen(names, pt_sel, dm, vmid, config):
|
|||||||
wa_usage(uos_type, config)
|
wa_usage(uos_type, config)
|
||||||
delay_use_usb_storage(uos_type, config)
|
delay_use_usb_storage(uos_type, config)
|
||||||
mem_size_set(names, dm, vmid, config)
|
mem_size_set(names, dm, vmid, config)
|
||||||
interrupt_storm(names, vmid, config)
|
interrupt_storm(pt_sel, config)
|
||||||
log_level_set(uos_type, config)
|
log_level_set(uos_type, config)
|
||||||
|
|
||||||
# gen acrn-dm args
|
# gen acrn-dm args
|
||||||
|
Loading…
Reference in New Issue
Block a user