-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tdx_temp.cfg as an templete for avocado test
Signed-off-by: Farrah Chen <[email protected]>
- Loading branch information
Showing
2 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
include base.cfg | ||
include machines.cfg | ||
only ovmf | ||
vm_create_timeout = 130 | ||
drive_cache = none | ||
|
||
# The bridge ifname created on the host | ||
#netdst = switch | ||
netdst = virbr0 | ||
|
||
smp = 4 | ||
#vcpu_maxcpus = 16 | ||
#mem = 13312 | ||
vm_type = qemu | ||
|
||
setup_ksm = no | ||
kill_vm = yes | ||
include guest-os.cfg | ||
include subtests.cfg | ||
include guest-hw.cfg | ||
include host.cfg | ||
|
||
verify_guest_dmesg = no | ||
|
||
#Define qemu binary | ||
qemu_binary = /usr/local/bin/qemu-system-x86_64 | ||
|
||
# The guest image name, use a abs path here to specify your testing image | ||
# Note the filename is image_name.image_format, so the image file path in the example is | ||
# /home/kvm_autotest_root/images/rhel930-64-virtio-scsi-ovmf.qcow2 | ||
#image_name = /home/kvm_autotest_root/images/rhel930-64-virtio-scsi-ovmf | ||
#image_format = qcow2 | ||
image_name = /root/avocado/data/avocado-vt/images/rhel-guest-image-9.4-20240419.25.x86_64 | ||
image_format = qcow2 | ||
#image_name = /root/avocado/data/avocado-vt/images/tdx_guest | ||
#image_format = raw | ||
|
||
#For RHEL9.4 guest | ||
shell_prompt = "^\[.*\][\#\$]\s*$" | ||
#For Ubuntu24.04 guest | ||
#shell_prompt = "^.*@.*:.*[\#\$]\s*$" | ||
bios_path = "/usr/share/edk2/ovmf/OVMF.inteltdx.fd" | ||
#bios_path = "/usr/share/qemu/OVMF.fd" | ||
#bios_path = "/home/edk2/Build/OvmfX64/RELEASE_GCC5/FV/OVMF.fd" | ||
display = nographic | ||
vga = none | ||
serials = serial0 | ||
#extra_params += " -serial file:/tmp/tdx_serial_file" | ||
take_regular_screendumps = no | ||
password = 123456 | ||
|
||
usbs = | ||
usb_devices = | ||
#monitors = | ||
enable_debugcon = no | ||
enable_pvpanic = no | ||
rtc_base = | ||
rtc_clock = | ||
|
||
strict_mode = no | ||
iterations = 1 | ||
|
||
no smp2 | ||
no xennet nic_custom | ||
no scsi | ||
no xenblk | ||
no lsi_scsi | ||
no sd | ||
no vmdk | ||
no 9p_export | ||
only q35 | ||
only x86_64 | ||
#For RHEL9 guest | ||
only RHEL.9 | ||
#For Ubuntu guest | ||
#only Linux.Ubuntu.14.04.3-server.x86_64 | ||
only smallpages | ||
only virtio_blk | ||
only qcow2 | ||
only bridge | ||
only virtio_net | ||
only no_virtio_rng | ||
only no_pci_assignable | ||
only filesystem | ||
variants: | ||
- @pre_test: | ||
- @run_test: | ||
# Test cases | ||
only tdx_basic td_disable_ept multi_vms.1td_1vm multi_vms.2td.4vcpu tsc_freq.tdvm.default tsc_freq.tdvm.settsc td_huge_resource.half td_huge_resource.max_vcpus | ||
- @post_check: | ||
pre_test, post_check: | ||
iterations = 1 | ||
no pre_test | ||
no post_check |