OpenCloudOS-Kernel/arch/x86/include
Vitaly Kuznetsov 35060ed6a1 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>
2018-03-16 22:03:54 +01:00
..
asm x86/kvm/vmx: avoid expensive rdmsr for MSR_GS_BASE 2018-03-16 22:03:54 +01:00
uapi/asm x86/kvm/hyper-v: remove stale entries from vec_bitmap/auto_eoi_bitmap on vector change 2018-03-16 22:01:32 +01:00