I want to pass a NVMe device to VM using the device-passthrough branch, but I ran into an error that the system couldn't start, it's stuck here:
# qemu-system-x86_64 -enable-kvm -drive file=/root/tdx-noble-24.04/guest-tools/image/tdx-guest-ubuntu-24.04-generic.qcow2,if=virtio -smp cores=20,threads=2,sockets=2 -m 5G -cpu host -netdev user,id=n1,ipv6=off,hostfwd=tcp::2022-:22 -device virtio-net-pci,netdev=n1,mac=7c:c2:55:9f:64:58 -nographic -object tdx-guest,id=tdx -object memory-backend-ram,id=mem0,size=5G -machine q35,kernel-irqchip=split,confidential-guest-support=tdx,memory-backend=mem0 -bios /root/git/edk2_sn/OVMF.fd -vga none -nodefaults -serial stdio
BdsDxe: loading Boot0007 "Ubuntu" from HD(15,GPT,73CBA394-9E5D-4AAC-9A82-73A0939BDFF9,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi
BdsDxe: starting Boot0007 "Ubuntu" from HD(15,GPT,73CBA394-9E5D-4AAC-9A82-73A0939BDFF9,0x2800,0x35000)/\EFI\ubuntu\shimx64.efi
Loading Linux 6.8.0-41-generic ...
Loading initial ramdisk ...
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Measured initrd data into PCR 9
I've patched QEMU and KVM, and my system has been activated TDX:
[ 3.787546] virt/tdx: module initialized
I didn't use the https://github.com/tianocore/edk2.git code to generate OVMF because there was a problem upgrading the subunits, and I replaced it with https://github.com/tlendacky/edk2.git > snp-fixes.
What is the cause of this mistake?
I want to pass a NVMe device to VM using the device-passthrough branch, but I ran into an error that the system couldn't start, it's stuck here:
# qemu-system-x86_64 -enable-kvm -drive file=/root/tdx-noble-24.04/guest-tools/image/tdx-guest-ubuntu-24.04-generic.qcow2,if=virtio -smp cores=20,threads=2,sockets=2 -m 5G -cpu host -netdev user,id=n1,ipv6=off,hostfwd=tcp::2022-:22 -device virtio-net-pci,netdev=n1,mac=7c:c2:55:9f:64:58 -nographic -object tdx-guest,id=tdx -object memory-backend-ram,id=mem0,size=5G -machine q35,kernel-irqchip=split,confidential-guest-support=tdx,memory-backend=mem0 -bios /root/git/edk2_sn/OVMF.fd -vga none -nodefaults -serial stdioBdsDxe: loading Boot0007 "Ubuntu" from HD(15,GPT,73CBA394-9E5D-4AAC-9A82-73A0939BDFF9,0x2800,0x35000)/\EFI\ubuntu\shimx64.efiBdsDxe: starting Boot0007 "Ubuntu" from HD(15,GPT,73CBA394-9E5D-4AAC-9A82-73A0939BDFF9,0x2800,0x35000)/\EFI\ubuntu\shimx64.efiLoading Linux 6.8.0-41-generic ...Loading initial ramdisk ...EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device pathEFI stub: Measured initrd data into PCR 9I've patched QEMU and KVM, and my system has been activated TDX:
[ 3.787546] virt/tdx: module initializedI didn't use the https://github.com/tianocore/edk2.git code to generate OVMF because there was a problem upgrading the subunits, and I replaced it with https://github.com/tlendacky/edk2.git > snp-fixes.
What is the cause of this mistake?