[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 1/5] s390x/vfio: ap: Linux uapi VFIO place holder
From: |
Pierre Morel |
Subject: |
[Qemu-devel] [PATCH v1 1/5] s390x/vfio: ap: Linux uapi VFIO place holder |
Date: |
Fri, 2 Nov 2018 11:30:17 +0100 |
This file would be copied from Linux,
I put it here for the review.
Signed-off-by: Pierre Morel <address@hidden>
---
linux-headers/linux/vfio.h | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index ceb6453394..32b1fec362 100644
--- a/linux-headers/linux/vfio.h
+++ b/linux-headers/linux/vfio.h
@@ -816,6 +816,28 @@ struct vfio_iommu_spapr_tce_remove {
};
#define VFIO_IOMMU_SPAPR_TCE_REMOVE _IO(VFIO_TYPE, VFIO_BASE + 20)
+/**
+ * VFIO_AP_SET_IRQ - _IOWR(VFIO_TYPE, VFIO_BASE + 21, struct vfio_ap_aqic)
+ *
+ * Setup IRQ for an AP Queue
+ * @cmd contains the AP queue number (apqn)
+ * @status receives the resulting status of the command
+ * @nib is the Notification Indicator byte address
+ * @adapter_id allows to retrieve the associated adapter
+ */
+struct vfio_ap_aqic {
+ __u32 argsz;
+ __u32 flags;
+ /* in */
+ __u64 cmd;
+ __u64 status;
+ __u64 nib;
+ __u32 adapter_id;
+};
+#define VFIO_AP_SET_IRQ _IO(VFIO_TYPE, VFIO_BASE + 21)
+#define VFIO_AP_CLEAR_IRQ _IO(VFIO_TYPE, VFIO_BASE + 22)
+
/* ***************************************************************** */
+
#endif /* VFIO_H */
--
2.17.0
- [Qemu-devel] [PATCH v1 0/5] s390x/vfio: VFIO-AP interrupt control interception, Pierre Morel, 2018/11/02
- [Qemu-devel] [PATCH v1 2/5] s390x/cpumodel: Set up CPU model for AQIC interception, Pierre Morel, 2018/11/02
- [Qemu-devel] [PATCH v1 3/5] s390x/vfio: ap: Definition for AP Adapter type, Pierre Morel, 2018/11/02
- [Qemu-devel] [PATCH v1 5/5] s390x/vfio: ap: Implementing AP Queue Interrupt Control, Pierre Morel, 2018/11/02
- [Qemu-devel] [PATCH v1 1/5] s390x/vfio: ap: Linux uapi VFIO place holder,
Pierre Morel <=
- [Qemu-devel] [PATCH v1 4/5] s390x/vfio: ap: Intercepting AP Queue Interrupt Control, Pierre Morel, 2018/11/02
- Re: [Qemu-devel] [PATCH v1 0/5] s390x/vfio: VFIO-AP interrupt control interception, David Hildenbrand, 2018/11/02