]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Don't overwrite decode cache
authorAvi Kivity <avi@redhat.com>
Sun, 11 Apr 2010 10:05:15 +0000 (13:05 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:33 +0000 (12:17 +0300)
commitb4732eb276f88eca11cee58460465c94689543d6
treeae8c407943348d07e980ee8e7e1f311596d7658f
parent282098135e09b730df8f687a38de74be01ea2a58
KVM: x86 emulator: Don't overwrite decode cache

Currently if we an instruction spans a page boundary, when we fetch the
second half we overwrite the first half.  This prevents us from tracing
the full instruction opcodes.

Fix by appending the second half to the first.

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