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. tip: please queue the first patch on fast-forward-only branch kvm.git can merge, or we can carry the patch in kvm.git with your ack. Avi Kivity (3): x86: allow kernel exception fixup for divide errors (#DE) KVM: x86 emulator: add macros for executing instructions that may trap KVM: x86 emulator: trap and propagate #DE from DIV and IDIV arch/x86/kernel/traps.c | 10 +++++++- arch/x86/kvm/emulate.c | 60 ++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 66 insertions(+), 4 deletions(-) -- 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