From d2a8e201179cef88df2d947384a83dd5e7b42d9f Mon Sep 17 00:00:00 2001 From: Minggui Cao Date: Thu, 24 Mar 2022 14:11:16 +0800 Subject: [PATCH] misc: set PMU_PT flag for pre-launched RTVM For post-launched RTVM, the acrn-dm can own PMU_PASSTHROUGH flag; for pre-launched RTVM, need set it in configuration file by default. Tracked-On: #6966 Reviewed-by: Junjie Mao Signed-off-by: Minggui Cao --- misc/config_tools/static_allocators/guest_flags.py | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/config_tools/static_allocators/guest_flags.py b/misc/config_tools/static_allocators/guest_flags.py index 71939493b..24f30d207 100644 --- a/misc/config_tools/static_allocators/guest_flags.py +++ b/misc/config_tools/static_allocators/guest_flags.py @@ -22,6 +22,7 @@ policies = [ GuestFlagPolicy(".//nested_virtualization_support = 'y'", "GUEST_FLAG_NVMX_ENABLED"), 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'", "GUEST_FLAG_PMU_PASSTHROUGH"), GuestFlagPolicy(".//vm_type = 'TEE_VM'", "GUEST_FLAG_TEE"), GuestFlagPolicy(".//vm_type = 'REE_VM'", "GUEST_FLAG_REE"), ]