From: Jan Kiszka Date: Fri, 21 Sep 2012 03:42:55 +0000 (+0200) Subject: KVM: x86: Fix guest debug across vcpu INIT reset X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c863901075a42d50678616d8ee4b96ef13080498;p=pandora-kernel.git KVM: x86: Fix guest debug across vcpu INIT reset If we reset a vcpu on INIT, we so far overwrote dr7 as provided by KVM_SET_GUEST_DEBUG, and we also cleared switch_db_regs unconditionally. Fix this by saving the dr7 used for guest debugging and calculating the effective register value as well as switch_db_regs on any potential change. This will change to focus of the set_guest_debug vendor op to update_dp_bp_intercept. Found while trying to stop on start_secondary. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- Reading git-diff-tree failed