On Mon, Apr 20, 2009 at 05:50:01PM +0200, Jan Kiszka wrote:
> > +static int iret_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
> > +{
> > + svm->vmcb->control.intercept &= ~(1UL << INTERCEPT_IRET);
> > + svm->vcpu.arch.hflags &= ~HF_NMI_MASK;
>
> Two minor issues:
>
> ++vcpu->stat.nmi_window_exits;
>
[...]
> > +static void svm_inject_nmi(struct vcpu_svm *svm)
> > +{
> > + svm->vmcb->control.event_inj = SVM_EVTINJ_VALID | SVM_EVTINJ_TYPE_NMI;
> > + svm->vcpu.arch.hflags |= HF_NMI_MASK;
> > + svm->vmcb->control.intercept |= (1UL << INTERCEPT_IRET);
>
> and:
>
> ++svm->vcpu.stat.nmi_injections;
>
Added both. Thanks.
--
Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html