From patchwork Thu Aug 4 11:40:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9263509 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D2EDF60754 for ; Thu, 4 Aug 2016 11:43:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4B5D2832D for ; Thu, 4 Aug 2016 11:43:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9546283EB; Thu, 4 Aug 2016 11:43:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 49BF22832D for ; Thu, 4 Aug 2016 11:43:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bVH29-0003JF-41; Thu, 04 Aug 2016 11:41:53 +0000 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bVH1Q-00037V-RT for linux-arm-kernel@lists.infradead.org; Thu, 04 Aug 2016 11:41:09 +0000 Received: by mail-lf0-x235.google.com with SMTP id f93so180537306lfi.2 for ; Thu, 04 Aug 2016 04:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=73yv3+XBn09ELdYuRJec/5Mok6aBZgONmxaTa4Na+Zw=; b=btYfZTyn3UWBoVQ9wRlHteqyZdb4LUAi2mmoEZV2bC9u7IkRVGSAo5DApQGgF+nIlF jvv/9BOCDDrhKo5Ab7J8Ml3EzgUEKHvEVa7ggcdNAFCIcJLXsbF8MDORif8Rxve643jd niIrdZBLhe+eCTn+2sOtRzuAGWC5u0/DLM/r4= 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:mime-version:content-transfer-encoding; bh=73yv3+XBn09ELdYuRJec/5Mok6aBZgONmxaTa4Na+Zw=; b=GwcZWOXX++CMVw62hKD+Wg5C11ggW9M/kodfGbv9uLi5PM5S/ITKyVo0lLf9UoFSgU YaarIFujUM9+Ss4mibUYnu6wJ6glF4y0vKKsuS9pVQ+OwToWu98JxJvWvYUe0hJu3L5b 44isv+uIiy26Vz4OhArXHXl4UFSH9beHfEruQYgXyEMUJtI7CNO4olDUSPW/gVDn0VJL 2i6JUDG46a6qvtxTEbLQ5rW6JRIdoD/20hrAKAIjjO5ZvpmiTTA6Evidb3yHdOTzCTcV KIYSu2pD+4onMuxb61mWrE57nO3wlcR6I2/DaIsjWJ8K9jidtlCM6yn8proqXCBzxRPd DyNQ== X-Gm-Message-State: AEkoouvvIYMyKMkoyolKD0ZMNLHcoEzzTjYUEMLyFHdEnkLR0nliyyvj4h38e1tNdqlGgGPH X-Received: by 10.46.32.68 with SMTP id g65mr22188980ljg.51.1470310845676; Thu, 04 Aug 2016 04:40:45 -0700 (PDT) Received: from localhost.localdomain (109.59.220.90.mobile.3.dk. [109.59.220.90]) by smtp.gmail.com with ESMTPSA id h9sm2360706lfe.8.2016.08.04.04.40.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 04:40:45 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PULL 2/8] KVM: Add devid in kvm_kernel_irq_routing_entry Date: Thu, 4 Aug 2016 13:40:30 +0200 Message-Id: <1470310836-10371-3-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470310836-10371-1-git-send-email-christoffer.dall@linaro.org> References: <1470310836-10371-1-git-send-email-christoffer.dall@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160804_044109_134863_D1B87615 X-CRM114-Status: GOOD ( 12.24 ) 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: Marc Zyngier , Eric Auger , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Auger Enhance 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. The original struct msi_msg msi field is replaced by a new custom structure that embeds the new fields. Signed-off-by: Eric Auger Suggested-by: Radim Krčmář Acked-by: Radim Krčmář Signed-off-by: Marc Zyngier --- include/linux/kvm_host.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 614a981..a15828f 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -317,7 +317,13 @@ struct kvm_kernel_irq_routing_entry { unsigned irqchip; unsigned pin; } irqchip; - struct msi_msg msi; + struct { + u32 address_lo; + u32 address_hi; + u32 data; + u32 flags; + u32 devid; + } msi; struct kvm_s390_adapter_int adapter; struct kvm_hv_sint hv_sint; };