]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: x86 emulator: fix LIDT/LGDT in long mode
authorAvi Kivity <avi@redhat.com>
Thu, 7 Jun 2012 14:04:36 +0000 (17:04 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 9 Jul 2012 11:19:01 +0000 (14:19 +0300)
commit510425ff3344df03a1f94bce49e659ae302e0d34
tree0b9e1c771f23ec8efd1b18eabfa11184c4d16f0a
parent79d5b4c3cd809c770d4bf9812635647016c56011
KVM: x86 emulator: fix LIDT/LGDT in long mode

The operand size for these instructions is 8 bytes in long mode, even without
a REX prefix.  Set it explicitly.

Triggered while booting Linux with emulate_invalid_guest_state=1.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c