KVM: x86: Combine the lgdt and lidt emulation logic
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 2 Nov 2014 09:54:55 +0000 (11:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Nov 2014 14:44:08 +0000 (15:44 +0100)
commit5b7f6a1e6f6cb6537694a9bbd43bb4ee5a6d8bc2
treeb1e44f8e5eaa8c6fee7e82762c5012be6062c00a
parent38827dbd3fb85a94a002fcf67b8735d5bc1a7e1a
KVM: x86: Combine the lgdt and lidt emulation logic

LGDT and LIDT emulation logic is almost identical. Merge the logic into a
single point to avoid redundancy. This will be used by the next patch that
will ensure the bases of the loaded GDTR and IDTR are canonical.

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