On 20/10/20 00:35, Krish Sadhukhan wrote:
+ valid = control->event_inj & SVM_EVTINJ_VALID; + type = control->event_inj & SVM_EVTINJ_TYPE_MASK; + if (valid && ((type == SVM_EVTINJ_TYPE_RESV1) || + (type >= SVM_EVTINJ_TYPE_RESV5))) + return false; + + vector = control->event_inj & SVM_EVTINJ_VEC_MASK; + if (valid && (type == SVM_EVTINJ_TYPE_EXEPT) && + (vector == NMI_VECTOR || (vector > 31 && vector < 256))) + return false; + return true; }
No Pascal-like parentheses; please rebase on top of kvm.git's nested-svm branch and resend.
Thanks, Paolo