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: 6689651 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 801CDC05AC for ; Mon, 29 Jun 2015 15:38:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9FE78202E6 for ; Mon, 29 Jun 2015 15:38:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C7EBD202BE for ; Mon, 29 Jun 2015 15:38:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753409AbbF2PiE (ORCPT ); Mon, 29 Jun 2015 11:38:04 -0400 Received: from mail-wg0-f54.google.com ([74.125.82.54]:35656 "EHLO mail-wg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753602AbbF2Phv (ORCPT ); Mon, 29 Jun 2015 11:37:51 -0400 Received: by wgjx7 with SMTP id x7so71384581wgj.2 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=V7KI3KEfDIVK40mEfmJHb+qYt8it+i6gXp406ObOd1R/hmIemTBmW9HZ9+4pK+hQM2 iS20HY3Z+tQqELQ6PKxgQiMQM1VXKnccW25NcLzcqioX0KbLdN2it3dnRpqCgrmB0FW/ mJ+I4Bca56zMzCx98+z/Aubq8Z0MIKqcIuAH71JJENbU77+yvLFZGCdLS9gWX6ApCTce lFi3sZEU0HPgXtQUAQk1kySts/hrXeWFj882b/nh72QixdC5+zUr88iGNJDuXhCaU2gU k1Kh90P1J2LuUr8hElesvEzRvux8enLr0iB2RjuYM2lScDWjsIB+bCFqkauprZyb1Ots rw1Q== X-Gm-Message-State: ALoCoQmKU2dd79WQCEha+vz3I9JnOdPDwaz8s2diHW2vKvdQdHOV6shz9DB05CSaY5Hg3WM6ZOry 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> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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; };