KVM: x86: Inject #GP when loading system segments with non-canonical base
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 2 Nov 2014 09:54:56 +0000 (11:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Nov 2014 14:44:09 +0000 (15:44 +0100)
commit9a9abf6b612709f67b9e3852554191541631d075
tree9a8e521a247cbd4c34e157298e9bc2c85b30957c
parent5b7f6a1e6f6cb6537694a9bbd43bb4ee5a6d8bc2
KVM: x86: Inject #GP when loading system segments with non-canonical base

When emulating LTR/LDTR/LGDT/LIDT, #GP should be injected if the base is
non-canonical. Otherwise, VM-entry will fail.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c