-
Notifications
You must be signed in to change notification settings - Fork 28
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
add 4 guest test td attestation TCs and improve overall test logic #124
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
143dcb1
[guest-test] Bug Fix: strict $BOOT_PATTERN to avoid fake execution
hongyuni a7b8c5c
[guest-test] New Test: add 4 tdx guest attestation cases
hongyuni 1f5e744
[guest-test] New Test: add tdx_guest_attest compile tool prepare
hongyuni 2642223
[guest-test] Test Enhance: improve test_launcher management logic
hongyuni 8f472a4
[guest-test] Test Enhance: improve code based on code check hints
hongyuni ac4f62f
[guest-test] Test Enhance: Use installed kernel headers search path
hongyuni 3482060
[guest-test] Test Enhance: tab format unified across all source code
hongyuni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -1,49 +1,49 @@ | ||
{ | ||
"common": { | ||
"kernel_img": "/boot/vmlinuz-xxx-yyy", | ||
"initrd_img": "/boot/initramfs-xxx-yyy", | ||
"bios_img": "/path/to/EDKII/OVMF.fd or other virtual BIOS", | ||
"qemu_img": "/path/to/qemu-kvm with proper capabilty of VM test", | ||
"guest_img": "/path/to/prepared/guest_os_image, in qcow2 or raw image format", | ||
"guest_img_format": "raw", | ||
"boot_pattern": "*Kernel*on*x86_64*", | ||
"guest_root_passwd": "123456", | ||
"vm_type": "tdx", | ||
"pmu": "off", | ||
"cpus": "4", | ||
"sockets": "1", | ||
"mem": "16", | ||
"cmdline": "accept_memory=lazy", | ||
"debug": "on" | ||
}, | ||
"common": { | ||
"kernel_img": "/boot/vmlinuz-xxx-yyy", | ||
"initrd_img": "/boot/initramfs-xxx-yyy", | ||
"bios_img": "/path/to/EDKII/OVMF.fd or other virtual BIOS", | ||
"qemu_img": "/path/to/qemu-kvm with proper capabilty of VM test", | ||
"guest_img": "/path/to/prepared/guest_os_image, in qcow2 or raw image format", | ||
"guest_img_format": "raw", | ||
"boot_pattern": "*Kernel*on*an*x86_64*", | ||
"guest_root_passwd": "123456", | ||
"vm_type": "tdx", | ||
"pmu": "off", | ||
"cpus": "4", | ||
"sockets": "1", | ||
"mem": "16", | ||
"cmdline": "accept_memory=lazy", | ||
"debug": "on" | ||
}, | ||
|
||
"vm": { | ||
"cfg_1": "-accel kvm -no-reboot -nographic -vga none -device virtio-net-pci,netdev=mynet0,mac=DE:AD:BE:EF:AB:CD,romfile= ", | ||
"cfg_2": "-chardev stdio,id=mux,mux=on,signal=off -device virtio-serial,romfile= -device virtconsole,chardev=mux ", | ||
"cfg_3": "-serial chardev:mux -monitor chardev:mux -monitor pty -no-hpet -nodefaults ", | ||
"cfg_var_1": "-name process=$VM_TYPEVM_$PORT,debug-threads=on ", | ||
"cfg_var_2": "-cpu host,host-phys-bits,pmu=$PMU ", | ||
"cfg_var_3": "-smp cpus=$VCPU,sockets=$SOCKETS ", | ||
"cfg_var_4": "-m $MEMG ", | ||
"cfg_var_5": "-kernel $KERNEL_IMG ", | ||
"cfg_var_6": "-initrd $INITRD_IMG", | ||
"cfg_var_7": "-netdev user,id=mynet0,hostfwd=tcp::$PORT-:22 ", | ||
"cfg_var_8": "-drive file=$GUEST_IMG,if=virtio,format=$IMG_FORMAT ", | ||
"cfg_var_9": "-append \"root=/dev/vda3 ro console=hvc0 earlyprintk=ttyS0 ignore_loglevel debug earlyprintk l1tf=off initcall_debug log_buf_len=200M nokaslr tsc=reliable efi=debug mce=off efi=debug $CMDLINE\" ", | ||
"cfg_var_10": "-bios $BIOS_IMG " | ||
}, | ||
"vm": { | ||
"cfg_1": "-accel kvm -no-reboot -nographic -vga none -device virtio-net-pci,netdev=mynet0,mac=DE:AD:BE:EF:AB:CD,romfile= ", | ||
"cfg_2": "-chardev stdio,id=mux,mux=on,signal=off -device virtio-serial,romfile= -device virtconsole,chardev=mux ", | ||
"cfg_3": "-serial chardev:mux -monitor chardev:mux -monitor pty -no-hpet -nodefaults ", | ||
"cfg_var_1": "-name process=$VM_TYPEVM_$PORT,debug-threads=on ", | ||
"cfg_var_2": "-cpu host,host-phys-bits,pmu=$PMU ", | ||
"cfg_var_3": "-smp cpus=$VCPU,sockets=$SOCKETS ", | ||
"cfg_var_4": "-m $MEMG ", | ||
"cfg_var_5": "-kernel $KERNEL_IMG ", | ||
"cfg_var_6": "-initrd $INITRD_IMG", | ||
"cfg_var_7": "-netdev user,id=mynet0,hostfwd=tcp::$PORT-:22 ", | ||
"cfg_var_8": "-drive file=$GUEST_IMG,if=virtio,format=$IMG_FORMAT ", | ||
"cfg_var_9": "-append \"root=/dev/vda3 ro console=hvc0 earlyprintk=ttyS0 ignore_loglevel debug earlyprintk l1tf=off initcall_debug log_buf_len=200M nokaslr tsc=reliable efi=debug mce=off efi=debug $CMDLINE\" ", | ||
"cfg_var_10": "-bios $BIOS_IMG " | ||
}, | ||
|
||
"tdx": { | ||
"cfg_1": "-machine q35,kernel_irqchip=split,confidential-guest-support=tdx,memory-backend=ram1 ", | ||
"cfg_var_1": "-object tdx-guest,id=tdx,debug=$DEBUG,sept-ve-disable=on,quote-generation-service=vsock:2:4050 ", | ||
"cfg_var_2": "-object memory-backend-memfd-private,id=ram1,size=$MEMG " | ||
}, | ||
"tdx": { | ||
"cfg_1": "-machine q35,kernel_irqchip=split,confidential-guest-support=tdx,memory-backend=ram1 ", | ||
"cfg_var_1": "-object tdx-guest,id=tdx,debug=$DEBUG,sept-ve-disable=on,quote-generation-service=vsock:2:4050 ", | ||
"cfg_var_2": "-object memory-backend-memfd-private,id=ram1,size=$MEMG " | ||
}, | ||
|
||
"tdxio": { | ||
"cfg_1": "-object iommufd,id=iommufd0 ", | ||
"cfg_2": "-device vfio-pci,host=tee_bdf1,id=hostdev2,addr=0x3,x-secure-mode=on ", | ||
"cfg_3": "-device vfio-pci,host=tee_bdf2,id=hostdev3,addr=0x4,x-secure-mode=on ", | ||
"cfg_4": "-device vfio-pci,host=tee_bdf3,id=hostdev4,addr=0x5,x-secure-mode=on ", | ||
"cfg_5": "-device vfio-pci,host=tee_bdf4,id=hostdev5,addr=0x6,x-secure-mode=on " | ||
} | ||
"tdxio": { | ||
"cfg_1": "-object iommufd,id=iommufd0 ", | ||
"cfg_2": "-device vfio-pci,host=tee_bdf1,id=hostdev2,addr=0x3,x-secure-mode=on ", | ||
"cfg_3": "-device vfio-pci,host=tee_bdf2,id=hostdev3,addr=0x4,x-secure-mode=on ", | ||
"cfg_4": "-device vfio-pci,host=tee_bdf3,id=hostdev4,addr=0x5,x-secure-mode=on ", | ||
"cfg_5": "-device vfio-pci,host=tee_bdf4,id=hostdev5,addr=0x6,x-secure-mode=on " | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Yongyu,
You mixed 'tabs' and 'spaces' for the indentation in the whole file.
Would you like to fix it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in new commit