KVM: SVM: disable CR8 intercept when tpr is not masking interrupts
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 16 Apr 2008 14:51:18 +0000 (16:51 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 15:21:43 +0000 (18:21 +0300)
commitaaacfc9ae225e88695e610a35627d2256dc08633
treeb8cbde694378ab340b4cc3ee2442ae87b9bb6096
parentd7bf8221a3037d0d0760a1ccf1833bda03213abf
KVM: SVM: disable CR8 intercept when tpr is not masking interrupts

This patch disables the intercept of CR8 writes if the TPR is not masking
interrupts. This reduces the total number CR8 intercepts to below 1 percent of
what we have without this patch using Windows 64 bit guests.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/svm.c