From: Nadav Amit Date: Mon, 21 Jul 2014 11:37:29 +0000 (+0300) Subject: KVM: x86: Clear rflags.rf on emulated instructions X-Git-Tag: omap-for-v3.17/fixes-against-rc2~184^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4467c3f1ad16e3640e2b61e1a5e0bd55281a925d;p=pandora-kernel.git KVM: x86: Clear rflags.rf on emulated instructions When an instruction is emulated RFLAGS.RF should be cleared. KVM previously did not do so. This patch clears RFLAGS.RF after interception is done. If a fault occurs during the instruction, RFLAGS.RF will be set by a previous patch. This patch does not handle the case of traps/interrupts during rep-strings. Traps are only expected to occur on debug watchpoints, and those are anyhow not handled by the emulator. Signed-off-by: Nadav Amit Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed