HV: comment SOS_VM as VMx in vm_configurations.h

Add a comment for SOS_VM to indicate its VM ID for better understanding;

Tracked-On: #5077

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun 2020-08-12 16:24:16 +08:00 committed by wenlingz
parent b04fba2db5
commit 05a083c944
4 changed files with 8 additions and 0 deletions

View File

@ -118,6 +118,11 @@ def gen_sos_header(scenario_items, config):
if 'SOS_VM' not in common.VM_TYPES.values(): if 'SOS_VM' not in common.VM_TYPES.values():
return return
for vm_i,vm_type in common.VM_TYPES.items():
if vm_type == 'SOS_VM':
print("/* SOS_VM == VM{0} */".format(vm_i), file=config)
print("#define SOS_VM_BOOTARGS\t\t\tSOS_ROOTFS\t\\", file=config) print("#define SOS_VM_BOOTARGS\t\t\tSOS_ROOTFS\t\\", file=config)
print("\t\t\t\t\tSOS_CONSOLE\t\\", file=config) print("\t\t\t\t\tSOS_CONSOLE\t\\", file=config)
print("\t\t\t\t\tSOS_IDLE\t\\", file=config) print("\t\t\t\t\tSOS_IDLE\t\\", file=config)

View File

@ -29,6 +29,7 @@
#define VM0_CONFIG_MEM_SIZE_HPA2 0x0UL #define VM0_CONFIG_MEM_SIZE_HPA2 0x0UL
#define VM0_CONFIG_PCI_DEV_NUM 1U #define VM0_CONFIG_PCI_DEV_NUM 1U
/* SOS_VM == VM1 */
#define SOS_VM_BOOTARGS SOS_ROOTFS \ #define SOS_VM_BOOTARGS SOS_ROOTFS \
SOS_CONSOLE \ SOS_CONSOLE \
SOS_IDLE \ SOS_IDLE \

View File

@ -29,6 +29,7 @@
#define VM0_CONFIG_MEM_SIZE_HPA2 0x0UL #define VM0_CONFIG_MEM_SIZE_HPA2 0x0UL
#define VM0_CONFIG_PCI_DEV_NUM 3U #define VM0_CONFIG_PCI_DEV_NUM 3U
/* SOS_VM == VM1 */
#define SOS_VM_BOOTARGS SOS_ROOTFS \ #define SOS_VM_BOOTARGS SOS_ROOTFS \
SOS_CONSOLE \ SOS_CONSOLE \
SOS_IDLE \ SOS_IDLE \

View File

@ -22,6 +22,7 @@
#define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH | \ #define DM_OWNED_GUEST_FLAG_MASK (GUEST_FLAG_SECURE_WORLD_ENABLED | GUEST_FLAG_LAPIC_PASSTHROUGH | \
GUEST_FLAG_RT | GUEST_FLAG_IO_COMPLETION_POLLING) GUEST_FLAG_RT | GUEST_FLAG_IO_COMPLETION_POLLING)
/* SOS_VM == VM0 */
#define SOS_VM_BOOTARGS SOS_ROOTFS \ #define SOS_VM_BOOTARGS SOS_ROOTFS \
SOS_CONSOLE \ SOS_CONSOLE \
SOS_IDLE \ SOS_IDLE \