From 07bf31da1f998b6841410c9c8fc9e2340ecf10da Mon Sep 17 00:00:00 2001 From: Yuanyua Zhao Date: Sat, 26 Nov 2022 21:48:59 +0800 Subject: [PATCH] config_tools: set 'own_pcpu' of RTVM For STANDARD_VM 'own_pcpu' default value is 'n'. But RTVM always own pCPUs. So check 'own_pcpu' of RTVM and make sure it's set to 'y'. Tracked-On: #8253 Signed-off-by: Yuanyua Zhao Reviewed-by: Junjie Mao --- .../configurator/pyodide/populateDefaultValues.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/config_tools/configurator/pyodide/populateDefaultValues.py b/misc/config_tools/configurator/pyodide/populateDefaultValues.py index 23f22f37a..241a8263d 100644 --- a/misc/config_tools/configurator/pyodide/populateDefaultValues.py +++ b/misc/config_tools/configurator/pyodide/populateDefaultValues.py @@ -46,6 +46,10 @@ def main(scenario): if name.text not in vmNames: name.text = "" + own_pcpus = etree.findall(".//vm[vm_type = 'RTVM']/own_pcpu") + for o in own_pcpus: + o.text = 'y' + result = tostring(obj.get("scenario_etree").getroot()) result = result.decode() result = convert_result({