mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 12:12:16 +00:00
vUART and IVSHMEM widgets don't generate address
[config_tool] vUART and IVSHMEM widgets don't generate address Tracked-On: #7942 Signed-off-by: Chuang-Ke <chuangx.ke@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
c1a4b77a93
commit
88ed588711
@ -415,7 +415,7 @@ export default {
|
|||||||
|
|
||||||
return formErrors
|
return formErrors
|
||||||
},
|
},
|
||||||
saveScenario() {
|
async saveScenario() {
|
||||||
if (_.isEmpty(this.scenario.vm)) {
|
if (_.isEmpty(this.scenario.vm)) {
|
||||||
alert("Please add at least one VM")
|
alert("Please add at least one VM")
|
||||||
return
|
return
|
||||||
@ -425,7 +425,7 @@ export default {
|
|||||||
if (errorFlag) {
|
if (errorFlag) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.assignVMID()
|
await this.assignVMID()
|
||||||
let msg = [
|
let msg = [
|
||||||
"scenario xml saved\n",
|
"scenario xml saved\n",
|
||||||
"Settings validated\n",
|
"Settings validated\n",
|
||||||
@ -442,10 +442,9 @@ export default {
|
|||||||
|
|
||||||
this.scenario.hv.CACHE_REGION = configurator.cat.getScenarioDataFromCAT()
|
this.scenario.hv.CACHE_REGION = configurator.cat.getScenarioDataFromCAT()
|
||||||
|
|
||||||
let scenarioWithDefaults = this.applyScenarioDefaults(this.scenario)
|
let scenarioWithDefaults = await this.applyScenarioDefaults(this.scenario)
|
||||||
let scenarioXMLData = this.scenarioToXML(scenarioWithDefaults)
|
let scenarioXMLData = this.scenarioToXML(scenarioWithDefaults)
|
||||||
this.scenario = scenarioWithDefaults
|
this.scenario = scenarioWithDefaults
|
||||||
this.updateCurrentFormData()
|
|
||||||
|
|
||||||
this.scenario.vm.map((vmConfig) => {
|
this.scenario.vm.map((vmConfig) => {
|
||||||
if (vmConfig['load_order'] === 'POST_LAUNCHED_VM') {
|
if (vmConfig['load_order'] === 'POST_LAUNCHED_VM') {
|
||||||
@ -458,6 +457,9 @@ export default {
|
|||||||
// begin write down and verify
|
// begin write down and verify
|
||||||
|
|
||||||
configurator.writeFile(this.WorkingFolder + 'scenario.xml', scenarioXMLData)
|
configurator.writeFile(this.WorkingFolder + 'scenario.xml', scenarioXMLData)
|
||||||
|
.then(() => {
|
||||||
|
this.updateCurrentFormData()
|
||||||
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// validate scenario and clean up the launch script
|
// validate scenario and clean up the launch script
|
||||||
stepDone = 1
|
stepDone = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user