@@ -242,6 +242,7 @@ def gen_sdc_source(vm_info, config):
242
242
print ("\t \t .clos = {0}U," .format (0 ), file = config )
243
243
else :
244
244
print ("\t \t .clos = {0}U," .format (vm_info .clos_set [0 ]), file = config )
245
+ print ("\t \t .severity = {0}," .format (vm_info .severity [0 ].strip ()), file = config )
245
246
print ("\t \t .memory = {" , file = config )
246
247
print ("\t \t \t .start_hpa = {}UL," .format (vm_info .mem_info .mem_start_hpa [0 ]), file = config )
247
248
print ("\t \t \t .size = {0}," .format ("CONFIG_SOS_RAM_SIZE" ), file = config )
@@ -271,6 +272,7 @@ def gen_sdc_source(vm_info, config):
271
272
vm1_cpu_num = len (vm_info .cpus_per_vm [vm1_id ])
272
273
print ("\t \t .vcpu_num = {}U," .format (vm1_cpu_num ), file = config )
273
274
print ("\t \t .vcpu_affinity = VM{}_CONFIG_VCPU_AFFINITY," .format (vm1_id ), file = config )
275
+ print ("\t \t .severity = {0}," .format (vm_info .severity [1 ].strip ()), file = config )
274
276
# VUART
275
277
err_dic = vuart_output (1 , vm_info , config )
276
278
if err_dic :
@@ -285,6 +287,7 @@ def gen_sdc_source(vm_info, config):
285
287
print ("\t \t .load_order = POST_LAUNCHED_VM," , file = config )
286
288
uuid_output (uuid_2 , vm_info .uuid [2 ], config )
287
289
vcpu_affinity_output (vm_info , 2 , config )
290
+ print ("\t \t .severity = {0}," .format (vm_info .severity [2 ].strip ()), file = config )
288
291
is_need_epc (vm_info .epc_section , 2 , config )
289
292
print ("\t \t .vuart[0] = {" , file = config )
290
293
print ("\t \t \t .type = VUART_LEGACY_PIO," , file = config )
@@ -336,6 +339,7 @@ def gen_sdc2_source(vm_info, config):
336
339
print ("\t \t .clos = {0}U," .format (0 ), file = config )
337
340
else :
338
341
print ("\t \t .clos = {0}U," .format (vm_info .clos_set [0 ]), file = config )
342
+ print ("\t \t .severity = {0}," .format (vm_info .severity [0 ].strip ()), file = config )
339
343
print ("\t \t .memory = {" , file = config )
340
344
print ("\t \t \t .start_hpa = {}UL," .format (vm_info .mem_info .mem_start_hpa [0 ]), file = config )
341
345
print ("\t \t \t .size = {0}," .format ("CONFIG_SOS_RAM_SIZE" ), file = config )
@@ -361,6 +365,7 @@ def gen_sdc2_source(vm_info, config):
361
365
# UUID
362
366
uuid_output (uuid_1 , vm_info .uuid [1 ], config )
363
367
vcpu_affinity_output (vm_info , 1 , config )
368
+ print ("\t \t .severity = {0}," .format (vm_info .severity [1 ].strip ()), file = config )
364
369
is_need_epc (vm_info .epc_section , 1 , config )
365
370
# VUART
366
371
err_dic = vuart_output (1 , vm_info , config )
@@ -373,6 +378,7 @@ def gen_sdc2_source(vm_info, config):
373
378
# UUID
374
379
uuid_output (uuid_2 , vm_info .uuid [2 ], config )
375
380
vcpu_affinity_output (vm_info , 2 , config )
381
+ print ("\t \t .severity = {0}," .format (vm_info .severity [2 ].strip ()), file = config )
376
382
is_need_epc (vm_info .epc_section , 2 , config )
377
383
# VUART
378
384
err_dic = vuart_output (1 , vm_info , config )
@@ -386,6 +392,7 @@ def gen_sdc2_source(vm_info, config):
386
392
uuid_output (uuid_3 , vm_info .uuid [3 ], config )
387
393
is_need_epc (vm_info .epc_section , 3 , config )
388
394
vcpu_affinity_output (vm_info , 3 , config )
395
+ print ("\t \t .severity = {0}," .format (vm_info .severity [3 ].strip ()), file = config )
389
396
print ("\t \t .vuart[0] = {" , file = config )
390
397
print ("\t \t \t .type = VUART_LEGACY_PIO," , file = config )
391
398
print ("\t \t \t .addr.port_base = INVALID_COM_BASE," , file = config )
@@ -521,6 +528,7 @@ def gen_industry_source(vm_info, config):
521
528
print ("\t \t .guest_flags = {0}," .format (sos_guest_flags ), file = config )
522
529
523
530
vcpu_affinity_output (vm_info , i , config )
531
+ print ("\t \t .severity = {0}," .format (vm_info .severity [i ].strip ()), file = config )
524
532
525
533
if i == 0 :
526
534
if vm_info .clos_set [i ] == None or not vm_info .clos_set [i ].strip ():
@@ -592,6 +600,7 @@ def gen_hybrid_source(vm_info, config):
592
600
print ("\t \t .guest_flags = {0}," .format (sos_guest_flags ), file = config )
593
601
594
602
vcpu_affinity_output (vm_info , i , config )
603
+ print ("\t \t .severity = {0}," .format (vm_info .severity [i ].strip ()), file = config )
595
604
596
605
if i != 2 :
597
606
if vm_info .clos_set [i ] == None or not vm_info .clos_set [i ].strip ():
0 commit comments