diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2018-03-13 18:48:04 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-03-16 22:03:53 +0100 |
commit | 42b933b59721f288e3ce23ca79a17a973808dab9 (patch) | |
tree | 24f455d30d65833ac4eb2d00a2029f09519aa5aa /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | b31c114b82b2b55913d2cf744e6a665c2ca090ac (diff) |
x86/kvm/vmx: read MSR_{FS,KERNEL_GS}_BASE from current->thread
vmx_save_host_state() is only called from kvm_arch_vcpu_ioctl_run() so
the context is pretty well defined. Read MSR_{FS,KERNEL_GS}_BASE from
current->thread after calling save_fsgs() which takes care of
X86_BUG_NULL_SEG case now and will do RD[FG,GS]BASE when FSGSBASE
extensions are exposed to userspace (currently they are not).
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/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions