From a1225900532778306845ced387ae203b7df7e82d Mon Sep 17 00:00:00 2001 From: Farrah Chen Date: Thu, 5 Sep 2024 10:46:03 +0000 Subject: [PATCH] Add tdx_temp.cfg as an templete for avocado test Signed-off-by: Farrah Chen --- KVM/docs/lkvs_on_avocado.md | 2 +- KVM/docs/tdx_temp.cfg | 94 +++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 KVM/docs/tdx_temp.cfg diff --git a/KVM/docs/lkvs_on_avocado.md b/KVM/docs/lkvs_on_avocado.md index 73f291ce..88807d5e 100644 --- a/KVM/docs/lkvs_on_avocado.md +++ b/KVM/docs/lkvs_on_avocado.md @@ -179,7 +179,7 @@ Prepare your guest image well, make sure it can be boot as td guest with your ho ## 4.2 Config file -Copy this template tdx_temp.cfg to /root/avocado/data/avocado-vt/backends/qemu/cfg/ +Copy this template [tdx_temp.cfg](tdx_temp.cfg) to /root/avocado/data/avocado-vt/backends/qemu/cfg/ ### 4.2.1 Guest OS diff --git a/KVM/docs/tdx_temp.cfg b/KVM/docs/tdx_temp.cfg new file mode 100644 index 00000000..965310b6 --- /dev/null +++ b/KVM/docs/tdx_temp.cfg @@ -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