Re: [V6][PATCH 4/6] x86, nmi: add in logic to handle multiple events and unknown NMIs

Avi Kivity
2011-10-02T14:05:22Z

On 10/02/2011 03:48 PM, Andi Kleen wrote:
> > Second, I wanted to use NMIs as a way of waking up a vcpu sleeping with
> > interrupts disabled (in the context of Jeremy's paravirt spinlock
> > patches). Looks like we'll have to use paravirtualization for that.
>
> Just use a mode of perf that doesn't use NMIs.
> Interrupt off profiling is rarely needed if at all on modern kernels.

I tend to agree. But that's not my call.

(note 'perf kvm' will need adjustment if we make that change - likely
need to capture the interrupt during vmexit and dispatch it manually;
not sure if it's workable for svm at all)

--
error compiling committee.c: too many arguments to function