From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [RESEND][PATCH] KVM: VMX: Report VNMI emulation Date: Thu, 23 Oct 2008 10:23:54 +0200 Message-ID: <4900349A.5020708@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Gleb Natapov , "Yang, Sheng" To: kvm-devel Return-path: Received: from gecko.sbs.de ([194.138.37.40]:23588 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbYJWIYK (ORCPT ); Thu, 23 Oct 2008 04:24:10 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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. Signed-off-by: Jan Kiszka --- arch/x86/kvm/vmx.c | 4 ++++ 1 file changed, 4 insertions(+) Index: b/arch/x86/kvm/vmx.c =================================================================== --- a/arch/x86/kvm/vmx.c +++ 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: