From: Xiao Guangrong Date: Tue, 21 Aug 2012 02:57:42 +0000 (+0800) Subject: KVM: x86: fix possible infinite loop caused by reexecute_instruction X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~15^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e3d9d061b5d132217629e7b5635ff0c02488e65;p=pandora-kernel.git KVM: x86: fix possible infinite loop caused by reexecute_instruction Currently, we reexecute all unhandleable instructions if they do not access on the mmio, however, it can not work if host map the readonly memory to guest. If the instruction try to write this kind of memory, it will fault again when guest retry it, then we will goto a infinite loop: retry instruction -> write #PF -> emulation fail -> retry instruction -> ... Fix it by retrying the instruction only when it faults on the writable memory Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity --- Reading git-diff-tree failed