From patchwork Mon Apr 4 08:47:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 64973 Delivered-To: patches@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1064231lbc; Mon, 4 Apr 2016 01:49:00 -0700 (PDT) X-Received: by 10.112.63.196 with SMTP id i4mr7596047lbs.93.1459759740515; Mon, 04 Apr 2016 01:49:00 -0700 (PDT) Return-Path: Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com. [2a00:1450:4010:c04::22c]) by mx.google.com with ESMTPS id pp9si15344774lbb.18.2016.04.04.01.49.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Apr 2016 01:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 2a00:1450:4010:c04::22c as permitted sender) client-ip=2a00:1450:4010:c04::22c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of eric.auger@linaro.org designates 2a00:1450:4010:c04::22c as permitted sender) smtp.mailfrom=eric.auger@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lb0-x22c.google.com with SMTP id qe11so149844657lbc.3 for ; Mon, 04 Apr 2016 01:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NkpkPpK8XQ5z764A4OGCBb3TBjoKyXxEYeC00R0n29o=; b=KKbIqzvsiZPrDh2AlieGM1YAH4JC0epdVXyTbJV/njA4EAbXPS/U//H9chB4TaMATl iB6D02dK+jG5y74VHmdQDq+AU5t+IrBgKUpThzJxNmPcprePrC5vlMuUhLZo45JUjRvW 96S+VsIrEKGLkQIopkXK5MZmhz8tsh9D6PNjw= 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=NkpkPpK8XQ5z764A4OGCBb3TBjoKyXxEYeC00R0n29o=; b=EqkPJue40oa2QYiBUDQXUwa4B47fIx2CIZJbDej2N7fn3jbgsYEV8OaV0dlmiMozqb RUoKLvOEGXymPQzghDtNOvgDpo7e0uMzsuQE9THwXlwv+4ZkhmnjOsey94utFe3zB+R1 CIremmt7Si7Lh/Bo11wvyQGHtZoXSLL2KMYJQ7hb5Q6k+WXpNi1yxJrxarGdwjSQUZE0 NL7K/hqL4sikKfgVI8c2s8VdNkIahQ2LI1csUIibjdGg1oCqmZNfoYc+7buKPmVbe4z3 zSNdO3vqOG7NU0iL1RcWT/qTibvoXgU7BuejXfykQmLG8hWiLF18DynHpAEmGX/42TMy TJBw== X-Gm-Message-State: AD7BkJLSiZTifdpjWqIUVmvSUJGke73LVpeggOL6Dni1wdKvuSdDcK9CQwg9lOecgVfXRnN/n5M= X-Received: by 10.28.59.7 with SMTP id i7mr11056518wma.66.1459759739871; Mon, 04 Apr 2016 01:48:59 -0700 (PDT) Return-Path: Received: from gnx2579.home (LMontsouris-657-1-37-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id kj9sm27921384wjb.14.2016.04.04.01.48.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Apr 2016 01:48:57 -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, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: patches@linaro.org, pbonzini@redhat.com, p.fedin@samsung.com, Manish.Jaggi@caviumnetworks.com Subject: [PATCH v4 2/7] KVM: kvm_host: add devid in kvm_kernel_irq_routing_entry Date: Mon, 4 Apr 2016 10:47:32 +0200 Message-Id: <1459759657-7402-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459759657-7402-1-git-send-email-eric.auger@linaro.org> References: <1459759657-7402-1-git-send-email-eric.auger@linaro.org> 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 --- 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(-) -- 1.9.1 Acked-by: Christoffer Dall diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 861f690..461e480 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -309,7 +309,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 kvm_hv_sint hv_sint; };