mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
config-tools: add property check before IVSHMEM
If IVSHMEM is not presented, reading its property could lead to failure in js. Add property check before it. Tracked-On: #7500 Signed-off-by: Wu Zhou <wu.zhou@intel.com>
This commit is contained in:
parent
c4f46d9c28
commit
7750a6c25b
@ -286,6 +286,7 @@ export default {
|
|||||||
},
|
},
|
||||||
vmNameChange(newname, oldname) {
|
vmNameChange(newname, oldname) {
|
||||||
let hvdata = this.scenario.hv
|
let hvdata = this.scenario.hv
|
||||||
|
if (hvdata.FEATURES.hasOwnProperty('IVSHMEM')) {
|
||||||
for (let key in hvdata.FEATURES.IVSHMEM.IVSHMEM_REGION) {
|
for (let key in hvdata.FEATURES.IVSHMEM.IVSHMEM_REGION) {
|
||||||
let region = hvdata.FEATURES.IVSHMEM.IVSHMEM_REGION[key]
|
let region = hvdata.FEATURES.IVSHMEM.IVSHMEM_REGION[key]
|
||||||
for (let key1 in region.IVSHMEM_VMS.IVSHMEM_VM) {
|
for (let key1 in region.IVSHMEM_VMS.IVSHMEM_VM) {
|
||||||
@ -295,6 +296,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
assignVMID() {
|
assignVMID() {
|
||||||
let vm_priority = {
|
let vm_priority = {
|
||||||
|
Loading…
Reference in New Issue
Block a user