Skip to content

Commit

Permalink
KVM: Add 20 cpu flags check test cases for TD and Non-TD
Browse files Browse the repository at this point in the history
Signed-off-by: Xudong Hao <[email protected]>
  • Loading branch information
xhao22 committed Oct 16, 2024
1 parent 8112aaa commit 2d9f06a
Showing 1 changed file with 50 additions and 7 deletions.
57 changes: 50 additions & 7 deletions KVM/qemu/x86_cpu_flags.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,63 @@
auto_cpu_model = "no"
cpu_model = host
variants:
- tsc_deadline:
flags = "tsc_deadline_timer"
variants:
- default:
- disable:
cpu_model_flags = ",-tsc-deadline"
no_flags = "tsc_deadline_timer"
# SPR
- avx512_fp16:
flags = "avx512_fp16"
- serialize:
flags = "serialize"
- tsxldtrk:
flags = "tsxldtrk"
- avx_vnni:
flags = "avx_vnni"
- amx_bf16:
flags = "amx_bf16"
- amx_int8:
flags = "amx_int8"
- amx_tile:
flags = "amx_tile"
- movdiri:
flags = "movdiri"
- movdir64b:
flags = "movdir64b"
- waitpkg:
flags = "waitpkg"
- cldemote:
flags = "cldemote"
# ICX
- umip:
flags = "umip"
variants:
- default:
- disable:
cpu_model_flags = ",-umip"
no_flags = "umip"
- avx512_ifma:
flags = "avx512ifma"
- avx512_vbmi:
flags = "avx512vbmi"
- avx512_vbmi2:
flags = "avx512_vbmi2"
- avx512_vnni:
flags = "avx512_vnni"
- avx512_bitalg:
flags = "avx512_bitalg"
- gfni:
flags = "gfni"
- vaes:
flags = "vaes"
- vpclmulqdq:
flags = "vpclmulqdq"
- sha_ni:
flags = "sha_ni"
# legacy
- tsc_deadline:
flags = "tsc_deadline_timer"
variants:
- default:
- disable:
cpu_model_flags = ",-tsc-deadline"
no_flags = "tsc_deadline_timer"
variants:
- vm:
# Only No-TDVM supports soft reboot
Expand Down

0 comments on commit 2d9f06a

Please sign in to comment.