]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: svm: set/clear all DR intercepts in one swoop
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Mar 2014 12:08:29 +0000 (13:08 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Mar 2014 09:46:04 +0000 (10:46 +0100)
commit2ba65c6870d6df7ce8b6f5966a39d9d01dc69acd
tree568fbaadc920aa3d7060012ac3bccb7813c53690
parent903daf469a1e2411fa7a4348f41070f6144b2c6a
KVM: svm: set/clear all DR intercepts in one swoop

Unlike other intercepts, debug register intercepts will be modified
in hot paths if the guest OS is bad or otherwise gets tricked into
doing so.

Avoid calling recalc_intercepts 16 times for debug registers.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c