From 21ab1ab9f1fd558515606bbc7e9b106b977a75ad Mon Sep 17 00:00:00 2001 From: Xudong Hao Date: Thu, 12 Sep 2024 16:23:45 +0800 Subject: [PATCH] KVM: Add 4 UMIP test cases for TD and Non-TD VM 1 CPUID test 2 CPU flags tests 1 functionality test Signed-off-by: Xudong Hao --- KVM/qemu/feature_test.cfg | 2 ++ KVM/qemu/x86_cpu_flags.cfg | 11 +++++++++-- KVM/qemu/x86_cpuid.cfg | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/KVM/qemu/feature_test.cfg b/KVM/qemu/feature_test.cfg index 77aaae0..12642a4 100644 --- a/KVM/qemu/feature_test.cfg +++ b/KVM/qemu/feature_test.cfg @@ -10,6 +10,8 @@ variants: - cmpccxadd: feature_dir_names = "cmpccxadd" + - umip: + feature_dir_names = "umip" variants: - vm: - tdvm: diff --git a/KVM/qemu/x86_cpu_flags.cfg b/KVM/qemu/x86_cpu_flags.cfg index a9ff90b..d1b31f4 100644 --- a/KVM/qemu/x86_cpu_flags.cfg +++ b/KVM/qemu/x86_cpu_flags.cfg @@ -4,16 +4,23 @@ start_vm = no check_host_flags = yes only i386, x86_64 + auto_cpu_model = "no" + cpu_model = host variants: - tsc_deadline: - auto_cpu_model = "no" - cpu_model = host flags = "tsc_deadline_timer" variants: - default: - disable: cpu_model_flags = ",-tsc-deadline" no_flags = "tsc_deadline_timer" + - umip: + flags = "umip" + variants: + - default: + - disable: + cpu_model_flags = ",-umip" + no_flags = "umip" variants: - vm: # Only No-TDVM supports soft reboot diff --git a/KVM/qemu/x86_cpuid.cfg b/KVM/qemu/x86_cpuid.cfg index e4925e0..fa32cae 100644 --- a/KVM/qemu/x86_cpuid.cfg +++ b/KVM/qemu/x86_cpuid.cfg @@ -38,6 +38,8 @@ features = "AVX_NE_CONVERT" - cmpccxadd: features = "CMPCCXADD" + - umip: + features = "UMIP" variants: - vm: - tdvm: