]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/apic: Enable Secure AVIC in the control MSR
authorNeeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Thu, 28 Aug 2025 11:21:26 +0000 (16:51 +0530)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 1 Sep 2025 11:18:14 +0000 (13:18 +0200)
commitc4074ab87f3483deb15f277f302f199cdb997738
tree7d107a5cb37b46c7c43e97db576cfe51d87ad984
parentc8018325dd3e7c75c19b1e9263c358c4c96214f9
x86/apic: Enable Secure AVIC in the control MSR

With all the pieces in place now, enable Secure AVIC in the Secure AVIC
Control MSR. Any access to x2APIC MSRs are emulated by the hypervisor
before Secure AVIC is enabled in the control MSR.  Post Secure AVIC
enablement, all x2APIC MSR accesses (whether accelerated by AVIC
hardware or trapped as a #VC exception) operate on the vCPU's APIC
backing page.

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/20250828112126.209028-1-Neeraj.Upadhyay@amd.com
arch/x86/include/asm/msr-index.h
arch/x86/kernel/apic/x2apic_savic.c