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)
commit5315c716b69f47e1751d09e16c7bd5b559419531
tree568fbaadc920aa3d7060012ac3bccb7813c53690
parentd16c293e4ecbddedfc1d64095ce56f0569adc12b
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