Skip to contentSkip to conversation

KVM: VMX: Report VNMI emulation

PATCH RESEND In review Jan Kiszka 2 participants 2 messages Oct 23, 2008 – Oct 26, 2008

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH RESEND 1/1 KVM: VMX: Report VNMI emulation

In case we ever have to debug possibly NMI-related issues of the guest, it may help to correlate them with the VNMI emulation for older VMX CPUs.

---
 arch/x86/kvm/vmx.c |    4 ++++
 1 file changed, 4 insertions(+)
arch/x86/kvm/vmx.c +4 -0
Index: b/arch/x86/kvm/vmx.c
===================================================================
@@ -3671,6 +3671,10 @@ static int __init vmx_init(void)
 
 	ept_sync_global();
 
+	if (!cpu_has_virtual_nmis())
+		printk(KERN_WARNING
+		       "kvm: emulating NMI window via interrupt window\n");
+
 	return 0;
 
 out2:
#1 lore raw
Quoted 14 lines · Jan Kiszka

In case we ever have to debug possibly NMI-related issues of the guest, it may help to correlate them with the VNMI emulation for older VMX CPUs.

---
 arch/x86/kvm/vmx.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: b/arch/x86/kvm/vmx.c
===================================================================

arch/x86/kvm/vmx.c static int __init vmx_init(void) · line 3679

Quoted 9 lines
arch/x86/kvm/vmx.c +4 -0
@@ -3671,6 +3671,10 @@ static int __init vmx_init(void)
 
 	ept_sync_global();
 
+	if (!cpu_has_virtual_nmis())
+		printk(KERN_WARNING
+		       "kvm: emulating NMI window via interrupt window\n");
+
 
 

This is best done via /proc/cpuinfo... (vnmi or vmx_vnmi) what's the status on those patches?

Signature · 1 line
error compiling committee.c: too many arguments to function