KVM: SVM: Load %gs earlier if CONFIG_X86_32_LAZY_GS=n
authorAvi Kivity <avi@redhat.com>
Tue, 8 Mar 2011 14:09:51 +0000 (16:09 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:33 +0000 (13:08 -0300)
commit831ca6093ca486060721f5c3c74f97b10f3172b9
treecdd06aaa0b11787f2e579a1e60eadfe4dd94d85a
parentafc20184b7d24693a934f652e135598a497c9448
KVM: SVM: Load %gs earlier if CONFIG_X86_32_LAZY_GS=n

With CONFIG_CC_STACKPROTECTOR, we need a valid %gs at all times, so disable
lazy reload and do an eager reload immediately after the vmexit.

Reported-by: IVAN ANGELOV <ivangotoy@gmail.com>
Acked-By: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c