From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Xu Subject: [RFC PATCH 0/2] kvm: introduce KVM_IRQ_ROUTING_EVENTFD Date: Wed, 8 Feb 2017 15:58:44 +0800 Message-ID: <1486540726-15954-1-git-send-email-peterx@redhat.com> Cc: Paolo Bonzini , peterx@redhat.com, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35606 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142AbdBHH64 (ORCPT ); Wed, 8 Feb 2017 02:58:56 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 40B3D80480 for ; Wed, 8 Feb 2017 07:58:57 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: This series tried to introduce a new IRQ_ROUTING type named "eventfd". This work is totally RFC, and the idea is invoked when I was trying to cope with a VT-d vIOMMU error handling case when guest setup incorrect IRTE. Since this idea is quite interesting to me (which looks like a reversed version of irqfd, since both of them are doing convertions of virq <-> eventfd, just in different directions), and I see it relatively safe to have (it touches little other part of the codes), so here came the series. I posted this series mainly wanted to know whether we like this, and also I'm curious about whether this feature can be leveraged in other use cases outside my "vIOMMU problem". If we think this is something safe/good to have, I can continue to work on RFC v2 to provide workable userspace test program (or QEMU branch) that leverages this new feature. If not, any kind of NACK is also welcomed. :-) Please kindly review. Thanks, Peter Xu (2): kvm: x86: add new gsi route type EVENTFD kvm: add new cap KVM_CAP_GSI_EVENTFD arch/x86/kvm/irq_comm.c | 33 +++++++++++++++++++++++++++++++++ arch/x86/kvm/x86.c | 1 + include/linux/kvm_host.h | 7 +++++++ include/uapi/linux/kvm.h | 7 +++++++ virt/kvm/irqchip.c | 6 ++++++ 5 files changed, 54 insertions(+) -- 2.7.4