Re: [PATCH RFC 3/3] x86/kvm/vmx: avoid expensive rdmsr for MSR_GS_BASE

2018-03-05 Thread Vitaly Kuznetsov
Andy Lutomirski writes: > On Fri, Mar 2, 2018 at 10:55 AM, Vitaly Kuznetsov wrote: >> 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

Re: [PATCH RFC 3/3] x86/kvm/vmx: avoid expensive rdmsr for MSR_GS_BASE

2018-03-05 Thread Vitaly Kuznetsov
Andy Lutomirski writes: > On Fri, Mar 2, 2018 at 10:55 AM, Vitaly Kuznetsov wrote: >> 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

Re: [PATCH RFC 3/3] x86/kvm/vmx: avoid expensive rdmsr for MSR_GS_BASE

2018-03-02 Thread Andy Lutomirski
On Fri, Mar 2, 2018 at 10:55 AM, Vitaly Kuznetsov wrote: > 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. >

Re: [PATCH RFC 3/3] x86/kvm/vmx: avoid expensive rdmsr for MSR_GS_BASE

2018-03-02 Thread Andy Lutomirski
On Fri, Mar 2, 2018 at 10:55 AM, Vitaly Kuznetsov wrote: > 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. > > irq_stack_union