From patchwork Fri Oct 31 14:05:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 39912 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8A7B8202FE for ; Fri, 31 Oct 2014 14:06:36 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf4238504lbj.3 for ; Fri, 31 Oct 2014 07:06:35 -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=bvpSxoKPkMEWLhs/MpsfXKnBelJAqUmg9Mbk1y0E3z8=; b=heBT8uO9xnNspZqa1V3xfriD8w5PtD7iH7kC8yo4HORue4FAfQ0yjzFXY6C5useaGp +TioGh6ISh+3PSPzk1/szHyT106VvIXJc6Ow9GvuGvzGrUsorxr8JM1zqUsHg6AbL+rw v+7J9rz2jDLgB2ygz6TvqF/kq8yJDiRghliqRL8FDR5DE5PClMk0OPsVIiqzjEoWj5Jt tBI3PcF0LfRj6yuvRtbUZ1sO20z1ljDEdz5u+wfJkU2Z/baGJv9q8Ry9E4z2uhp8Ubro X267vN4SNeP+tyQxxuS9j+m2aii/AzNhKp4h6Vj/q7BzM7cjHw1mKPAC97TzJqNpdYv6 dvmQ== X-Gm-Message-State: ALoCoQkgOk+JW4v3pfTP70qx3AVw7rxuptp3mJN3kZL1mkSk6X3YMuZIq4ivuTtW0P+Ey7DlQO+G X-Received: by 10.180.219.40 with SMTP id pl8mr110815wic.3.1414764395405; Fri, 31 Oct 2014 07:06:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.6 with SMTP id r6ls319845lae.5.gmail; Fri, 31 Oct 2014 07:06:35 -0700 (PDT) X-Received: by 10.152.27.38 with SMTP id q6mr19012452lag.92.1414764395250; Fri, 31 Oct 2014 07:06:35 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id wm6si1352088lbb.49.2014.10.31.07.06.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 07:06:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id f15so6632883lbj.41 for ; Fri, 31 Oct 2014 07:06:35 -0700 (PDT) X-Received: by 10.152.5.38 with SMTP id p6mr26283509lap.44.1414764395164; Fri, 31 Oct 2014 07:06:35 -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.84.229 with SMTP id c5csp207558lbz; Fri, 31 Oct 2014 07:06:32 -0700 (PDT) X-Received: by 10.180.206.171 with SMTP id lp11mr3991477wic.33.1414764391925; Fri, 31 Oct 2014 07:06:31 -0700 (PDT) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com. [209.85.212.174]) by mx.google.com with ESMTPS id lx7si14302515wjb.88.2014.10.31.07.06.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 07:06:31 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.174 as permitted sender) client-ip=209.85.212.174; Received: by mail-wi0-f174.google.com with SMTP id d1so1406339wiv.13 for ; Fri, 31 Oct 2014 07:06:31 -0700 (PDT) X-Received: by 10.194.203.201 with SMTP id ks9mr4042332wjc.105.1414764391522; Fri, 31 Oct 2014 07:06:31 -0700 (PDT) Received: from midway01-04-00.lavalab ([88.98.47.97]) by mx.google.com with ESMTPSA id v10sm12504563wiy.23.2014.10.31.07.06.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 07:06:30 -0700 (PDT) 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 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 v7 14/16] linux-headers: Update KVM headers from linux-next tag ToBeFilled Date: Fri, 31 Oct 2014 14:05:48 +0000 Message-Id: <1414764350-5140-15-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1414764350-5140-1-git-send-email-eric.auger@linaro.org> References: <1414764350-5140-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.182 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 2669938..239b380 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -947,6 +947,12 @@ struct kvm_device_attr { __u64 addr; /* userspace address of attr data */ }; +struct kvm_arch_forwarded_irq { + __u32 fd; /* file desciptor of the VFIO device */ + __u32 index; /* VFIO device IRQ index */ + __u32 gsi; /* gsi, ie. virtual IRQ number */ +}; + #define KVM_DEV_TYPE_FSL_MPIC_20 1 #define KVM_DEV_TYPE_FSL_MPIC_42 2 #define KVM_DEV_TYPE_XICS 3 @@ -954,6 +960,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 #define KVM_DEV_TYPE_ARM_VGIC_V2 5 #define KVM_DEV_TYPE_FLIC 6