From patchwork Mon Aug 3 15:31:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Auger X-Patchwork-Id: 6930821 Return-Path: X-Original-To: patchwork-kvm@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 67E1B9F38B for ; Mon, 3 Aug 2015 15:35:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93C5E205D3 for ; Mon, 3 Aug 2015 15:35:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E3D620628 for ; Mon, 3 Aug 2015 15:35:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754188AbbHCPfD (ORCPT ); Mon, 3 Aug 2015 11:35:03 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:37628 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754033AbbHCPcX (ORCPT ); Mon, 3 Aug 2015 11:32:23 -0400 Received: by wibud3 with SMTP id ud3so119211422wib.0 for ; Mon, 03 Aug 2015 08:32:22 -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=6WHX9Xerf8eTYVFzSNwPupZxAgLUSyqXnEMKnomH7CM=; b=QGk/AwwnoUXiIjj4ORudsPPcFBjtZSNHv1+27PZ8Esds97tkO4Wqym8xKkA0eg2aVH FraZBTPTE9fVQuZ8EECMzjHuA5hiLbvJNZt9iTN5C5gfOdQjsgCSkGfv+nwwA5bDg207 ilPdQmQnq8GjgVx+GppqVjHrttZGbYW3mmdP9I3xYNfXb1DfSOD5o7ewDCMEOQwqF8wC 9rcZrNkjZYQTnoreONkGZnQKK/gCjjXwi5rT2mLbNhkjcHOX4E+Pyf3y8/3ykz9JAjo7 U4t+aR9ungFnkPEf/1yqbbHnD5DbRxew2Chejwdxx1pFwl2R+Uk8Nb5GhiOF0KUDdjbc JW8w== X-Gm-Message-State: ALoCoQkkjPjSxJbcY40uGYA7JBucVbStbdus/MtzCddC16f4jFoxO8NaV3qnqOVoyKSMgSfMwaJq X-Received: by 10.180.20.71 with SMTP id l7mr35696394wie.32.1438615941955; Mon, 03 Aug 2015 08:32:21 -0700 (PDT) Received: from gnx2579.home (LCaen-156-56-7-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id ny7sm14134420wic.11.2015.08.03.08.32.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 08:32:21 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, christoffer.dall@linaro.org, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, patches@linaro.org, pbonzini@redhat.com, andre.przywara@arm.com, p.fedin@samsung.com Subject: [PATCH v3 2/7] KVM: kvm_host: add devid in kvm_kernel_irq_routing_entry Date: Mon, 3 Aug 2015 17:31:24 +0200 Message-Id: <1438615889-10892-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438615889-10892-1-git-send-email-eric.auger@linaro.org> References: <1438615889-10892-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.1 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 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(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 05e99b8..b784465 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -321,7 +321,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 hlist_node link;