]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Set segment infomation of L1 when L2 exits
authorArthur Chunqi Li <yzt356@gmail.com>
Mon, 15 Jul 2013 08:04:08 +0000 (16:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Jul 2013 10:29:31 +0000 (12:29 +0200)
commit5b635e9a0661ee0bf6b8a68641f23a8a84abb500
treea266ca10ec4c79e4d0013a24c05e22904ab02147
parentc135d13079993121288217065a09cb1e1c661ed3
KVM: nVMX: Set segment infomation of L1 when L2 exits

When L2 exits to L1, segment infomations of L1 are not set correctly.
According to Intel SDM 27.5.2(Loading Host Segment and Descriptor
Table Registers), segment base/limit/access right of L1 should be
set to some designed value when L2 exits to L1. This patch fixes
this.

Signed-off-by: Arthur Chunqi Li <yzt356@gmail.com>
Reviewed-by: Gleb Natapov <gnatapov@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c