From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v2 0/3] Nonatomic interrupt injection Date: Tue, 20 Jul 2010 16:17:04 +0300 Message-ID: <1279631827-4016-1-git-send-email-avi@redhat.com> To: kvm@vger.kernel.org, Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:63986 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751344Ab0GTNRJ (ORCPT ); Tue, 20 Jul 2010 09:17:09 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6KDH9dj011642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Jul 2010 09:17:09 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6KDH8wv000785 for ; Tue, 20 Jul 2010 09:17:09 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This patchset changes interrupt injection to be done from normal process context instead of interrupts disabled context. This is useful for real mode interrupt injection on Intel without the current hacks (injecting as a software interrupt of a vm86 task), reducing latencies, and later, for allowing nested virtualization code to use kvm_read_guest()/kvm_write_guest() instead of kmap() to access the guest vmcb/vmcs. Seems to survive a hack that cancels every 16th entry, after injection has already taken place. v2: svm support (easier than expected) fix silly vmx warning Avi Kivity (3): KVM: VMX: Split up vmx_complete_interrupts() KVM: VMX: Parameterize vmx_complete_interrupts() for both exit and entry KVM: Non-atomic interrupt injection arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/svm.c | 12 +++++++ arch/x86/kvm/vmx.c | 65 ++++++++++++++++++++++++++++++--------- arch/x86/kvm/x86.c | 27 ++++++++-------- 4 files changed, 77 insertions(+), 28 deletions(-)