summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2019-11-04 17:59:59 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2019-11-15 11:43:56 +0100
commit4289d2728664fc1fb49cfc76a6a7d96d913b921f (patch)
tree90c32b5f2a84706afc733917b47d11efaa540539 /arch/x86/kvm/svm.c
parentf399e60c45f6b6e6ad6dfcedff1dd6386e086b0b (diff)
KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers
It's enough to check the exit value and issue a direct call to avoid the retpoline for all the common vmexit reasons. Of course CONFIG_RETPOLINE already forbids gcc to use indirect jumps while compiling all switch() statements, however switch() would still allow the compiler to bisect the case value. It's more efficient to prioritize the most frequent vmexits instead. The halt may be slow paths from the point of the guest, but not necessarily so from the point of the host if the host runs at full CPU capacity and no host CPU is ever left idle. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
0 files changed, 0 insertions, 0 deletions