Re: [PATCH 1/2] KVM: SVM: Fix NMI path when NMI happens in guest mode

Roedel, Joerg
2011-01-13T15:52:32Z

On Thu, Jan 13, 2011 at 10:48:33AM -0500, Jan Kiszka wrote:
> Am 13.01.2011 16:22, Joerg Roedel wrote:
> > #ifdef CONFIG_X86_64
> > wrmsrl(MSR_GS_BASE, svm->host.gs_base);
> > + wrmsrl(MSR_KERNEL_GS_BASE, current->thread.gs);
> > #else
> > loadsegment(fs, svm->host.fs);
> > #endif
>
> Doesn't this also obsolete the wrmsrl(MSR_KERNEL_GS_BASE) in svm_vcpu_put?

Yes it does. Thanks.

Joerg

--
AMD Operating System Research Center

Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632