From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH] KVM: VMX: Report VNMI emulation Date: Wed, 01 Oct 2008 10:24:45 +0200 Message-ID: <48E333CD.4020001@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 lizzard.sbs.de ([194.138.37.39]:20216 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752239AbYJAIZB (ORCPT ); Wed, 1 Oct 2008 04:25:01 -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: