Re: [RFC PATCH v8 27/35] x86/apic: Add support to send NMI IPI for Secure AVIC

From: Tianyu Lan
Date: Thu Jul 17 2025 - 22:58:31 EST


On Wed, Jul 9, 2025 at 11:45 AM Neeraj Upadhyay <Neeraj.Upadhyay@xxxxxxx> wrote:
>
> Secure AVIC has introduced a new field in the APIC backing page
> "NmiReq" that has to be set by the guest to request a NMI IPI
> through APIC_ICR write.
>
> Add support to set NmiReq appropriately to send NMI IPI.
>
> Sending NMI IPI also requires Virtual NMI feature to be enabled
> in VINTRL_CTRL field in the VMSA. However, this would be added by
> a later commit after adding support for injecting NMI from the
> hypervisor.
>
> Co-developed-by: Kishon Vijay Abraham I <kvijayab@xxxxxxx>
> Signed-off-by: Kishon Vijay Abraham I <kvijayab@xxxxxxx>
> Signed-off-by: Neeraj Upadhyay <Neeraj.Upadhyay@xxxxxxx>
> ---
> Changes since v7:
> - No change.
Reviewed-by: Tianyu Lan <tiala@xxxxxxxxxxxxx>
--
Thanks
Tianyu Lan