[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230208205430.1424667-1-seanjc@google.com>
Date: Wed, 8 Feb 2023 20:54:28 +0000
From: Sean Christopherson <seanjc@...gle.com>
To: Vitaly Kuznetsov <vkuznets@...hat.com>,
Sean Christopherson <seanjc@...gle.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>
Cc: Tom Rix <trix@...hat.com>, kvm@...r.kernel.org,
llvm@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH 0/2] KVM: VMX: Stub out enable_evmcs static key
Stub out the enable_evmcs static key for CONFIG_HYPERV=n. gcc (as of
gcc-12) isn't clever enough to elide the nop placeholder when there's no
code guarded by a static branch. With gcc-12, because of the vast number
of VMCS accesses, eliminating the nops reduces the size of kvm-intel.ko by
~7.5% (200KiB).
Patch 1 is tangentially related cleanup.
Applies on `git@...hub.com:kvm-x86/linux.git vmx`.
Sean Christopherson (2):
KVM: nVMX: Move EVMCS1_SUPPORT_* macros to hyperv.c
KVM: VMX: Stub out enable_evmcs static key for CONFIG_HYPERV=n
arch/x86/kvm/vmx/hyperv.c | 107 +++++++++++++++++++++++++++++++++-
arch/x86/kvm/vmx/hyperv.h | 115 +++----------------------------------
arch/x86/kvm/vmx/vmx.c | 15 +++--
arch/x86/kvm/vmx/vmx_ops.h | 22 +++----
4 files changed, 132 insertions(+), 127 deletions(-)
base-commit: 93827a0a36396f2fd6368a54a020f420c8916e9b
--
2.39.1.519.gcb327c4b5f-goog
Powered by blists - more mailing lists