From: Avi Kivity Subject: [PATCH 0/2] SVM NMI fixes Date: Thu, 3 Feb 2011 17:02:47 +0200 Message-ID: <1296745369-12066-1-git-send-email-avi@redhat.com> Cc: Jan Kiszka , Joerg Roedel To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:7380 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755307Ab1BCPEB (ORCPT ); Thu, 3 Feb 2011 10:04:01 -0500 Sender: kvm-owner@vger.kernel.org List-ID: There are a couple of fairly severe problems with NMI on AMD, both triggered with nmi_watchdog=1 in the guest and kvm ftrace in the host. One of the bug leads to guest userspace crashes via spurious setting of EFLAGS.TF, while the other leads to guest kernel hangs looping on the NMI handler's IRET instruction. I believe ftrace only affects timing here, and is not a real requirement to reproduce the bug. See https://bugzilla.redhat.com/show_bug.cgi?id=612436 for the original report. I will try to write unit tests for both issues. Avi Kivity (2): KVM: Fix race between nmi injection and enabling nmi window KVM: SVM: check for progress after IRET interception arch/x86/kvm/svm.c | 10 +++++++++- arch/x86/kvm/x86.c | 4 +++- include/linux/kvm_host.h | 1 + 3 files changed, 13 insertions(+), 2 deletions(-)