On Thu, Aug 26, 2010 at 11:58:59AM +0300, Avi Kivity wrote: > KVM recently started emulating DIV and IDIV. However, those instructions > trap when given the right operands. Since figuring out when to trap or not > is difficult, we just execute the instruction and see if the processor trapped > or not. > > Avi Kivity (2): > x86: allow kernel exception fixup for divide errors (#DE) > - dropped > KVM: x86 emulator: add macros for executing instructions that may > trap > KVM: x86 emulator: trap and propagate #DE from DIV and IDIV > - propagate return code to x86_emulate_insn() > > arch/x86/kvm/emulate.c | 63 ++++++++++++++++++++++++++++++++++++++++++++--- > 1 files changed, 59 insertions(+), 4 deletions(-) Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html