]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:16:12 +0000 (11:16 -0700)
commit5568446dc49b787905fe0e7958151e755e7b02cf
tree5eaa6e7eba9b6628f491e8d3fd37818f32b87dc7
parent06bef51f396d97ba9db9b531612f0a65b0ac910a
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 88ab24adc7142506c8583ac36a34fa388300b750)
arch/x86/kvm/svm.c