Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753435AbbGBIlU (ORCPT ); Thu, 2 Jul 2015 04:41:20 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:12745 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752899AbbGBIlL (ORCPT ); Thu, 2 Jul 2015 04:41:11 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-07-5594f924422e From: Pavel Fedin To: "'Eric Auger'" , eric.auger@st.com, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, christoffer.dall@linaro.org, andre.przywara@arm.com, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, patches@linaro.org, pbonzini@redhat.com References: <1435592237-17924-1-git-send-email-eric.auger@linaro.org> <1435592237-17924-2-git-send-email-eric.auger@linaro.org> <011f01d0b498$6a17aeb0$3e470c10$@samsung.com> In-reply-to: <011f01d0b498$6a17aeb0$3e470c10$@samsung.com> Subject: RE: [PATCH 1/7] KVM: api: add kvm_irq_routing_extended_msi Date: Thu, 02 Jul 2015 11:41:07 +0300 Message-id: <018f01d0b4a2$d74e29f0$85ea7dd0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQIj+X5s5FdAGWwAOFAf7dE3NOV/zwG0/EgbAfNFYEmdBA87AA== Content-language: ru X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRmVeSWpSXmKPExsVy+t/xK7oqP6eEGjx/IWOxYt5PRosXr/8x WszfcobV4urms0wWc6YWWnw8dZzdYtPja6wWl3fNYbP4e+cfm8WUw19YLPZv+8fqwO2xZt4a Ro871/aweZzftIbZY/OSeo/3+66yeTz9sZfZ4/MmuQD2KC6blNSczLLUIn27BK6M+b03GQsm slW0X/nO3sD4k6WLkZNDQsBEom1hCzOELSZx4d56ti5GLg4hgaWMEnumz2SBcL4zSlxevZod pIpNQF3i9NcPYAkRgaeMEk3rGsFGMQt4Slz9vhiqYyOjxNKdPawgCU4BK4mp754zgtjCAs4S q/4fANvHIqAqceVMExuIzStgKXFr+jMoW1Dix+R7UEO1JNbvPM4EYctLbF7zFupWBYkdZ1+D zRQRcJKYcmACK0SNiMS0f/eYJzAKzUIyahaSUbOQjJqFpGUBI8sqRtHU0uSC4qT0XEO94sTc 4tK8dL3k/NxNjJBY+7KDcfExq0OMAhyMSjy8K2qmhAqxJpYVV+YeYpTgYFYS4V3/EijEm5JY WZValB9fVJqTWnyIUZqDRUmcd+6u9yFCAumJJanZqakFqUUwWSYOTqkGRrYQD4Y5D6J3bw28 /t/3c7ZY4L5S0fLDrZJis0115jnnecS4yGkcXW16jWdtyDn3uFyHyy3+k7ZlFpSKxzqpcK7N 0okWveg7LT8y8pnhOUZ+vVclT39ofjANMszx14w4tYix9yHr5G1tFQJHo+pkt8YHTz6+W7R/ A+vU0oL3Fw1vFVhFCqspsRRnJBpqMRcVJwIAQdgy6LECAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1007 Lines: 29 Hello! > What if we use KVM_MSI_VALID_DEVID flag instead of new KVM_IRQ_ROUTING_EXTENDED_MSI > definition? I > believe this would make an API more consistent and introduce less new definitions. I have just found one more flaw in your implementation. If you take a look at irqfd_wakeup()... --- cut --- /* An event has been signaled, inject an interrupt */ if (irq.type == KVM_IRQ_ROUTING_MSI) kvm_set_msi(&irq, kvm, KVM_USERSPACE_IRQ_SOURCE_ID, 1, false); else schedule_work(&irqfd->inject); --- cut --- You apparently missed KVM_IRQ_ROUTING_EXTENDED_MSI here, as well as in irqfd_update(). But, if you accept my API proposal, this becomes irrelevant. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/