virttest.virsh: Add inject-nmi function.

Add it advance for some tests.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>