Re: [PATCH] KVM: SVM: Macrofy SEV=n versions of sev_xxx_guest()

From: Sean Christopherson
Date: Wed Dec 18 2024 - 21:45:19 EST


On Wed, 27 Nov 2024 15:46:59 -0800, Sean Christopherson wrote:
> Define sev_{,es_,snp_}guest() as "false" when SEV is disabled via Kconfig,
> i.e. when CONFIG_KVM_AMD_SEV=n. Despite the helpers being __always_inline,
> gcc-12 is somehow incapable of realizing that the return value is a
> compile-time constant and generates sub-optimal code.
>
> Opportunistically clump the paths together to reduce the amount of
> ifdeffery.
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/1] KVM: SVM: Macrofy SEV=n versions of sev_xxx_guest()
https://github.com/kvm-x86/linux/commit/45d522d3ee9c

--
https://github.com/kvm-x86/linux/tree/next