KVM: nVMX: set IDTR and GDTR limits when loading L1 host state
authorLadi Prosek <lprosek@redhat.com>
Wed, 11 Oct 2017 14:54:42 +0000 (16:54 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Feb 2018 18:32:09 +0000 (18:32 +0000)
commitf05136784d68690a8df8d02c0c67d0ca10e46eb8
tree96c410d8df110fe7d2b8dbe15103dabf740c8053
parentcddb13de3968493647e4ae5c52311a596a93aa29
KVM: nVMX: set IDTR and GDTR limits when loading L1 host state

commit 21f2d551183847bc7fbe8d866151d00cdad18752 upstream.

Intel SDM 27.5.2 Loading Host Segment and Descriptor-Table Registers:

"The GDTR and IDTR limits are each set to FFFFH."

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kvm/vmx.c