]> www.infradead.org Git - users/dwmw2/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:22:58 +0000 (11:22 -0700)
commitd3994940c979188e63b7554335591608ba4fd5ee
treec5127c24ad8536d02ab64d05d23820806e32595e
parentdb8125fa4593489fdc161ab04853be9f5a153690
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