Skip to content

Commit f4116bf

Browse files
kirylhansendc
authored andcommitted
x86/tdx: Allow 32-bit emulation by default
32-bit emulation was disabled on TDX to prevent a possible attack by a VMM injecting an interrupt on vector 0x80. Now that int80_emulation() has a check for external interrupts the limitation can be lifted. To distinguish software interrupts from external ones, int80_emulation() checks the APIC ISR bit relevant to the 0x80 vector. For software interrupts, this bit will be 0. On TDX, the VAPIC state (including ISR) is protected and cannot be manipulated by the VMM. The ISR bit is set by the microcode flow during the handling of posted interrupts. [ dhansen: more changelog tweaks ] Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Reviewed-by: Borislav Petkov (AMD) <[email protected]> Cc: <[email protected]> # v6.0+
1 parent 55617fb commit f4116bf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

arch/x86/coco/tdx/tdx.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -892,14 +892,5 @@ void __init tdx_early_init(void)
892892
*/
893893
x86_cpuinit.parallel_bringup = false;
894894

895-
/*
896-
* The VMM is capable of injecting interrupt 0x80 and triggering the
897-
* compatibility syscall path.
898-
*
899-
* By default, the 32-bit emulation is disabled in order to ensure
900-
* the safety of the VM.
901-
*/
902-
ia32_disable();
903-
904895
pr_info("Guest detected\n");
905896
}

0 commit comments

Comments
 (0)