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: 9263497 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 034C760754 for ; Thu, 4 Aug 2016 11:42:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8E5B28391 for ; Thu, 4 Aug 2016 11:42:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC5AA283F0; Thu, 4 Aug 2016 11:42:46 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6CAF28391 for ; Thu, 4 Aug 2016 11:42:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758241AbcHDLmY (ORCPT ); Thu, 4 Aug 2016 07:42:24 -0400 Received: from mail-lf0-f48.google.com ([209.85.215.48]:33974 "EHLO mail-lf0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756941AbcHDLmV (ORCPT ); Thu, 4 Aug 2016 07:42:21 -0400 Received: by mail-lf0-f48.google.com with SMTP id l69so180217111lfg.1 for ; Thu, 04 Aug 2016 04:40:46 -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=ZGgjjkX54tvBSXm77/rqvcScezjUia4Yz9PWCJLQMVddjdcl1I752zgCLQxOXexPmR fbIKIFGxDpX03iiWL6MVMvoEGEPkODRNEINqXPrxoZf7MWSS+UGcwgw4UtBcuSYilplF Ai4QVSIwcs8fgIZaht2aQ4qpHnhG+hchcLhFUMVI6KMrLxTAolXK6o1XfJU4xWb7Fo3Q 8LGLhVBONsNd1PqvGoJgbFJLtEQLGcxnN0BYBEtLCd9OLop+pITwMdp4LREO9S+atNUG E2w8jAl1gowBGaGfEYS8fPyDgN2BlNaZiYfENyMW9YCsFLE5W5YbmayNtnAFIMmpwLKm BsVw== X-Gm-Message-State: AEkoouvetWxNJ8GHTC5mc8Vurj4Pv/bIpWggye7HEV1nK46KOF5xMgQygypuEFbKjJPcPdji 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?= Cc: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Marc Zyngier , Eric Auger 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 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.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; };