From patchwork Mon Jun 29 15:37:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 50425 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7A2B8228D9 for ; Mon, 29 Jun 2015 15:37:54 +0000 (UTC) Received: by wiar9 with SMTP id r9sf15057403wia.1 for ; Mon, 29 Jun 2015 08:37:53 -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=I/MCvtRRzCe5ObA719Q4MEpFRmcqc+Jj33yv6i8VlDo=; b=O9qGWhfY3mWH8q+ZIDo2qh4wmVXjsMiwXcJPZVQun8MW8OiyeZ+VPNnEuVJPrvJM9p pCfk41lp6KRnCOcnuw6A40P+cg9TC0lc0xzci5BJf0m1PEsUONUDiorfqUKw9lk2H3+P i5FcK0rNm+edjU++rUwAOfkeEfRafmabmHNot+lYwoWMnRjkUZqeBRWYlO7VIoZ3IGnN JYlIjqThhmUfrrhwHKhg1SVybqB7MW3mDovyH2ZHv4WMzaaMCJeigFFN2N0+Pa5EjHl8 ax3DED+q/raZH/8JvJ4kHazEDb/hDx+o1zDcfykfpJ0s4LcKcKF8y2dvAYz4uEZ7SlHT 4cgA== X-Gm-Message-State: ALoCoQnepc1No4ycF3wwlWLw1PXM7QV1bqVe5KcwdkEN15GLexC6rSSDbwv3g7p8cabxL20WolA+ X-Received: by 10.112.122.12 with SMTP id lo12mr11182829lbb.5.1435592273666; Mon, 29 Jun 2015 08:37:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.7 with SMTP id bc7ls776843lab.74.gmail; Mon, 29 Jun 2015 08:37:53 -0700 (PDT) X-Received: by 10.152.205.67 with SMTP id le3mr14724490lac.50.1435592273258; Mon, 29 Jun 2015 08:37:53 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id z7si11439508laj.139.2015.06.29.08.37.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 08:37:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lagh6 with SMTP id h6so58573400lag.2 for ; Mon, 29 Jun 2015 08:37:53 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr14652767lay.72.1435592273133; Mon, 29 Jun 2015 08:37:53 -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.108.230 with SMTP id hn6csp1789988lbb; Mon, 29 Jun 2015 08:37:52 -0700 (PDT) X-Received: by 10.194.206.65 with SMTP id lm1mr30055508wjc.117.1435592270470; Mon, 29 Jun 2015 08:37:50 -0700 (PDT) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com. [209.85.212.169]) by mx.google.com with ESMTPS id ma13si899543wic.22.2015.06.29.08.37.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 08:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.169 as permitted sender) client-ip=209.85.212.169; Received: by wicgi11 with SMTP id gi11so75971823wic.0 for ; Mon, 29 Jun 2015 08:37:50 -0700 (PDT) X-Received: by 10.194.5.4 with SMTP id o4mr32153377wjo.51.1435592270170; Mon, 29 Jun 2015 08:37:50 -0700 (PDT) Received: from gnx2579.home (LCaen-156-56-7-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by mx.google.com with ESMTPSA id lf4sm64675965wjb.42.2015.06.29.08.37.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 08:37:49 -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, andre.przywara@arm.com, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, patches@linaro.org, p.fedin@samsung.com, pbonzini@redhat.com Subject: [PATCH 2/7] KVM: kvm_host: add kvm_extended_msi Date: Mon, 29 Jun 2015 17:37:12 +0200 Message-Id: <1435592237-17924-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435592237-17924-1-git-send-email-eric.auger@linaro.org> References: <1435592237-17924-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.53 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: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add a new kvm_extended_msi struct to store the additional device ID specific to ARM. kvm_kernel_irq_routing_entry union now encompasses this new struct. Signed-off-by: Eric Auger --- RFC -> PATCH: - reword the commit message after change in first patch (uapi) --- include/linux/kvm_host.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index ad45054..e1c1c0d 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -304,6 +304,13 @@ struct kvm_s390_adapter_int { u32 adapter_id; }; +struct kvm_extended_msi { + u32 address_lo; /* low 32 bits of msi message address */ + u32 address_hi; /* high 32 bits of msi message address */ + u32 data; /* 16 bits of msi message data */ + u32 devid; /* out-of-band device ID */ +}; + struct kvm_kernel_irq_routing_entry { u32 gsi; u32 type; @@ -317,6 +324,7 @@ struct kvm_kernel_irq_routing_entry { } irqchip; struct msi_msg msi; struct kvm_s390_adapter_int adapter; + struct kvm_extended_msi ext_msi; }; struct hlist_node link; };