[PATCH 1/2] KVM: x86 emulator: Don't overwrite decode cache

2010-04-11 Thread Avi Kivity
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 --- arch/x86/kvm/emulate.c | 19 ++

[PATCH 1/2] KVM: x86 emulator: Don't overwrite decode cache

2010-03-25 Thread Avi Kivity
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 --- arch/x86/kvm/emulate.c | 19 ++