Re: [RFC PATCH v6 15/32] x86/apic: Add new driver for Secure AVIC
From: Tianyu Lan
Date: Tue Jun 10 2025 - 02:52:54 EST
On Wed, May 14, 2025 at 3:25 PM Neeraj Upadhyay <Neeraj.Upadhyay@xxxxxxx> wrote:
>
> The Secure AVIC feature provides SEV-SNP guests hardware acceleration
> for performance sensitive APIC accesses while securely managing the
> guest-owned APIC state through the use of a private APIC backing page.
> This helps prevent hypervisor from generating unexpected interrupts for
> a vCPU or otherwise violate architectural assumptions around APIC
> behavior.
>
> Add a new x2APIC driver that will serve as the base of the Secure AVIC
> support. It is initially the same as the x2APIC phys driver (without
> IPI callbacks), but will be modified as features of Secure AVIC are
> implemented.
>
> As the new driver does not implement Secure AVIC features yet, if the
> hypervisor sets the Secure AVIC bit in SEV_STATUS, maintain the existing
> behavior to enforce the guest termination.
>
> 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>
> ---
Reviewed-by: Tianyu Lan <tiala@xxxxxxxxxxxxx>
--
Thanks
Tianyu Lan