diff options
author | 2024-11-27 15:46:59 -0800 | |
---|---|---|
committer | 2024-12-16 16:15:27 -0800 | |
commit | 45d522d3ee9ccea0f1fa0548af33cb8507ea947c (patch) | |
tree | 8c6513f039839d50a5d04567094c60672d8701f6 /scripts/gdb/linux/utils.py | |
parent | Merge tag 'kvm-riscv-fixes-6.13-1' of https://github.com/kvm-riscv/linux into HEAD (diff) | |
download | wireguard-linux-45d522d3ee9ccea0f1fa0548af33cb8507ea947c.tar.xz wireguard-linux-45d522d3ee9ccea0f1fa0548af33cb8507ea947c.zip |
KVM: SVM: Macrofy SEV=n versions of sev_xxx_guest()
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.
No functional change intended.
Link: https://lore.kernel.org/r/20241127234659.4046347-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions