Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvm: set MSR_IA32_SPEC_CTRL to the host value #10805

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 22, 2024

  1. kvm: set MSR_IA32_SPEC_CTRL to the host value

    Otherwise, the kernel needs to save/restore the value of this msr on
    each vmexit/vmenter.
    
    Here are kvm benchmark results:
    goarch: amd64
    cpu: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Before:
    BenchmarkWorldSwitchToUserRoundtrip-8   	 1605484	      3644 ns/op
    After:
    BenchmarkWorldSwitchToUserRoundtrip-8   	 1812069	      3255 ns/op
    
    Signed-off-by: Andrei Vagin <[email protected]>
    avagin committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    7e9a33a View commit details
    Browse the repository at this point in the history