Re: [PATCH v5 12/34] KVM: SVM: Add initial support for a VMGEXIT VMEXIT

From: Paolo Bonzini
Date: Mon Dec 14 2020 - 10:47:13 EST


On 10/12/20 18:09, Tom Lendacky wrote:
@@ -3184,6 +3186,8 @@ static int svm_invoke_exit_handler(struct vcpu_svm *svm, u64 exit_code)
return halt_interception(svm);
else if (exit_code == SVM_EXIT_NPF)
return npf_interception(svm);
+ else if (exit_code == SVM_EXIT_VMGEXIT)
+ return sev_handle_vmgexit(svm);

Are these common enough to warrant putting them in this short list?

Paolo

#endif
return svm_exit_handlers[exit_code](svm);
}