From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WILlC-0001gc-Fs for qemu-devel@nongnu.org; Tue, 25 Feb 2014 12:25:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WILl4-0005kY-KB for qemu-devel@nongnu.org; Tue, 25 Feb 2014 12:25:38 -0500 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:53236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WILl4-0005kU-Ar for qemu-devel@nongnu.org; Tue, 25 Feb 2014 12:25:30 -0500 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 25 Feb 2014 17:25:29 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 634A31B08070 for ; Tue, 25 Feb 2014 17:25:08 +0000 (GMT) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s1PHPFE1917870 for ; Tue, 25 Feb 2014 17:25:15 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s1PHPRFW020337 for ; Tue, 25 Feb 2014 10:25:27 -0700 From: Cornelia Huck Date: Tue, 25 Feb 2014 18:25:14 +0100 Message-Id: <1393349120-18228-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH 0/6] qemu: irqfds for s390x List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org, linux-s390@vger.kernel.org, qemu-devel@nongnu.org Cc: gleb@kernel.org, borntraeger@de.ibm.com, Cornelia Huck , agraf@suse.de, pbonzini@redhat.com Hi, here's the companion patchset to "KVM: irqfds for s390", based on Christian's s390-next branch. Patch 1 adds support for adapter interrupts to virtio-ccw. This has been posted before, modulo some fixes. Patch 2 grabs the interfaces introduced by the kernel patchset. Will be replaced by a normal headers update. Patch 3 introduces simple wrappers for enabling capabilities. We can convert existing users later on. Patch 4 registers an I/O adapter when we enable adapter interrupts for a device. We just have one virtio-ccw adapter for one interruption subclass. Patch 5 adds reference counting for indicators. This is needed because we want to map and pin indicator pages and drop them again when the last user is gone. Patch 6 finally enables irqfds via irq routing on s390x/virtio-ccw. We've done most of the work in qemu already, so the kernel basically only needs to write to the correct memory location and inject an interrupt. A git branch with the patches is available at https://github.com/cohuck/qemu.git s390x-irqfd Cornelia Huck (6): s390x/virtio-ccw: Adapter interrupt support. linux-headers: add new interfaces kvm: add kvm_enable_cap_{vm,vcpu} s390x: Add I/O adapter registration. s390x/virtio-ccw: reference-counted indicators s390x/virtio-ccw: Wire up irq routing and irqfds. hw/intc/s390_flic.c | 66 +++++++++ hw/s390x/css.c | 61 ++++++++ hw/s390x/css.h | 6 + hw/s390x/virtio-ccw.c | 325 +++++++++++++++++++++++++++++++++++++++--- hw/s390x/virtio-ccw.h | 18 ++- include/hw/s390x/adapter.h | 23 +++ include/qemu/typedefs.h | 1 + include/sysemu/kvm.h | 6 + kvm-all.c | 57 +++++++- kvm-stub.c | 5 + linux-headers/asm-s390/kvm.h | 22 +++ linux-headers/linux/kvm.h | 16 +++ target-s390x/cpu.h | 33 +++++ target-s390x/ioinst.h | 2 + target-s390x/kvm.c | 13 +- trace-events | 1 + 16 files changed, 627 insertions(+), 28 deletions(-) create mode 100644 include/hw/s390x/adapter.h -- 1.7.9.5