|
@@ -1987,6 +1987,14 @@ static int invlpga_interception(struct vcpu_svm *svm)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
+static int skinit_interception(struct vcpu_svm *svm)
|
|
|
+{
|
|
|
+ trace_kvm_skinit(svm->vmcb->save.rip, svm->vcpu.arch.regs[VCPU_REGS_RAX]);
|
|
|
+
|
|
|
+ kvm_queue_exception(&svm->vcpu, UD_VECTOR);
|
|
|
+ return 1;
|
|
|
+}
|
|
|
+
|
|
|
static int invalid_op_interception(struct vcpu_svm *svm)
|
|
|
{
|
|
|
kvm_queue_exception(&svm->vcpu, UD_VECTOR);
|
|
@@ -2350,7 +2358,7 @@ static int (*svm_exit_handlers[])(struct vcpu_svm *svm) = {
|
|
|
[SVM_EXIT_VMSAVE] = vmsave_interception,
|
|
|
[SVM_EXIT_STGI] = stgi_interception,
|
|
|
[SVM_EXIT_CLGI] = clgi_interception,
|
|
|
- [SVM_EXIT_SKINIT] = invalid_op_interception,
|
|
|
+ [SVM_EXIT_SKINIT] = skinit_interception,
|
|
|
[SVM_EXIT_WBINVD] = emulate_on_interception,
|
|
|
[SVM_EXIT_MONITOR] = invalid_op_interception,
|
|
|
[SVM_EXIT_MWAIT] = invalid_op_interception,
|