Re: [PATCH v6 1/5] x86/kvm: Add AMD SEV specific Hypercall3
From: Borislav Petkov
Date: Tue Sep 21 2021 - 10:51:39 EST
On Tue, Sep 21, 2021 at 01:50:09PM +0000, Sean Christopherson wrote:
> apply_alternatives() is a generic helper that can work on any struct alt_instr
> array, e.g. KVM_HYPERCALL can put its alternative into a different section that's
> patched as soon as the VMM is identified.
Where exactly in the boot process you wanna move it?
As Ashish says, you need the boot_cpu_data bits properly set before it
runs.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette