From: Jan Kiszka Date: Sun, 18 Oct 2009 11:24:44 +0000 (+0200) Subject: KVM: x86: Fix guest single-stepping while interruptible X-Git-Tag: v2.6.33-rc1~387^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94fe45da48f921d01d8ff02a0ad54ee9c326d7f0;p=pandora-kernel.git KVM: x86: Fix guest single-stepping while interruptible Commit 705c5323 opened the doors of hell by unconditionally injecting single-step flags as long as guest_debug signaled this. This doesn't work when the guest branches into some interrupt or exception handler and triggers a vmexit with flag reloading. Fix it by saving cs:rip when user space requests single-stepping and restricting the trace flag injection to this guest code position. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed