[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PATCH v2 3/6] s390x/vfio: ap: Linux uapi VFIO place holder
From: |
Pierre Morel |
Subject: |
[qemu-s390x] [PATCH v2 3/6] s390x/vfio: ap: Linux uapi VFIO place holder |
Date: |
Thu, 22 Nov 2018 17:35:52 +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 | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index ceb6453..d5d10bc9 100644
--- a/linux-headers/linux/vfio.h
+++ b/linux-headers/linux/vfio.h
@@ -816,6 +816,31 @@ 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;
+ /* out */
+ __u32 status;
+ /* in */
+ __u32 adapter_id;
+ __u64 nib;
+ __u16 apqn;
+ __u8 isc;
+ __u8 reserved[5];
+};
+#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.7.4
- Re: [qemu-s390x] [PATCH v2 2/6] s390x/vfio: ap: Use the APdevice as a child of the APBus, (continued)
Re: [qemu-s390x] [PATCH v2 2/6] s390x/vfio: ap: Use the APdevice as a child of the APBus, Tony Krowiak, 2018/11/29
[qemu-s390x] [PATCH v2 1/6] s390x/vfio: ap: Finding the AP bridge, Pierre Morel, 2018/11/22
[qemu-s390x] [PATCH v2 3/6] s390x/vfio: ap: Linux uapi VFIO place holder,
Pierre Morel <=
[qemu-s390x] [PATCH v2 5/6] s390x/vfio: ap: Definition for AP Adapter type, Pierre Morel, 2018/11/22
[qemu-s390x] [PATCH v2 6/6] s390x/vfio: ap: Implementing AP Queue Interrupt Control, Pierre Morel, 2018/11/22
Re: [qemu-s390x] [Qemu-devel] [PATCH v2 0/6] s390x/vfio: VFIO-AP interrupt control interception, Halil Pasic, 2018/11/29