From patchwork Mon Aug 3 15:31:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Auger X-Patchwork-Id: 6930771 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 951DC9F38B for ; Mon, 3 Aug 2015 15:34:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D29EB205D3 for ; Mon, 3 Aug 2015 15:34:52 +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 EB903205D1 for ; Mon, 3 Aug 2015 15:34:51 +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 1ZMHjc-0005NR-HE; Mon, 03 Aug 2015 15:33:04 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZMHjH-00059b-QH for linux-arm-kernel@lists.infradead.org; Mon, 03 Aug 2015 15:32:45 +0000 Received: by wibxm9 with SMTP id xm9so119713915wib.1 for ; Mon, 03 Aug 2015 08:32:22 -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=6WHX9Xerf8eTYVFzSNwPupZxAgLUSyqXnEMKnomH7CM=; b=PyLrTuZXK1gu8UqY3+FTrPYgGXHvurJdyMo057+I22k2AweLB4pgHvh7vKXEXbgfzp /wlLFsgvxyqscFhVXFt9Z7AIZ9auTgSy+vGgodG9X9RsXImUSPKAlDf+7olzutCudVym UY2wngqHSgakNcr9po87UiPxbPQxmaxmqGGXu+BVzSAUyKCsEC+NsP9qowYmxAb3KJWh Tf4WU30gxsWHL7z+nFiQN4BX68d64E+8wVp+5enrgxiVQULdilP1Yk9weR26QatHsAm/ EFXSlqD5kVhXGP4zyKY6Kozbm9St2eJ5DzidldDLrYJGOgTQNsP1MeFjFm8k2+xf3SCd C7GA== X-Gm-Message-State: ALoCoQmB65KoLj4BkgnFHrjYFLYYDR49HnQV3N2XwcT33lVUT2cuMMnMM3QDihDVUkcqacqMRS0P X-Received: by 10.180.20.71 with SMTP id l7mr35696394wie.32.1438615941955; Mon, 03 Aug 2015 08:32:21 -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 ny7sm14134420wic.11.2015.08.03.08.32.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 08:32:21 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, christoffer.dall@linaro.org, marc.zyngier@arm.com Subject: [PATCH v3 2/7] KVM: kvm_host: add devid in kvm_kernel_irq_routing_entry Date: Mon, 3 Aug 2015 17:31:24 +0200 Message-Id: <1438615889-10892-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438615889-10892-1-git-send-email-eric.auger@linaro.org> References: <1438615889-10892-1-git-send-email-eric.auger@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150803_083244_101945_A4E55377 X-CRM114-Status: GOOD ( 12.59 ) 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: pbonzini@redhat.com, andre.przywara@arm.com, p.fedin@samsung.com, linux-kernel@vger.kernel.org, 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.4 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 the device id field, devid. A new flags field makes possible to indicate the devid is valid. Those additions are used for ARM GICv3 ITS MSI injection. Signed-off-by: Eric Auger --- v2 -> v3: - add flags 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 05e99b8..b784465 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -321,7 +321,11 @@ struct kvm_kernel_irq_routing_entry { unsigned irqchip; unsigned pin; } irqchip; - struct msi_msg msi; + struct { + struct msi_msg msi; + u32 flags; + u32 devid; + }; struct kvm_s390_adapter_int adapter; }; struct hlist_node link;