From patchwork Fri Dec 11 09:05:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongji Xie X-Patchwork-Id: 555754 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 36F8914030F for ; Sat, 12 Dec 2015 00:21:54 +1100 (AEDT) Received: from localhost ([::1]:47572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7Ndv-0007IC-T8 for incoming@patchwork.ozlabs.org; Fri, 11 Dec 2015 08:21:51 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7JeJ-0002AJ-CX for qemu-devel@nongnu.org; Fri, 11 Dec 2015 04:06:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7JeG-0004A5-5i for qemu-devel@nongnu.org; Fri, 11 Dec 2015 04:05:59 -0500 Received: from e28smtp03.in.ibm.com ([125.16.236.3]:44376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7JeF-0003yk-FI for qemu-devel@nongnu.org; Fri, 11 Dec 2015 04:05:56 -0500 Received: from localhost by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 11 Dec 2015 14:35:31 +0530 Received: from d28dlp02.in.ibm.com (9.184.220.127) by e28smtp03.in.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 11 Dec 2015 14:35:28 +0530 X-IBM-Helo: d28dlp02.in.ibm.com X-IBM-MailFrom: xyjxie@linux.vnet.ibm.com X-IBM-RcptTo: qemu-devel@nongnu.org Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 3FB893940061 for ; Fri, 11 Dec 2015 14:35:27 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay03.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tBB95QPV52166872 for ; Fri, 11 Dec 2015 14:35:26 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tBB95Puc011569 for ; Fri, 11 Dec 2015 14:35:26 +0530 Received: from localhost (commit.cn.ibm.com [9.123.229.41]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id tBB95NFF011478; Fri, 11 Dec 2015 14:35:24 +0530 From: Yongji Xie To: qemu-devel@nongnu.org, alex.williamson@redhat.com Date: Fri, 11 Dec 2015 17:05:16 +0800 Message-Id: <1449824719-3407-2-git-send-email-xyjxie@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1449824719-3407-1-git-send-email-xyjxie@linux.vnet.ibm.com> References: <1449824719-3407-1-git-send-email-xyjxie@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15121109-0009-0000-0000-00000967506F X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 125.16.236.3 X-Mailman-Approved-At: Fri, 11 Dec 2015 08:21:11 -0500 Cc: nikunj@linux.vnet.ibm.com, zhong@linux.vnet.ibm.com, aik@ozlabs.ru, paulus@samba.org, mpe@ellerman.id.au, warrier@linux.vnet.ibm.com, Yongji Xie Subject: [Qemu-devel] [RFC PATCH 1/3] linux-headers: Update VFIO headers from linux-next tag ToBeFilled X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Syncup VFIO related linux headers from linux-next tree using scripts/update-linux-headers.sh. Integrate two VFIO-PCI ioctl flags: - VFIO_DEVICE_FLAGS_PCI_PAGE_ALIGNED - VFIO_DEVICE_FLAGS_PCI_MSIX_MMAP Signed-off-by: Yongji Xie --- linux-headers/linux/vfio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h index aa276bc..3b79d63 100644 --- a/linux-headers/linux/vfio.h +++ b/linux-headers/linux/vfio.h @@ -164,6 +164,10 @@ struct vfio_device_info { #define VFIO_DEVICE_FLAGS_PCI (1 << 1) /* vfio-pci device */ #define VFIO_DEVICE_FLAGS_PLATFORM (1 << 2) /* vfio-platform device */ #define VFIO_DEVICE_FLAGS_AMBA (1 << 3) /* vfio-amba device */ +/* Platform support all PCI MMIO BARs to be page aligned */ +#define VFIO_DEVICE_FLAGS_PCI_PAGE_ALIGNED (1 << 4) +/* platform support mmapping PCI MSI-X vector table */ +#define VFIO_DEVICE_FLAGS_PCI_MSIX_MMAP (1 << 5) __u32 num_regions; /* Max region index + 1 */ __u32 num_irqs; /* Max IRQ index + 1 */ };