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: Eric Auger X-Patchwork-Id: 6689841 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 3F4629F39B for ; Mon, 29 Jun 2015 15:44:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B43F20462 for ; Mon, 29 Jun 2015 15:44:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8BECE2045B for ; Mon, 29 Jun 2015 15:44:26 +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 1Z9b9p-0004KL-If; Mon, 29 Jun 2015 15:39:41 +0000 Received: from mail-wi0-f176.google.com ([209.85.212.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z9b8O-0003QV-CD for linux-arm-kernel@lists.infradead.org; Mon, 29 Jun 2015 15:38:13 +0000 Received: by wiga1 with SMTP id a1so74884402wig.0 for ; Mon, 29 Jun 2015 08:37:50 -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=I/MCvtRRzCe5ObA719Q4MEpFRmcqc+Jj33yv6i8VlDo=; b=lfI01qKwSxl3XfzH8W2yqujlQEhQjQ/t7ZrAOuo6ajDjtk/rE1NPZkZ8+DzuGzc9F1 Qj+1+sQXJNfHKCbId80jI00cnpBHgKN54izpfIuWkuoJ8HFcr3unB3xaLTTyp0a9iEOk aUEbCjxyi/1Dpb5cjFzqTxAJ9OBIaHgvxBXFK2YHbtgEiBGAztwBQtC/93KgFFyZf6yl faUytlo/+zDa7CSF/0nIOE+r7h8wzQ27tBkO0QlCO+rI3Azm/8H7A+obD2ox7sxfbSnZ zcbOq1aPXKwAwOcGVzPSCT5jYPvAqvZUJrgmzecIwVHFgqryG1HAjmV8kmB9Vq1Orq4G Frjw== X-Gm-Message-State: ALoCoQmeU1RQUGYdoot4LE9eDp6bGiLeKz451Emv7lxDbHKmi4kQAJL5NnA6K0cLNFPLrnMoS1pE 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150629_083812_591182_4E84193A X-CRM114-Status: GOOD ( 12.58 ) X-Spam-Score: -2.6 (--) Cc: pbonzini@redhat.com, p.fedin@samsung.com, linux-kernel@vger.kernel.org, patches@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.8 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 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; };