From patchwork Thu Jun 18 17:40:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 50051 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C1B8222905 for ; Thu, 18 Jun 2015 17:41:24 +0000 (UTC) Received: by wimx15 with SMTP id x15sf163648wim.1 for ; Thu, 18 Jun 2015 10:41: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=13vi3vXQQZ6a0gP53lrNW3HJ2o7B90lQQ+Y9jIUtrI4=; b=UpS2RyB787mvkt1MUAW/CsuJgrzAftNJ1dFa7erA0dSJPcAhIfMg4aHOxqlyoc5F1W KQC8N+DtDT5DXCL+Y5zEkprVSTDBzN8wk0l3JyC4o1UFvXYRW5d9aMI28fmWebB3+wD0 Iiz/rqnpbr3Xu8qck7mjkce3m7dBmLiNwtyw86cuKUVfkPrmhiW4mgRuZ9E155ZHXMlw OKVdLP5cksRpgiSN/94/Pdgl792/YfzqdNVjxd7BsQHkcqSR9uz/t23w1XMc1ghH7Uyu NFsaaZnzXFUf43T0HSjT8p+GvM9hLl0F8SD8PRaBz24l534MdFGLtA4Zg3UIlKpjkUJD xNoQ== X-Gm-Message-State: ALoCoQl5BR1CkSj9PFwkgEWLogU24grMBeq2PzBcqqCRSL0uyzGqXvKc0kIl3liYsdTsq5zp68De X-Received: by 10.112.118.162 with SMTP id kn2mr11351037lbb.22.1434649284050; Thu, 18 Jun 2015 10:41:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.202 with SMTP id d10ls511395laa.69.gmail; Thu, 18 Jun 2015 10:41:23 -0700 (PDT) X-Received: by 10.112.185.100 with SMTP id fb4mr13998428lbc.79.1434649283912; Thu, 18 Jun 2015 10:41:23 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id lg6si6922307lab.13.2015.06.18.10.41.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 10:41:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by labko7 with SMTP id ko7so59259963lab.2 for ; Thu, 18 Jun 2015 10:41:23 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr13802052lbc.73.1434649283783; Thu, 18 Jun 2015 10:41: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.108.230 with SMTP id hn6csp11259lbb; Thu, 18 Jun 2015 10:41:23 -0700 (PDT) X-Received: by 10.180.107.70 with SMTP id ha6mr29984267wib.20.1434649283175; Thu, 18 Jun 2015 10:41:23 -0700 (PDT) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com. [74.125.82.45]) by mx.google.com with ESMTPS id cj8si15094878wjc.164.2015.06.18.10.41.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 10:41:23 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.45 as permitted sender) client-ip=74.125.82.45; Received: by wgfq1 with SMTP id q1so23210773wgf.1 for ; Thu, 18 Jun 2015 10:41:23 -0700 (PDT) X-Received: by 10.180.92.65 with SMTP id ck1mr9105904wib.88.1434649282918; Thu, 18 Jun 2015 10:41:22 -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 bg6sm13222854wjc.13.2015.06.18.10.41.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 10:41:21 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, christoffer.dall@linaro.org, marc.zyngier@arm.com, andre.przywara@arm.com, p.fedin@samsung.com, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: patches@linaro.org Subject: [RFC 2/6] KVM: kvm_host: add kvm_extended_msi Date: Thu, 18 Jun 2015 19:40:54 +0200 Message-Id: <1434649258-27065-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434649258-27065-1-git-send-email-eric.auger@linaro.org> References: <1434649258-27065-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.45 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: , As a follow-up of user API extension let's create a corresponding kernel side structure Signed-off-by: Eric Auger --- 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; };