KVM: x86: fix CR8 handling
authorAndre Przywara <andre.przywara@amd.com>
Tue, 21 Dec 2010 10:12:00 +0000 (11:12 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:58 +0000 (11:30 +0200)
commiteea1cff9ab732ea56358ff5e1bd8b99db2e8402d
tree000abd8fa64f58602ebfc03b09e1f394c72f4ad7
parenta63512a4d711c9bd6a5d03847f45fcf88cdea0c6
KVM: x86: fix CR8 handling

The handling of CR8 writes in KVM is currently somewhat cumbersome.
This patch makes it look like the other CR register handlers
and fixes a possible issue in VMX, where the RIP would be incremented
despite an injected #GP.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c