From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 From: Yongji Xie Date: Fri, 11 Dec 2015 17:05:16 +0800 Message-Id: <1449824719-3407-2-git-send-email-xyjxie@linux.vnet.ibm.com> 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> Subject: [Qemu-devel] [RFC PATCH 1/3] linux-headers: Update VFIO headers from linux-next tag ToBeFilled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, alex.williamson@redhat.com 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 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 */ }; -- 1.7.9.5