[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH 1/5] vfio: vfio_iommu_type1: linux header place
From: |
Michael S. Tsirkin |
Subject: |
Re: [qemu-s390x] [PATCH 1/5] vfio: vfio_iommu_type1: linux header place holder |
Date: |
Sun, 12 May 2019 14:22:33 -0400 |
On Fri, May 10, 2019 at 04:38:49PM +0200, Pierre Morel wrote:
> This should be copied from Linux kernel UAPI includes.
>
> Signed-off-by: Pierre Morel <address@hidden>
pls add a note which linux version did you sync with.
> ---
> linux-headers/linux/vfio.h | 16 +++++++++++++---
> 1 file changed, 13 insertions(+), 3 deletions(-)
>
> diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
> index 12a7b1d..eaecaef 100644
> --- a/linux-headers/linux/vfio.h
> +++ b/linux-headers/linux/vfio.h
> @@ -9,8 +9,8 @@
> * it under the terms of the GNU General Public License version 2 as
> * published by the Free Software Foundation.
> */
> -#ifndef VFIO_H
> -#define VFIO_H
> +#ifndef _UAPIVFIO_H
> +#define _UAPIVFIO_H
>
> #include <linux/types.h>
> #include <linux/ioctl.h>
> @@ -711,6 +711,16 @@ struct vfio_iommu_type1_info {
> __u32 flags;
> #define VFIO_IOMMU_INFO_PGSIZES (1 << 0) /* supported page sizes info */
> __u64 iova_pgsizes; /* Bitmap of supported page sizes */
> +#define VFIO_IOMMU_INFO_CAPABILITIES (1 << 1) /* support capabilities info
> */
> + __u64 cap_offset; /* Offset within info struct of first cap */
> +};
> +
> +#define VFIO_IOMMU_INFO_CAP_QFN 1
> +#define VFIO_IOMMU_INFO_CAP_QGRP 2
> +
> +struct vfio_iommu_type1_info_block {
> + struct vfio_info_cap_header header;
> + __u32 data[];
> };
>
> #define VFIO_IOMMU_GET_INFO _IO(VFIO_TYPE, VFIO_BASE + 12)
> @@ -910,4 +920,4 @@ struct vfio_iommu_spapr_tce_remove {
>
> /* ***************************************************************** */
>
> -#endif /* VFIO_H */
> +#endif /* _UAPIVFIO_H */
> --
> 2.7.4
- [qemu-s390x] [PATCH 0/5] Retrieving zPCI specific info from QEMU, Pierre Morel, 2019/05/10
- [qemu-s390x] [PATCH 1/5] vfio: vfio_iommu_type1: linux header place holder, Pierre Morel, 2019/05/10
- Re: [qemu-s390x] [PATCH 1/5] vfio: vfio_iommu_type1: linux header place holder,
Michael S. Tsirkin <=
- [qemu-s390x] [PATCH 5/5] s390: vfio_pci: Get zPCI function info from host, Pierre Morel, 2019/05/10
- [qemu-s390x] [PATCH 2/5] s390: PCI: Creation a header dedicated to PCI CLP, Pierre Morel, 2019/05/10
- [qemu-s390x] [PATCH 3/5] s390: vfio_pci: Use a PCI Group structure, Pierre Morel, 2019/05/10
- [qemu-s390x] [PATCH 4/5] s390: vfio_pci: Use a PCI Function structure, Pierre Morel, 2019/05/10