Skip to content

qemu-system-x86_64: vm-type TDX not supported by KVM #385

Description

@maryvt

Host

dmesg | grep -i tdx

[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-1028-intel root=UUID=78f2183d-1048-4bb6-94a6-24aee8e27741 ro nohibernate nohibernate kvm_intel.tdx=on
[ 4.729823] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-1028-intel root=UUID=78f2183d-1048-4bb6-94a6-24aee8e27741 ro nohibernate nohibernate kvm_intel.tdx=on
[ 9.360001] virt/tdx: BIOS enabled: private KeyID range [32, 64)
[ 9.360003] virt/tdx: Disable ACPI S3. Turn off TDX in the BIOS to use ACPI S3.
[ 31.199907] virt/tdx: TDX module: attributes 0x0, vendor_id 0x8086, major_version 1, minor_version 5, build_date 20240725, build_num 784
[ 31.199911] virt/tdx: CMR: [0x100000, 0x77800000)
[ 31.199914] virt/tdx: CMR: [0x100000000, 0x1003e000000)
[ 31.199915] virt/tdx: CMR: [0x10080000000, 0x20040000000)
[ 36.379127] virt/tdx: 8396820 KB allocated for PAMT
[ 36.379132] virt/tdx: module initialized

#qemu-system-x86_64
-enable-kvm
-drive file=$PREFIX/images/ubuntu.qcow2,if=virtio
-smp cores=${CORES},threads=${THREADS},sockets=${SOCKETS}
-object tdx-guest,id=tdx
-m ${MEM}G
-object memory-backend-ram,id=mem0,size=${MEM}G
-cpu host
-netdev user,id=n1,ipv6=off,hostfwd=tcp::2022-:22
-device virtio-net-pci,netdev=n1,mac=xx:xx:xx:xx:xx:xx
-nographic
-machine q35,kernel-irqchip=split,confidential-guest-support=tdx,memory-backend=mem0
-bios /root/mary_dir/tdx-linux/edk2/OVMF.fd
-vga none
-nodefaults
-serial stdio \

#qemu-system-x86_64: vm-type TDX not supported by KVM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions