From: Nadav Amit Date: Sun, 19 Apr 2015 18:12:59 +0000 (+0300) Subject: KVM: x86: Fix DR7 mask on task-switch while debugging X-Git-Tag: omap-for-v4.2/fixes-rc1^2~138^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db176d5b4170284d9ce1e1e9c441ebfa9a37417;p=pandora-kernel.git KVM: x86: Fix DR7 mask on task-switch while debugging If the host sets hardware breakpoints to debug the guest, and a task-switch occurs in the guest, the architectural DR7 will not be updated. The effective DR7 would be updated instead. This fix puts the DR7 update during task-switch emulation, so it now uses the standard DR setting mechanism instead of the one that was previously used. As a bonus, the update of DR7 will now be effective for AMD as well. Signed-off-by: Nadav Amit Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed