Re: [PATCH v2 2/2] KVM: VMX: Invoke NMI handler via indirect call instead of INTn

From: Paolo Bonzini
Date: Tue Apr 27 2021 - 03:06:42 EST


On 27/04/21 02:54, Lai Jiangshan wrote:
The C NMI handler can handle the case of nested NMIs, which is useful
here. I think we should change it to call the C NMI handler directly
here as Andy Lutomirski suggested:

Great, can you send a patch?

Paolo

On Mon, Apr 26, 2021 at 11:09 PM Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
The C NMI code has its own reentrancy protection and has for years.
It should work fine for this use case.

I think this is the right way.