From patchwork Sun Nov 30 18:35:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 41740 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9694424001 for ; Sun, 30 Nov 2014 18:36:10 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id ex7sf5876046wid.3 for ; Sun, 30 Nov 2014 10:36:09 -0800 (PST) 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=yA4V+no/zWmK9JKf+J0ybrXQg7nwtdazQxy8ogoht6I=; b=M4v/kdN9HvFcE468S+rkrzhz9lTHnA539J2jCTM/8YVcbfOANeNGM8cmN9BgUcUPCh qHmT6n+j9nbgJpHgUG5lzHOiINiQ287b1uUDZ9Wuaql682Zh2xgyT0afjPvlu+DfGEgm lTZ2I+9KAi2NI+BGVTHOoOafGnF7Eu8Gp82IO2WSEeSXn8ZU4WFs4f+a1Q2hqMYVCHX0 9VgSlwhtYdE1w7eznLI4mPNPpMUe5+tpDjGCZWLH4Vbn1rxUahj9VUF66xslwQP3sk9f o+V7q6UoiNcaOLlN+S18iDZQw+bdax70wj8W9+oiNxUm+wfY4os1+HZmYJyHa1DANxWI AigA== X-Gm-Message-State: ALoCoQmF35AOGNZK0nIpPQV7xs4CgSwr4+jHQJfVqry21Wu8p6E2NxnT7v9IZXADrksDkaGUNr3J X-Received: by 10.152.8.67 with SMTP id p3mr14721395laa.4.1417372569908; Sun, 30 Nov 2014 10:36:09 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.1 with SMTP id bc1ls1149760lab.24.gmail; Sun, 30 Nov 2014 10:36:09 -0800 (PST) X-Received: by 10.152.87.171 with SMTP id az11mr52263579lab.37.1417372569778; Sun, 30 Nov 2014 10:36:09 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id cz5si15604253lac.123.2014.11.30.10.36.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Nov 2014 10:36:09 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id z12so7565021lbi.18 for ; Sun, 30 Nov 2014 10:36:09 -0800 (PST) X-Received: by 10.152.6.228 with SMTP id e4mr53295921laa.71.1417372569700; Sun, 30 Nov 2014 10:36:09 -0800 (PST) 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.184.201 with SMTP id ew9csp172736lbc; Sun, 30 Nov 2014 10:36:09 -0800 (PST) X-Received: by 10.180.206.229 with SMTP id lr5mr429379wic.74.1417372569056; Sun, 30 Nov 2014 10:36:09 -0800 (PST) Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com. [74.125.82.48]) by mx.google.com with ESMTPS id r5si8573767wjy.74.2014.11.30.10.36.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Nov 2014 10:36:09 -0800 (PST) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.48 as permitted sender) client-ip=74.125.82.48; Received: by mail-wg0-f48.google.com with SMTP id y19so12385936wgg.35 for ; Sun, 30 Nov 2014 10:36:08 -0800 (PST) X-Received: by 10.180.80.194 with SMTP id t2mr79354911wix.6.1417372568843; Sun, 30 Nov 2014 10:36:08 -0800 (PST) Received: from midway01-04-00.lavalab ([81.128.185.50]) by mx.google.com with ESMTPSA id z7sm38794058wia.22.2014.11.30.10.36.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Nov 2014 10:36:08 -0800 (PST) From: Eric Auger To: eric.auger@st.com, christoffer.dall@linaro.org, qemu-devel@nongnu.org, agraf@suse.de, pbonzini@redhat.com, kim.phillips@freescale.com, a.rigo@virtualopensystems.com, manish.jaggi@caviumnetworks.com, joel.schopp@amd.com, zhaoshenglong@huawei.com, ard.biesheuvel@linaro.org Cc: eric.auger@linaro.org, kvmarm@lists.cs.columbia.edu, patches@linaro.org, alex.williamson@redhat.com, peter.maydell@linaro.org, will.deacon@arm.com, Bharat.Bhushan@freescale.com, stuart.yoder@freescale.com, a.motakis@virtualopensystems.com Subject: [PATCH v8 17/19] linux-headers: Update KVM headers from linux-next tag ToBeFilled Date: Sun, 30 Nov 2014 18:35:22 +0000 Message-Id: <1417372524-12936-18-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1417372524-12936-1-git-send-email-eric.auger@linaro.org> References: <1417372524-12936-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.217.173 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: , Syncup KVM related linux headers from linux-next tree using scripts/update-linux-headers.sh. Integrate updated KVM-VFIO API related to forwarded IRQ Signed-off-by: Eric Auger --- linux-headers/linux/kvm.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 12045a1..9f798ab 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -946,6 +946,9 @@ struct kvm_device_attr { #define KVM_DEV_VFIO_GROUP 1 #define KVM_DEV_VFIO_GROUP_ADD 1 #define KVM_DEV_VFIO_GROUP_DEL 2 +#define KVM_DEV_VFIO_DEVICE 2 +#define KVM_DEV_VFIO_DEVICE_FORWARD_IRQ 1 +#define KVM_DEV_VFIO_DEVICE_UNFORWARD_IRQ 2 enum kvm_device_type { KVM_DEV_TYPE_FSL_MPIC_20 = 1, @@ -963,6 +966,13 @@ enum kvm_device_type { KVM_DEV_TYPE_MAX, }; +struct kvm_arch_forwarded_irq { + __u32 fd; /* file desciptor of the VFIO device */ + __u32 index; /* VFIO device IRQ index */ + __u32 subindex; /* VFIO device IRQ subindex */ + __u32 gsi; /* gsi, ie. virtual IRQ number */ +}; + /* * ioctls for VM fds */