KVM: SVM: Don't sync nested cr8 to lapic and back
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 19 Feb 2010 15:23:06 +0000 (16:23 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:22 +0000 (12:34 +0300)
commit88ab24adc7142506c8583ac36a34fa388300b750
treea3501849792f4fb681d0ccb6dc4135e455b9b57e
parent4c7da8cb43c09e71a405b5aeaa58a1dbac3c39e9
KVM: SVM: Don't sync nested cr8 to lapic and back

This patch makes syncing of the guest tpr to the lapic
conditional on !nested. Otherwise a nested guest using the
TPR could freeze the guest.
Another important change this patch introduces is that the
cr8 intercept bits are no longer ORed at vmrun emulation if
the guest sets VINTR_MASKING in its VMCB. The reason is that
nested cr8 accesses need alway be handled by the nested
hypervisor because they change the shadow version of the
tpr.

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