From patchwork Mon May 4 12:49:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 48001 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0864D21550 for ; Mon, 4 May 2015 12:50:09 +0000 (UTC) Received: by lbbrr5 with SMTP id rr5sf41866291lbb.3 for ; Mon, 04 May 2015 05:50:08 -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=OGL+VkJVJWqeehETreianffshjYJffCmjRiH6WnSTOA=; b=VaQ5Pa62Vydkhm9N2g3jFQhCGHRX+NLY3i5htjLP2xSZLQLtRITAW/5baWh8lH6/pH +9oLPPN4iU0/12BczVcGPf4twVBVtteqtfy1zk/kPKtgJTdjCBIRsjUE3h1eMZpEE6UN v7mYehJ/pmctysID4WxqWYgUvsw84JvHNVp14p2k8iXqCTNqFLAX9yi1dyegOztaJztS bf7le9BtvhU9Vrz+Q3bd+A9X/Pc+wVmvw/YMPtuHCgpHEh3Do/FONC9rW19CSpKcudiP /yzEDtZBJyvHDn6+1QXxNceVg4rvSsYpwDTVDWAd2VrJIJM+wicmfvYdSI1w/IsdN/g0 soWg== X-Gm-Message-State: ALoCoQkylXSp4iNuu/4ne1RD4q3TxuZW93tHb70srBDNGbDIQVBziCzV3yhVi8aXlJqOpc7b1a+x X-Received: by 10.112.28.111 with SMTP id a15mr18348948lbh.21.1430743807981; Mon, 04 May 2015 05:50:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.184.8 with SMTP id eq8ls823749lac.91.gmail; Mon, 04 May 2015 05:50:07 -0700 (PDT) X-Received: by 10.112.202.103 with SMTP id kh7mr11765429lbc.118.1430743807847; Mon, 04 May 2015 05:50:07 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id am2si10005161lac.130.2015.05.04.05.50.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 05:50:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by laat2 with SMTP id t2so103205835laa.1 for ; Mon, 04 May 2015 05:50:07 -0700 (PDT) X-Received: by 10.152.9.66 with SMTP id x2mr19406093laa.36.1430743807754; Mon, 04 May 2015 05:50:07 -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.67.65 with SMTP id l1csp1641046lbt; Mon, 4 May 2015 05:50:07 -0700 (PDT) X-Received: by 10.180.12.228 with SMTP id b4mr16278121wic.92.1430743807143; Mon, 04 May 2015 05:50:07 -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 f2si11340264wix.93.2015.05.04.05.50.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 05:50:07 -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 widdi4 with SMTP id di4so108799737wid.0 for ; Mon, 04 May 2015 05:50:06 -0700 (PDT) X-Received: by 10.194.220.100 with SMTP id pv4mr19559566wjc.71.1430743806701; Mon, 04 May 2015 05:50:06 -0700 (PDT) Received: from midway01-04-00.lavalab ([81.128.185.50]) by mx.google.com with ESMTPSA id z13sm20482370wjr.44.2015.05.04.05.50.05 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 May 2015 05:50:05 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, qemu-devel@nongnu.org, alex.williamson@redhat.com Cc: christoffer.dall@linaro.org, kvmarm@lists.cs.columbia.edu, patches@linaro.org, b.reynal@virtualopensystems.com Subject: [RFC v2 1/4] linux-headers: Update KVM header for KVM-VFIO FORWARD/UNFORWARD Date: Mon, 4 May 2015 13:49:55 +0100 Message-Id: <1430743798-8839-2-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1430743798-8839-1-git-send-email-eric.auger@linaro.org> References: <1430743798-8839-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.49 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: , Integrate updated KVM-VFIO API related to forwarded IRQ Update the kvm header according to the header found in http://git.linaro.org/people/eric.auger/linux.git branch 4.1-rc1_forward Signed-off-by: Eric Auger --- linux-headers/linux/kvm.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index b96d978..95fea92 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -999,6 +999,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, @@ -1018,6 +1021,15 @@ enum kvm_device_type { KVM_DEV_TYPE_MAX, }; +struct kvm_vfio_dev_irq { + __u32 argsz; /* structure length */ + __u32 fd; /* file descriptor of the VFIO device */ + __u32 index; /* VFIO device IRQ index */ + __u32 start; /* start of subindex range */ + __u32 count; /* size of subindex range */ + __u32 gsi[]; /* gsi, ie. virtual IRQ number */ +}; + /* * ioctls for VM fds */