[lkml]   [2010]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/3] Trap and propagate divide errors when emulating DIV
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
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(-)

 \ /
  Last update: 2010-08-24 13:13    [W:0.046 / U:30.368 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site