From 5d7e217f55a0e8bf07eb20d0f46201ae01fa09a6 Mon Sep 17 00:00:00 2001 From: Zhangwei6 Date: Mon, 11 Sep 2023 11:19:48 +0800 Subject: [PATCH] config_tools: support the GUEST_FLAG_VTM flag In hv, we implement the feature of thermal virtualization, We want to use this GUEST_FLAG_VTM flag to enable and disable this feature. So we mark this flag in config tools. Tracked-On: #8595 Signed-off-by: Kunhui-Li Signed-off-by: Zhangwei6 Reviewed-by: Junjie Mao --- misc/config_tools/schema/config.xsd | 5 +++++ misc/config_tools/static_allocators/guest_flags.py | 1 + 2 files changed, 6 insertions(+) diff --git a/misc/config_tools/schema/config.xsd b/misc/config_tools/schema/config.xsd index 483efd5bd..b75b91f02 100644 --- a/misc/config_tools/schema/config.xsd +++ b/misc/config_tools/schema/config.xsd @@ -409,6 +409,11 @@ These settings can only be changed at build time. Enable virtualization of the Cache Allocation Technology (CAT) feature in RDT. CAT enables you to allocate cache to VMs, providing isolation to avoid performance interference from other VMs. + + + Enable virtualization of the Thermal Monitor feature for this VM. This feature enables VM to retrieve SOC temperature and thermal irq. And this VM can implement cooling stategies based on these information. + + Max number of virtual CLOS MASK diff --git a/misc/config_tools/static_allocators/guest_flags.py b/misc/config_tools/static_allocators/guest_flags.py index d654a3547..ffaa4dff7 100644 --- a/misc/config_tools/static_allocators/guest_flags.py +++ b/misc/config_tools/static_allocators/guest_flags.py @@ -21,6 +21,7 @@ policies = [ GuestFlagPolicy(".//secure_world_support = 'y'", "GUEST_FLAG_SECURE_WORLD_ENABLED"), GuestFlagPolicy(".//hide_mtrr_support = 'y'", "GUEST_FLAG_HIDE_MTRR"), GuestFlagPolicy(".//nested_virtualization_support = 'y'", "GUEST_FLAG_NVMX_ENABLED"), + GuestFlagPolicy(".//virtual_thermal_monitor = 'y'", "GUEST_FLAG_VTM"), GuestFlagPolicy(".//security_vm = 'y'", "GUEST_FLAG_SECURITY_VM"), GuestFlagPolicy(".//vm_type = 'RTVM'", "GUEST_FLAG_RT"), GuestFlagPolicy(".//vm_type = 'RTVM' and .//load_order = 'PRE_LAUNCHED_VM' and //hv/BUILD_TYPE= 'debug'", "GUEST_FLAG_PMU_PASSTHROUGH"),