From: Jan Kiszka Date: Sun, 29 Jun 2014 19:55:53 +0000 (+0200) Subject: KVM: nSVM: Do not report CLTS via SVM_EXIT_WRITE_CR0 to L1 X-Git-Tag: v3.17-rc1~141^2~54 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=62baf44cad3bc6b37115cc21e4228fe53d4f3474;p=~emulex%2Finfiniband.git KVM: nSVM: Do not report CLTS via SVM_EXIT_WRITE_CR0 to L1 CLTS only changes TS which is not monitored by selected CR0 interception. So skip any attempt to translate WRITE_CR0 to CR0_SEL_WRITE for this instruction. Signed-off-by: Jan Kiszka Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index b5e994ad013..c79766e1f1e 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -4205,7 +4205,8 @@ static int svm_check_intercept(struct kvm_vcpu *vcpu, if (info->intercept == x86_intercept_cr_write) icpt_info.exit_code += info->modrm_reg; - if (icpt_info.exit_code != SVM_EXIT_WRITE_CR0) + if (icpt_info.exit_code != SVM_EXIT_WRITE_CR0 || + info->intercept == x86_intercept_clts) break; intercept = svm->nested.intercept;