From: Gavin Shan <gwshan@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: alex.williamson@redhat.com, qemu-ppc@nongnu.org,
Gavin Shan <gwshan@linux.vnet.ibm.com>,
david@gibson.dropbear.id.au
Subject: [Qemu-devel] [PATCH RFC 1/4] linux-headers: Sync vfio.h
Date: Fri, 18 Sep 2015 16:30:13 +1000 [thread overview]
Message-ID: <1442557816-23067-2-git-send-email-gwshan@linux.vnet.ibm.com> (raw)
In-Reply-To: <1442557816-23067-1-git-send-email-gwshan@linux.vnet.ibm.com>
This synchronizes the Linux header vfio.h because of the changes
introduced by below Linux commits:
900facd ("drivers/vfio: Support IOMMU group for EEH operations")
108f78d ("drivers/vfio: Support EEH API revision")
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
---
| 6 ++++++
1 file changed, 6 insertions(+)
--git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index aa276bc..0cf1c57 100644
--- a/linux-headers/linux/vfio.h
+++ b/linux-headers/linux/vfio.h
@@ -495,6 +495,10 @@ struct vfio_iommu_spapr_tce_info {
* - configure PE;
* - inject EEH error.
*/
+#define VFIO_EEH_DISABLED 0
+#define VFIO_EEH_ENABLED_V1 1
+#define VFIO_EEH_ENABLED_V2 2
+
struct vfio_eeh_pe_err {
__u32 type;
__u32 func;
@@ -505,7 +509,9 @@ struct vfio_eeh_pe_err {
struct vfio_eeh_pe_op {
__u32 argsz;
__u32 flags;
+#define VFIO_EEH_ENABLED_MASK 0xFF
__u32 op;
+ __u32 groupid;
union {
struct vfio_eeh_pe_err err;
};
--
2.1.0
next prev parent reply other threads:[~2015-09-18 6:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 6:30 [Qemu-devel] [PATCH RFC 0/4] sPAPR: Support multiple PEs in one PHB Gavin Shan
2015-09-18 6:30 ` Gavin Shan [this message]
2015-09-18 6:30 ` [Qemu-devel] [PATCH RFC 2/4] VFIO: Introduce vfio_get_group_id() Gavin Shan
2015-09-18 6:30 ` [Qemu-devel] [PATCH RFC 3/4] sPAPR: Support multiple IOMMU groups in PHB for EEH operations Gavin Shan
2015-09-18 6:30 ` [Qemu-devel] [PATCH RFC 4/4] sPAPR: Remove EEH callbacks in sPAPRPHBClass Gavin Shan
2015-09-19 6:28 ` [Qemu-devel] [PATCH RFC 0/4] sPAPR: Support multiple PEs in one PHB David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1442557816-23067-2-git-send-email-gwshan@linux.vnet.ibm.com \
--to=gwshan@linux.vnet.ibm.com \
--cc=alex.williamson@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).