Message ID | 1438615889-10892-3-git-send-email-eric.auger@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDU5RLWMTQJRBB4T72WQKGQESGHWUPY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id BCF0F22E7D for <linaro@patches.linaro.org>; Mon, 3 Aug 2015 15:32:24 +0000 (UTC) Received: by wicmv11 with SMTP id mv11sf30422249wic.1 for <linaro@patches.linaro.org>; Mon, 03 Aug 2015 08:32:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=6WHX9Xerf8eTYVFzSNwPupZxAgLUSyqXnEMKnomH7CM=; b=EtHPH957gCB9e5LWyIOxqKk5TbMPUEKU4BAVgf5wwDNCYRk6L4b+hYcwL70W3LKZTK KkwDqnv748+6Y0tM/8anhyfh6JzUmaVsceDjRE1c+Xe5JFs/E8Cu+db9M9wOUlwDr4y8 l9N+nTQkl+xxNpqObbVwbf99QBjTgugEXUZpXJ/lFpnk5RgbJpFY2qNpQv+uVCBEgmHD jIlb/I/MFptJ//96ADSDtZsqoTbe2SI2gqOpGkjD6TsB+hkm7wNIJSdb8NBW7x0KNrYM dyY2AdNUSjokmCdanc8bebUfVwySs9irc37ha3zgJ1heUZ3d0hfND9MmvQX0JGb29UlV v29g== X-Gm-Message-State: ALoCoQm3+3dhw+F9CnhVeGggGr74rNEZEsH7zVre+bk9+t3RJU4A6CZDWkf+1LVrO2Z1/YrXAKky X-Received: by 10.112.189.131 with SMTP id gi3mr5818947lbc.6.1438615944034; Mon, 03 Aug 2015 08:32:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.18.194 with SMTP id y2ls549312lad.16.gmail; Mon, 03 Aug 2015 08:32:23 -0700 (PDT) X-Received: by 10.152.23.167 with SMTP id n7mr17359186laf.108.1438615943571; Mon, 03 Aug 2015 08:32:23 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id lc7si12281237lac.95.2015.08.03.08.32.23 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 08:32:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labow3 with SMTP id ow3so19382739lab.1 for <patchwork-forward@linaro.org>; Mon, 03 Aug 2015 08:32:23 -0700 (PDT) X-Received: by 10.152.207.76 with SMTP id lu12mr17396346lac.29.1438615943355; Mon, 03 Aug 2015 08:32:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1933115lba; Mon, 3 Aug 2015 08:32:22 -0700 (PDT) X-Received: by 10.180.85.194 with SMTP id j2mr33805607wiz.11.1438615942460; Mon, 03 Aug 2015 08:32:22 -0700 (PDT) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com. [209.85.212.180]) by mx.google.com with ESMTPS id z7si26263251wjz.12.2015.08.03.08.32.22 for <patches@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 08:32:22 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.180 as permitted sender) client-ip=209.85.212.180; Received: by wibud3 with SMTP id ud3so141105436wib.1 for <patches@linaro.org>; Mon, 03 Aug 2015 08:32:22 -0700 (PDT) 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 <eric.auger@linaro.org> 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 Cc: linux-kernel@vger.kernel.org, patches@linaro.org, pbonzini@redhat.com, andre.przywara@arm.com, p.fedin@samsung.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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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;
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 <eric.auger@linaro.org> --- 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(-)