diff options
author | Sean Christopherson <seanjc@google.com> | 2023-02-11 03:35:33 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-03-14 17:28:57 +0300 |
commit | 19f10315fd53599d8186aa46a0363b233292eb3d (patch) | |
tree | bb3ad465263d06bed265805dce9dcf782ed32cc5 /tools/perf/scripts/python/stackcollapse.py | |
parent | 68ac4221497b9a54f32c452a774ae747da908a81 (diff) | |
download | linux-19f10315fd53599d8186aa46a0363b233292eb3d.tar.xz |
KVM: VMX: Stub out enable_evmcs static key for CONFIG_HYPERV=n
Wrap enable_evmcs in a helper and stub it out when CONFIG_HYPERV=n in
order to eliminate the static branch nop placeholders. clang-14 is clever
enough to elide the nop, but gcc-12 is not. Stubbing out the key reduces
the size of kvm-intel.ko by ~7.5% (200KiB) when compiled with gcc-12
(there are a _lot_ of VMCS accesses throughout KVM).
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230211003534.564198-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions