intel / tdx-linux

GNU General Public License v2.0
18 stars 3 forks source link

TDX guest launch fails during boot #1

Open benschlueter opened 6 months ago

benschlueter commented 6 months ago

I've follwed the steps described in build but I am unable to start a TD.

bschlueter@Turbo:~/custom-tdx$ sudo ./run_qemu.sh
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.intel-pt [bit 25]
qemu-system-x86_64: warning: ram_block_discard_range_fd: Discarding RAM in private file mappings is possibly dangerous, because it will modify the underlying file and will affect other users of the file
[    0.000000] tdx: Guest detected
[    0.000000] Linux version 6.6.0-rc2-tdx-clean (bschlueter@Turbo) (gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.41) #3 SMP Tue Apr  9 13:03:08 CEST 2024
[    0.000000] Command line: root=/dev/vda1 console=ttyS0
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Hygon HygonGenuine
[    0.000000]   Centaur CentaurHauls
[    0.000000]   zhaoxin   Shanghai
[    0.000000] x86/split lock detection: #DB: warning on user-space bus_locks
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000080bfff] usable
[    0.000000] BIOS-e820: [mem 0x000000000080c000-0x000000000080cfff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000000080d000-0x000000007d09bfff] usable
[    0.000000] BIOS-e820: [mem 0x000000007d09c000-0x000000007d09cfff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000007d09d000-0x000000007d194fff] usable
[    0.000000] BIOS-e820: [mem 0x000000007d195000-0x000000007d195fff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000007d196000-0x000000007d196fff] usable
[    0.000000] BIOS-e820: [mem 0x000000007d197000-0x000000007d198fff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000007d199000-0x000000007d199fff] usable
[    0.000000] BIOS-e820: [mem 0x000000007d19a000-0x000000007d19afff] reserved
[    0.000000] BIOS-e820: [mem 0x000000007d19b000-0x000000007d19bfff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000007d19c000-0x000000007d1b6fff] usable
[    0.000000] BIOS-e820: [mem 0x000000007d1b7000-0x000000007d1fffff] reserved
[    0.000000] BIOS-e820: [mem 0x000000007d200000-0x000000007d40efff] usable
[    0.000000] BIOS-e820: [mem 0x000000007d40f000-0x000000007d531fff] reserved
[    0.000000] BIOS-e820: [mem 0x000000007d532000-0x000000007d54dfff] usable
[    0.000000] BIOS-e820: [mem 0x000000007d54e000-0x000000007d565fff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000007d566000-0x000000007d56efff] reserved
[    0.000000] BIOS-e820: [mem 0x000000007d56f000-0x000000007d570fff] usable
[    0.000000] BIOS-e820: [mem 0x000000007d571000-0x000000007d5b1fff] reserved
[    0.000000] BIOS-e820: [mem 0x000000007d5b2000-0x000000007e7b4fff] usable
[    0.000000] BIOS-e820: [mem 0x000000007e7b5000-0x000000007e80cfff] reserved
[    0.000000] BIOS-e820: [mem 0x000000007e80d000-0x000000007e814fff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000007e815000-0x000000007e818fff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000007e819000-0x000000007ff7bfff] usable
[    0.000000] BIOS-e820: [mem 0x000000007ff7c000-0x000000007fffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000b0000000-0x00000000bfffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000017fffffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] APIC: Static calls initialized
[    0.000000] efi: EFI v2.7 by EDK II
[    0.000000] efi: ACPI=0x7e814000 ACPI 2.0=0x7e814014 SMBIOS=0x7e7ea000 SMBIOS 3.0=0x7e7e8000 MEMATTR=0x7d0a1298 Unaccepted=0x7e80d018
[    0.000000] SMBIOS 3.0.0 present.
[    0.000000] DMI: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown unknown
[    0.000000] Hypervisor detected: KVM
[    0.000000] tsc: Detected 2800.000 MHz processor
[    0.000019] last_pfn = 0x180000 max_arch_pfn = 0x10000000000
[    0.000045] MTRRs disabled by BIOS
[    0.000046] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC
[    0.000056] x2apic: enabled by BIOS, switching to x2apic ops
[    0.000075] last_pfn = 0x7ff7c max_arch_pfn = 0x10000000000
[    0.011713] software IO TLB: SWIOTLB bounce buffer size adjusted to 245MB
[    0.011721] Using GB pages for direct mapping
[    0.018622] Secure boot disabled
[    0.018624] ACPI: Early table checksum verification disabled
[    0.018627] ACPI: RSDP 0x000000007E814014 000024 (v02 BOCHS )
[    0.018631] ACPI: XSDT 0x000000007E8130E8 000054 (v01 BOCHS  BXPC     00000001      01000013)
[    0.018638] ACPI: FACP 0x000000007E80E000 0000F4 (v03 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.018644] ACPI: DSDT 0x000000007E80F000 002164 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.018648] ACPI: FACS 0x000000007E817000 000040
[    0.018651] ACPI: CCEL 0x000000007E812000 000038 (v01 INTEL  EDK2     00000002      01000013)
[    0.018654] ACPI: HPET 0x000000007D198000 000038 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.018657] ACPI: MCFG 0x000000007D197000 00003C (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.018660] ACPI: WAET 0x000000007D195000 000028 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.018663] ACPI: APIC 0x000000007D19B000 00010E (v03 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.018665] ACPI: Reserving FACP table memory at [mem 0x7e80e000-0x7e80e0f3]
[    0.018667] ACPI: Reserving DSDT table memory at [mem 0x7e80f000-0x7e811163]
[    0.018667] ACPI: Reserving FACS table memory at [mem 0x7e817000-0x7e81703f]
[    0.018668] ACPI: Reserving CCEL table memory at [mem 0x7e812000-0x7e812037]
[    0.018668] ACPI: Reserving HPET table memory at [mem 0x7d198000-0x7d198037]
[    0.018669] ACPI: Reserving MCFG table memory at [mem 0x7d197000-0x7d19703b]
[    0.018669] ACPI: Reserving WAET table memory at [mem 0x7d195000-0x7d195027]
[    0.018670] ACPI: Reserving APIC table memory at [mem 0x7d19b000-0x7d19b10d]
[    0.018740] APIC: Switched APIC routing to: cluster x2apic
[    0.019377] No NUMA configuration found
[    0.019378] Faking a node at [mem 0x0000000000000000-0x000000017fffffff]
[    0.019384] NODE_DATA(0) allocated [mem 0x17ffd3000-0x17fffdfff]
[    0.207438] Zone ranges:
[    0.207439]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.207441]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.207442]   Normal   [mem 0x0000000100000000-0x000000017fffffff]
[    0.207443]   Device   empty
[    0.207443] Movable zone start for each node
[    0.207446] Early memory node ranges
[    0.207446]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.207447]   node   0: [mem 0x0000000000100000-0x000000000080bfff]
[    0.207448]   node   0: [mem 0x000000000080d000-0x000000007d09bfff]
[    0.207449]   node   0: [mem 0x000000007d09d000-0x000000007d194fff]
[    0.207449]   node   0: [mem 0x000000007d196000-0x000000007d196fff]
[    0.207450]   node   0: [mem 0x000000007d199000-0x000000007d199fff]
[    0.207450]   node   0: [mem 0x000000007d19c000-0x000000007d1b6fff]
[    0.207451]   node   0: [mem 0x000000007d200000-0x000000007d40efff]
[    0.207451]   node   0: [mem 0x000000007d532000-0x000000007d54dfff]
[    0.207452]   node   0: [mem 0x000000007d56f000-0x000000007d570fff]
[    0.207452]   node   0: [mem 0x000000007d5b2000-0x000000007e7b4fff]
[    0.207452]   node   0: [mem 0x000000007e80d000-0x000000007e80dfff]
[    0.207453]   node   0: [mem 0x000000007e819000-0x000000007ff7bfff]
[    0.207453]   node   0: [mem 0x0000000100000000-0x000000017fffffff]
[    0.207455] Initmem setup node 0 [mem 0x0000000000001000-0x000000017fffffff]
[    0.207459] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.207470] On node 0, zone DMA: 96 pages in unavailable ranges
[    0.207480] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.209748] On node 0, zone DMA32: 1 pages in unavailable ranges
[    0.209749] On node 0, zone DMA32: 1 pages in unavailable ranges
[    0.209750] On node 0, zone DMA32: 2 pages in unavailable ranges
[    0.209750] On node 0, zone DMA32: 2 pages in unavailable ranges
[    0.209753] On node 0, zone DMA32: 73 pages in unavailable ranges
[    0.209755] On node 0, zone DMA32: 291 pages in unavailable ranges
[    0.209756] On node 0, zone DMA32: 33 pages in unavailable ranges
[    0.209777] On node 0, zone DMA32: 65 pages in unavailable ranges
[    0.209778] On node 0, zone DMA32: 88 pages in unavailable ranges
[    0.209805] On node 0, zone DMA32: 11 pages in unavailable ranges
[    0.212138] On node 0, zone Normal: 132 pages in unavailable ranges
[    0.213004] ACPI: PM-Timer IO Port: 0x608
[    0.213032] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[    0.213145] IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
[    0.213148] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[    0.213150] ACPI: INT_SRC_OVR (bus 0 bus_irq 1 global_irq 1 high edge)
[    0.213150] ACPI: INT_SRC_OVR (bus 0 bus_irq 2 global_irq 2 high edge)
[    0.213151] ACPI: INT_SRC_OVR (bus 0 bus_irq 3 global_irq 3 high edge)
[    0.213152] ACPI: INT_SRC_OVR (bus 0 bus_irq 4 global_irq 4 high edge)
[    0.213152] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high edge)
[    0.213153] ACPI: INT_SRC_OVR (bus 0 bus_irq 6 global_irq 6 high edge)
[    0.213153] ACPI: INT_SRC_OVR (bus 0 bus_irq 7 global_irq 7 high edge)
[    0.213154] ACPI: INT_SRC_OVR (bus 0 bus_irq 8 global_irq 8 high edge)
[    0.213154] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high edge)
[    0.213155] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high edge)
[    0.213156] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high edge)
[    0.213157] ACPI: INT_SRC_OVR (bus 0 bus_irq 12 global_irq 12 high edge)
[    0.213157] ACPI: INT_SRC_OVR (bus 0 bus_irq 13 global_irq 13 high edge)
[    0.213158] ACPI: INT_SRC_OVR (bus 0 bus_irq 14 global_irq 14 high edge)
[    0.213158] ACPI: INT_SRC_OVR (bus 0 bus_irq 15 global_irq 15 high edge)
[    0.213162] ACPI: Found unsupported MADT entry (type = 0x10)
[    0.213163] ACPI: APIC: wakeup_secondary_cpu_64() replaced with acpi_wakeup_cpu()
[    0.213169] ACPI: Using ACPI (MADT) for SMP configuration information
[    0.213171] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[    0.213174] TSC deadline timer available
[    0.213175] smpboot: Allowing 4 CPUs, 0 hotplug CPUs
[    0.213276] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.213277] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000fffff]
[    0.213278] PM: hibernation: Registered nosave memory: [mem 0x0080c000-0x0080cfff]
[    0.213279] PM: hibernation: Registered nosave memory: [mem 0x7d09c000-0x7d09cfff]
[    0.213280] PM: hibernation: Registered nosave memory: [mem 0x7d195000-0x7d195fff]
[    0.213281] PM: hibernation: Registered nosave memory: [mem 0x7d197000-0x7d198fff]
[    0.213282] PM: hibernation: Registered nosave memory: [mem 0x7d19a000-0x7d19afff]
[    0.213283] PM: hibernation: Registered nosave memory: [mem 0x7d19b000-0x7d19bfff]
[    0.213284] PM: hibernation: Registered nosave memory: [mem 0x7d1b7000-0x7d1fffff]
[    0.213285] PM: hibernation: Registered nosave memory: [mem 0x7d40f000-0x7d531fff]
[    0.213286] PM: hibernation: Registered nosave memory: [mem 0x7d54e000-0x7d565fff]
[    0.213286] PM: hibernation: Registered nosave memory: [mem 0x7d566000-0x7d56efff]
[    0.213287] PM: hibernation: Registered nosave memory: [mem 0x7d571000-0x7d5b1fff]
[    0.213288] PM: hibernation: Registered nosave memory: [mem 0x7e7b5000-0x7e80cfff]
[    0.213289] PM: hibernation: Registered nosave memory: [mem 0x7e80d000-0x7e814fff]
[    0.213289] PM: hibernation: Registered nosave memory: [mem 0x7e815000-0x7e818fff]
[    0.213290] PM: hibernation: Registered nosave memory: [mem 0x7ff7c000-0x7fffffff]
[    0.213290] PM: hibernation: Registered nosave memory: [mem 0x80000000-0xafffffff]
[    0.213291] PM: hibernation: Registered nosave memory: [mem 0xb0000000-0xbfffffff]
[    0.213292] PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xffffffff]
[    0.213293] [mem 0xc0000000-0xffffffff] available for PCI devices
[    0.213294] Booting paravirtualized kernel on KVM
[    0.213295] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.213300] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:4 nr_cpu_ids:4 nr_node_ids:1
[    0.219361] percpu: Embedded 63 pages/cpu s221184 r8192 d28672 u524288
[    0.219493] kvm-guest: PV spinlocks enabled
[    0.219496] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.219499] Kernel command line: root=/dev/vda1 console=ttyS0
[    0.219536] random: crng init done
[    0.231635] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.237648] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.237720] Fallback order for Node 0: 0
[    0.237723] Built 1 zonelists, mobility grouping on.  Total pages: 1031245
[    0.237724] Policy zone: Normal
[    0.237728] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[    0.237732] software IO TLB: area num 4.
[    0.237733] software IO TLB: SWIOTLB bounce buffer size roundup to 256MB
[    0.298950] Memory: 3734968K/4191116K available (20480K kernel code, 4273K rwdata, 7304K rodata, 4796K init, 5092K bss, 455948K reserved, 0K cma-reserved)
[    0.299090] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.299110] ftrace: allocating 52745 entries in 207 pages
[    0.299174] ftrace section at ffffffffb4a820e0 sorted properly
[    0.308072] ftrace: allocated 207 pages with 6 groups
[    0.326102] rcu: Hierarchical RCU implementation.
[    0.326103] rcu:     RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=4.
[    0.326104]  Rude variant of Tasks RCU enabled.
[    0.326104]  Tracing variant of Tasks RCU enabled.
[    0.326105] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.326106] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.328023] Using NULL legacy PIC
[    0.328023] NR_IRQS: 524544, nr_irqs: 456, preallocated irqs: 0
[    0.328052] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.328307] Console: colour dummy device 80x25
[    0.328384] printk: console [ttyS0] enabled
[    0.638150] ACPI: Core revision 20230628
[    0.639397] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[    0.641815] Failed to register legacy timer interrupt
[    0.643117] APIC: Switch to symmetric I/O mode setup
[    0.647109] APIC: Switched APIC routing to: physical x2apic
[    0.648545] kvm-guest: APIC: send_IPI_mask() replaced with kvm_send_ipi_mask()
[    0.650419] kvm-guest: APIC: send_IPI_mask_allbutself() replaced with kvm_send_ipi_mask_allbutself()
[    0.652727] kvm-guest: setup PV IPIs
[    0.653863] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x285c40e2248, max_idle_ns: 440795340634 ns
[    0.656520] Calibrating delay loop (skipped), value calculated using timer frequency.. 5600.00 BogoMIPS (lpj=11200000)
[    0.659376] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[    0.660518] process: using TDX aware idle routine
[    0.660518] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.660518] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[    0.660518] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.660518] Spectre V2 : Mitigation: Enhanced / Automatic IBRS
[    0.660518] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.660518] Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT
[    0.660518] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[    0.660518] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl
[    0.660518] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.660518] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.660518] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.660518] x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask'
[    0.660518] x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256'
[    0.660518] x86/fpu: Supporting XSAVE feature 0x080: 'AVX-512 ZMM_Hi256'
[    0.660518] x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
[    0.660518] x86/fpu: Supporting XSAVE feature 0x20000: 'AMX Tile config'
[    0.660518] x86/fpu: Supporting XSAVE feature 0x40000: 'AMX Tile data'
[    0.660518] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.660518] x86/fpu: xstate_offset[5]:  832, xstate_sizes[5]:   64
[    0.660518] x86/fpu: xstate_offset[6]:  896, xstate_sizes[6]:  512
[    0.660518] x86/fpu: xstate_offset[7]: 1408, xstate_sizes[7]: 1024
[    0.660518] x86/fpu: xstate_offset[9]: 2432, xstate_sizes[9]:    8
[    0.660518] x86/fpu: xstate_offset[17]: 2496, xstate_sizes[17]:   64
[    0.660518] x86/fpu: xstate_offset[18]: 2560, xstate_sizes[18]: 8192
[    0.660518] x86/fpu: Enabled xstate features 0x602e7, context size is 10752 bytes, using 'compacted' format.
[    0.660518] Freeing SMP alternatives memory: 44K
[    0.660518] Memory Encryption Features active: Intel TDX
[    0.660518] pid_max: default: 32768 minimum: 301
[    0.660518] LSM: initializing lsm=lockdown,capability,landlock,yama,apparmor,integrity
[    0.660518] landlock: Up and running.
[    0.660518] Yama: becoming mindful.
[    0.660518] AppArmor: AppArmor initialized
[    0.660518] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.660518] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.660518] smpboot: CPU0: Intel 06/cf (family: 0x6, model: 0xcf, stepping: 0x2)
[    0.660518] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.660518] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.660543] Performance Events: PEBS fmt4+-baseline,  AnyThread deprecated, Sapphire Rapids events, full-width counters, Intel PMU driver.
[    0.663709] ... version:                5
[    0.664518] ... bit width:              48
[    0.664528] ... generic registers:      8
[    0.665543] ... value mask:             0000ffffffffffff
[    0.666902] ... max period:             00007fffffffffff
[    0.668230] ... fixed-purpose events:   4
[    0.668528] ... event mask:             0001000f000000ff
[    0.669924] signal: max sigframe size: 11952
[    0.671066] rcu: Hierarchical SRCU implementation.
[    0.672303] rcu:     Max phase no-delay instances is 1000.
[    0.676677] smp: Bringing up secondary CPUs ...
[    0.677810] smpboot: Parallel CPU startup disabled by the platform
[    0.679401] smpboot: x86: Booting SMP configuration:
[    0.680518] .... node  #0, CPUs:      #1 #2 #3
[    0.686521] smp: Brought up 1 node, 4 CPUs
[    0.689613] smpboot: Max logical packages: 1
[    0.690681] smpboot: Total of 4 processors activated (22400.00 BogoMIPS)
[    0.692518] devtmpfs: initialized
[    0.692563] x86/mm: Memory block size: 128MB
[    0.693876] ACPI: PM: Registering ACPI NVS region [mem 0x0080c000-0x0080cfff] (4096 bytes)
[    0.694597] ACPI: PM: Registering ACPI NVS region [mem 0x7d54e000-0x7d565fff] (98304 bytes)
[    0.696539] ACPI: PM: Registering ACPI NVS region [mem 0x7e815000-0x7e818fff] (16384 bytes)
[    0.698639] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.700535] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.702278] pinctrl core: initialized pinctrl subsystem
[    0.703824] PM: RTC time: 13:47:53, date: 2024-04-09
[    0.705050] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.709837] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.712518] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.713595] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.715534] audit: initializing netlink subsys (disabled)
[    0.716634] thermal_sys: Registered thermal governor 'fair_share'
[    0.716635] thermal_sys: Registered thermal governor 'bang_bang'
[    0.716542] audit: type=2000 audit(1712670472.060:1): state=initialized audit_enabled=0 res=1
[    0.718137] thermal_sys: Registered thermal governor 'step_wise'
[    0.718138] thermal_sys: Registered thermal governor 'user_space'
[    0.722024] thermal_sys: Registered thermal governor 'power_allocator'
[    0.723561] EISA bus registered
[    0.725332] cpuidle: using governor ladder
[    0.726369] cpuidle: using governor menu
[    0.727852] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.728743] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xb0000000-0xbfffffff] (base 0xb0000000)
[    0.731047] PCI: MMCONFIG at [mem 0xb0000000-0xbfffffff] reserved as E820 entry
[    0.732518] PCI: Using configuration type 1 for base access
error: kvm run failed Bad address
EAX=00000000 EBX=00000000 ECX=00000000 EDX=000c06f2
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =f000 ffff0000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

dmesg of the host

[    0.440366] virt/tdx: BIOS enabled: private KeyID range [32, 64)
[    0.440368] virt/tdx: Disable ACPI S3 suspend. Turn off TDX in the BIOS to use ACPI S3.
[    1.721718]     BOOT_IMAGE=/boot/vmlinuz-6.6.0-rc2-tdx-clean
[    1.927704] usb usb1: Manufacturer: Linux 6.6.0-rc2-tdx-clean xhci-hcd
[    1.929538] usb usb2: Manufacturer: Linux 6.6.0-rc2-tdx-clean xhci-hcd
[    5.568321] virt/tdx: TDX module: attributes 0x0, vendor_id 0x8086, major_version 1, minor_version 5, build_date 20231008, build_num 595
[    5.568324] virt/tdx: CMR: [0x100000, 0x77800000)
[    5.568325] virt/tdx: CMR: [0x100000000, 0x2076000000)
[    5.799119] virt/tdx: 525320 KBs allocated for PAMT
[    5.799122] virt/tdx: module initialized
fyin1 commented 4 months ago

Could you please check whether your kernel config is following https://github.com/intel/tdx-linux/wiki/Instruction-to-set-up-TDX-host-and-guest#kernel-configuration-for-tdx-support

And please make sure CONFIG_EISA CONFIG_KSM are disabled also.

aaronlu commented 4 months ago

I used a kconfig based on Fedora's and didn't have CONFIG_EISA on. I turned it on and can reproduce this issue. I've updated the wiki page to add that information, thanks for reporting this issue @benschlueter

benschlueter commented 4 months ago

Thanks for looking into this, I will try it as soon as I can.