[PATCH 0/3] x86: User space NMI injection

Jan Kiszka
2008-09-15T17:00:29Z

This series adds support for injecting NMIs from the QEMU user space
into KVM guests. So far NMI injection is limited to the in-kernel APIC
emulation. With the patches applied, the 'nmi <cpu>' monitor command
starts to work as well as NMIs from the user space APIC.

The series adds support for VMX, but SVM-related bits should be easy to
add. Moreover, I must admit that I was not yet able to test the patches
as I post them here because all my Intel boxes lack virtual NMI support
- I hacked cpu_has_virtual_nmis to return 1 unconditionally. All typical
cases (i.e. non-contended NMI deliveries) should have been covered
nevertheless.

I'm still playing with ideas and concepts how to work around that
lacking NMI support in older (but still very present) Intel CPUs. But
whatever the result of this may be, that can also be applied on top of
the current implementation.

Jan

--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux