From patchwork Thu Jul 9 08:22:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Auger X-Patchwork-Id: 6754001 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 77EBA9F380 for ; Thu, 9 Jul 2015 08:22:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 945CE2049C for ; Thu, 9 Jul 2015 08:22:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 993BA204A0 for ; Thu, 9 Jul 2015 08:22:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751614AbbGIIWy (ORCPT ); Thu, 9 Jul 2015 04:22:54 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:34943 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbbGIIWs (ORCPT ); Thu, 9 Jul 2015 04:22:48 -0400 Received: by wgjx7 with SMTP id x7so216372239wgj.2 for ; Thu, 09 Jul 2015 01:22:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TsFT2ihH3sLjG27c3Ofcv6fc6qb6gZgyxdYA3tTetSE=; b=DAwNZz5EtdcWJt63NsMssmAv42Dlhc4lfyZRmXfYYU9ybaBP2iHf7H5PweuLk2HW/G JJ2a8Gwwt45uOPT0YJh0aNPQXFUE7HjyGzdDT6lrAUHOIFpdoJHVnUPAV2mTvX9rx13f JUt7tcfUTJi9KLaDxCUTR9PS/A0XXXBqgTX7kSgc4muRKrBDacEivc8g9rDC+ycmQKe8 l7cT11scIcmzgzFb49gFRF2GYD34OjfGirMwt2+m8YvXsX4szmT1v4dsZhABGBgFrWbJ yO5Y7xVbTkyqkl9OVEetfpfWLigz3s9K14U5FOxV3Cc60HtnK1wojdnotx+nzlsj9pgd XGwQ== X-Gm-Message-State: ALoCoQnLPI+JohAYO2LljElkhwN8gt2Hb4kNLnua48aDkIk97KE8HjJmcV0+8m1TD6rFycej3jlM X-Received: by 10.194.206.65 with SMTP id lm1mr28120660wjc.117.1436430166873; Thu, 09 Jul 2015 01:22:46 -0700 (PDT) Received: from gnx2579.home (LCaen-156-56-7-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id ib9sm7522108wjb.2.2015.07.09.01.22.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 01:22:45 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, christoffer.dall@linaro.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: patches@linaro.org, andre.przywara@arm.com, p.fedin@samsung.com, pbonzini@redhat.com Subject: [PATCH v2 2/7] KVM: kvm_host: add devid in kvm_kernel_irq_routing_entry Date: Thu, 9 Jul 2015 10:22:12 +0200 Message-Id: <1436430137-24205-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436430137-24205-1-git-send-email-eric.auger@linaro.org> References: <1436430137-24205-1-git-send-email-eric.auger@linaro.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Extend kvm_kernel_irq_routing_entry to transport devid. This is needed for ARM. Its validity depends on the routing type entry. Signed-off-by: Eric Auger --- v1 -> v2: replace msi_msg field by a struct composed of msi_msg and devid RFC -> PATCH: - reword the commit message after change in first patch (uapi) --- include/linux/kvm_host.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 9564fd7..cac0fe4 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -321,7 +321,10 @@ struct kvm_kernel_irq_routing_entry { unsigned irqchip; unsigned pin; } irqchip; - struct msi_msg msi; + struct { + struct msi_msg msi; + u32 devid; + }; struct kvm_s390_adapter_int adapter; }; struct hlist_node link;