x86: svm: use cr_interception for SVM_EXIT_CR0_SEL_WRITE
authorDavid Kaplan <david.kaplan@amd.com>
Fri, 6 Mar 2015 20:44:35 +0000 (14:44 -0600)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 13 Mar 2015 14:46:41 +0000 (11:46 -0300)
commit5e57518d99725e8b4ee34cc94669afb79e4cfe4e
treef24dfcd5423ea842dc74129ef2ccb24e124861a6
parent2b25385761976f4670b83548f3276183d7b4ceac
x86: svm: use cr_interception for SVM_EXIT_CR0_SEL_WRITE

Another patch in my war on emulate_on_interception() use as a svm exit handler.

These were pulled out of a larger patch at the suggestion of Radim Krcmar, see
https://lkml.org/lkml/2015/2/25/559

Changes since v1:
* fixed typo introduced after test, retested

Signed-off-by: David Kaplan <david.kaplan@amd.com>
[separated out just cr_interception part from larger removal of
INTERCEPT_CR0_WRITE, forward ported, tested]
Signed-off-by: Joel Schopp <joel.schopp@amd.com>
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c