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: 6754071 Return-Path: X-Original-To: patchwork-linux-arm@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 817489F380 for ; Thu, 9 Jul 2015 08:25:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B64AE205E3 for ; Thu, 9 Jul 2015 08:25:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D5A3D205D8 for ; Thu, 9 Jul 2015 08:25:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZD774-0004gT-Sn; Thu, 09 Jul 2015 08:23:22 +0000 Received: from mail-wg0-f52.google.com ([74.125.82.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZD76q-0004OX-H5 for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2015 08:23:09 +0000 Received: by wgjx7 with SMTP id x7so216372236wgj.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=RpbKR3NK3JIRGN8kBOM9FWnDQ+W57WwRNtOpK6YXL4SUmj1HFG7ONcC+ujAl4xljLy +enzSLtSEy2xmhdVwwia49hJES9MKOlIRyN1DmzvuRxeyDlDvVHTJncWoM1Hqr6GiHG8 7LC5j4KtRcjkbU+6trYIjhxShQE7DRuZHfg6AbSZaQ/Z2X5QqinGwrVuk2SNcnxmpj1J smefKxvyyul7dFcvWWAekFxUJtPo4Y0Iy76YGxTEwQ3iT18C9UYDjq11vrCTbX/Ujgvf criTF9dKm7myp0T/nb5ijoTcEtSFomIYm5Y4oKp0gGVZk25A5wll8qqGr76RxlIAAceb kkGg== X-Gm-Message-State: ALoCoQnUk0OdtFv1jY9GhhMeS9N/SlZDn4EPan/C93A3KJ7E5PWxSvw1TjLUoHpS1kZrprpypwn3 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150709_012308_733087_363B156B X-CRM114-Status: GOOD ( 12.54 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andre.przywara@arm.com, pbonzini@redhat.com, p.fedin@samsung.com, patches@linaro.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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;