From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: [PATCHv3 RFC 0/2] kvm: direct msix injection Date: Mon, 11 Jun 2012 14:19:17 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kiszka To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58998 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753556Ab2FKLSu (ORCPT ); Mon, 11 Jun 2012 07:18:50 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: We can deliver certain interrupts, notably MSIX, from atomic context. Here's an untested patch to do this (compiled only). Changes from v2: Don't inject broadcast interrupts directly Changes from v1: Tried to address comments from v1, except unifying with kvm_set_irq: passing flags to it looks too ugly. Added a comment. Jan, you said you can test this? Michael S. Tsirkin (2): kvm: implement kvm_set_msi_inatomic kvm: deliver msix interrupts from irq handler include/linux/kvm_host.h | 3 ++ virt/kvm/assigned-dev.c | 31 ++++++++++++++++++-- virt/kvm/irq_comm.c | 75 ++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 102 insertions(+), 7 deletions(-) -- MST