OSDN Git Service

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)
commit21feb4eb64e21f8dc91136b91ee886b978ce6421
treea266ca10ec4c79e4d0013a24c05e22904ab02147
parente04c5d76b0cfb66cadd900cf147526f2271884b8
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