diff --git a/misc/acrn-config/config_app/static/main.js b/misc/acrn-config/config_app/static/main.js index 704fa8e75..338d22df7 100644 --- a/misc/acrn-config/config_app/static/main.js +++ b/misc/acrn-config/config_app/static/main.js @@ -728,7 +728,7 @@ function save_scenario(generator=null){ $("input").each(function(){ var id = $(this).attr('id'); var value = $(this).val(); - if(id.indexOf('CLOS_MASK')>=0 || id.indexOf('MBA_DELAY')>=0) { + if(id.indexOf('CLOS_MASK')>=0 || id.indexOf('MBA_DELAY')>=0 || id.indexOf('IVSHMEM_REGION')>=0) { if(id in scenario_config) { scenario_config[id].push(value); } else { @@ -795,7 +795,7 @@ function save_scenario(generator=null){ index = index.replace(new RegExp(jquerySpecialChars[i], "g"), "\\" + jquerySpecialChars[i]); } - $("#"+index).parents(".form-group").addClass("has-error"); + $("#"+index+"_err").parents(".form-group").addClass("has-error"); $("#"+index+"_err").text(item); }) if(no_err == true && status == 'success') { diff --git a/misc/acrn-config/config_app/templates/scenario.html b/misc/acrn-config/config_app/templates/scenario.html index f846526e5..009a0487d 100644 --- a/misc/acrn-config/config_app/templates/scenario.html +++ b/misc/acrn-config/config_app/templates/scenario.html @@ -209,32 +209,13 @@ the source files will be generated into default path and overwirte the previous != '0')%} {% if 'multiselect' not in elem.attrib or elem.attrib['multiselect'] != 'true' %} {% set first_child = [] %} + {% set first_multi_child = {'IVSHMEM_REGION': 0} %} {% for sub_elem in elem.getchildren() %} {% set sub_elem_text = sub_elem.text if sub_elem.text != None else '' %} - {% if sub_elem.tag == 'RDT' %} + {% if sub_elem.tag in ['RDT', 'IVSHMEM'] %} {% for sub_elem_2 in sub_elem.getchildren() %} - {% if ','.join([vm.tag, elem.tag, sub_elem.tag, sub_elem_2.tag]) not in scenario_item_values %} -