config_tools/upgrader: convert the old SERVICE_VM type

In the old days SERVICE_VM was also an acceptible VM type. It is now converted
to the load_order, with the vm_type field replaced by STANDARD_VM. This patch
adds this conversion logic into the upgrader.

Tracked-On: #6690
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Junjie Mao 2022-03-18 19:29:58 +08:00 committed by acrnsi-robot
parent e1f5c32ea2
commit 9197193e12

View File

@ -402,7 +402,7 @@ class ScenarioUpgrader(ScenarioTransformer):
old_guest_flag_nodes or \
(old_rtos_type_nodes and old_rtos_type_nodes[0].text in ["Soft RT", "Hard RT"]):
new_node.text = "RTVM"
elif old_vm_type_node.text in ["SAFETY_VM", "PRE_STD_VM", "POST_STD_VM"]:
elif old_vm_type_node.text in ["SAFETY_VM", "PRE_STD_VM", "POST_STD_VM", "SERVICE_VM"]:
new_node.text = "STANDARD_VM"
else:
new_node.text = old_vm_type_node.text