Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KVM: rename TDX disable ept case and add disable tdx test case #428

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions KVM/qemu/td_disable_ept.cfg → KVM/qemu/tdx_disable.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- td_disable_ept:
- tdx_disable:
virt_test_type = qemu
type = td_disable_ept
type = tdx_disable
vm_accelerator = kvm
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
Expand All @@ -11,7 +11,11 @@
xfail = "yes"
expected_status = 'N'
default_status = 'Y'
parameter_name = 'ept'
variants:
- ept:
parameter_name = 'ept'
- tdx:
parameter_name = 'tdx'
pre_command = 'modprobe -r kvm_intel && modprobe kvm_intel ${parameter_name}=${expected_status}'
post_command = 'modprobe -r kvm_intel && modprobe kvm_intel ${parameter_name}=${default_status}'
check_status_cmd = 'cat /sys/module/kvm_intel/parameters/${parameter_name}'
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

def run(test, params, env):
"""
Boot TD after disable ept:
1) Disable ept
Boot TD after disable ept or tdx:
1) Disable ept or tdx
2) Boot up TDVM
3) TDVM can not be lanuch as expect

Expand Down
Loading