From: Marcelo Tosatti Date: Wed, 12 Jun 2013 02:31:12 +0000 (-0300) Subject: KVM: x86: handle idiv overflow at kvm_write_tsc X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~22^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8915aa27d5efbb9185357175b0acf884325565f9;p=pandora-kernel.git KVM: x86: handle idiv overflow at kvm_write_tsc Its possible that idivl overflows (due to large delta stored in usdiff, valid scenario). Create an exception handler to catch the overflow exception (division by zero is protected by vcpu->arch.virtual_tsc_khz check), and interpret it accordingly (delta is larger than USEC_PER_SEC). Fixes https://bugzilla.redhat.com/show_bug.cgi?id=969644 Signed-off-by: Marcelo Tosatti Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed