From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Auger Subject: Coupling between KVM_IRQFD and KVM_SET_GSI_ROUTING? Date: Tue, 17 Jun 2014 13:39:55 +0200 Message-ID: <53A0290B.8040301@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: Alexander Graf , Antonios Motakis , "kvmarm@lists.cs.columbia.edu" , Marc Zyngier , "kvm@vger.kernel.org" , Christoffer Dall Return-path: Received: from mail-wi0-f177.google.com ([209.85.212.177]:55302 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbaFQLkJ (ORCPT ); Tue, 17 Jun 2014 07:40:09 -0400 Received: by mail-wi0-f177.google.com with SMTP id r20so5647229wiv.10 for ; Tue, 17 Jun 2014 04:40:08 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Hello, I have a question related to KVM_IRQFD and KVM_SET_GSI_ROUTING ioctl relationship. When reading the KVM API documentation I do not understand there is any dependency between KVM_IRQFD and KVM_SET_GSI_ROUTING. According to the text it seems only the gsi field is used and interpreted as the irqchip pin. However irqchip.c kvm_set_irq code relies on an existing and not dummy routing table. My question is: does anyone agree on the fact the user-side must set a consistent routing table using KVM_SET_GSI_ROUTING before using KVM_IRQFD? The other alternative would have been to build a default identity GSI routing table in the kernel (gsi = irqchip.pin). In the positive, shouldn't we clarify the KVM API documentation? Thank you in advance Best Regards Eric