diff options
author | 2018-03-13 18:48:05 +0100 | |
---|---|---|
committer | 2018-03-16 22:03:54 +0100 | |
commit | 35060ed6a1ffc92106904f5e4b5823ca4facfc73 (patch) | |
tree | 8bb681a4e0b7c15fd173e0c27aba1bd2460856ec /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86/kvm/vmx: read MSR_{FS,KERNEL_GS}_BASE from current->thread (diff) | |
download | wireguard-linux-35060ed6a1ffc92106904f5e4b5823ca4facfc73.tar.xz wireguard-linux-35060ed6a1ffc92106904f5e4b5823ca4facfc73.zip |
x86/kvm/vmx: avoid expensive rdmsr for MSR_GS_BASE
vmx_save_host_state() is only called from kvm_arch_vcpu_ioctl_run() so
the context is pretty well defined and as we're past 'swapgs' MSR_GS_BASE
should contain kernel's GS base which we point to irq_stack_union.
Add new kernelmode_gs_base() API, irq_stack_union needs to be exported
as KVM can be build as module.
Acked-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions