Skip to content

Commit

Permalink
KVM: Add 4 UMIP test cases for TD and Non-TD VM
Browse files Browse the repository at this point in the history
1 CPUID test
2 CPU flags tests
1 functionality test

Signed-off-by: Xudong Hao <[email protected]>
  • Loading branch information
xhao22 committed Sep 12, 2024
1 parent 0f34266 commit 21ab1ab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions KVM/qemu/feature_test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
variants:
- cmpccxadd:
feature_dir_names = "cmpccxadd"
- umip:
feature_dir_names = "umip"
variants:
- vm:
- tdvm:
Expand Down
11 changes: 9 additions & 2 deletions KVM/qemu/x86_cpu_flags.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions KVM/qemu/x86_cpuid.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
features = "AVX_NE_CONVERT"
- cmpccxadd:
features = "CMPCCXADD"
- umip:
features = "UMIP"
variants:
- vm:
- tdvm:
Expand Down

0 comments on commit 21ab1ab

Please sign in to comment.