KVM: SVM: enhance MOV CR intercept handler
authorAndre Przywara <andre.przywara@amd.com>
Tue, 21 Dec 2010 10:12:04 +0000 (11:12 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:03 +0000 (11:31 +0200)
commit7ff76d58a9dc03a38b86d283abcaae2ac3c74fe3
treef45fdc961458c760f4d8a64f4f5e9269ce82bc38
parentddce97aac5405e0b2b8b2191cb65b5a48eb14145
KVM: SVM: enhance MOV CR intercept handler

Newer SVM implementations provide the GPR number in the VMCB, so
that the emulation path is no longer necesarry to handle CR
register access intercepts. Implement the handling in svm.c and
use it when the info is provided.

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