]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/sev: Enable NMI support for Secure AVIC
authorKishon Vijay Abraham I <kvijayab@amd.com>
Thu, 28 Aug 2025 11:13:15 +0000 (16:43 +0530)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 1 Sep 2025 11:00:43 +0000 (13:00 +0200)
commit28bbfad229e4addf9990279c73c07b762b4a04e4
tree6fae40507a9a9a0e0e99a0cb8bf6b7961c9a01d0
parent869e36b9660dd72ab960b74c55d7a200c22588d0
x86/sev: Enable NMI support for Secure AVIC

Now that support to send NMI IPI and support to inject NMI from the hypervisor
has been added, set V_NMI_ENABLE in the VINTR_CTRL field of the VMSA to enable
NMI for Secure AVIC guests.

  [ bp: Zap useless brackets. ]

Signed-off-by: Kishon Vijay Abraham I <kvijayab@amd.com>
Signed-off-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tianyu Lan <tiala@microsoft.com>
Link: https://lore.kernel.org/20250828111315.208959-1-Neeraj.Upadhyay@amd.com
arch/x86/coco/sev/core.c