From: Feng Wu <feng.wu@intel.com>
To: alex.williamson@redhat.com
Cc: Feng Wu <feng.wu@intel.com>,
qemu-devel@nongnu.org, eric.auger@linaro.org
Subject: [Qemu-devel] [v3 1/2] kvm, vfio: Define new VFIO data structure for VT-d Posted-Interrupts.
Date: Fri, 12 Dec 2014 23:18:42 +0800 [thread overview]
Message-ID: <1418397526-10979-2-git-send-email-feng.wu@intel.com> (raw)
In-Reply-To: <1418397526-10979-1-git-send-email-feng.wu@intel.com>
Define new VFIO data structure for VT-d Posted-Interrupts.
Signed-off-by: Feng Wu <feng.wu@intel.com>
---
| 11 +++++++++++
1 file changed, 11 insertions(+)
--git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index 1937afa..6463b28 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -949,6 +949,8 @@ struct kvm_device_attr {
#define KVM_DEV_VFIO_DEVICE 2
#define KVM_DEV_VFIO_DEVICE_FORWARD_IRQ 1
#define KVM_DEV_VFIO_DEVICE_UNFORWARD_IRQ 2
+#define KVM_DEV_VFIO_DEVICE_POST_IRQ 3
+#define KVM_DEV_VFIO_DEVICE_UNPOST_IRQ 4
enum kvm_device_type {
KVM_DEV_TYPE_FSL_MPIC_20 = 1,
@@ -973,6 +975,15 @@ struct kvm_arch_forwarded_irq {
__u32 gsi; /* gsi, ie. virtual IRQ number */
};
+struct kvm_vfio_dev_irq {
+ __u32 argsz;
+ __u32 fd; /* file descriptor of the VFIO device */
+ __u32 index; /* VFIO device IRQ index */
+ __u32 start;
+ __u32 count;
+ __u32 gsi[]; /* gsi, ie. virtual IRQ number */
+};
+
/*
* ioctls for VM fds
*/
--
1.9.1
next prev parent reply other threads:[~2014-12-12 15:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 15:18 [Qemu-devel] [v3 0/2] Add VT-d Posted-Interrupts support Feng Wu
2014-12-12 15:18 ` Feng Wu [this message]
2014-12-12 15:18 ` [Qemu-devel] [v3 2/2] kvm, vfio: Update VT-d Posted-Interrupts related information Feng Wu
2014-12-12 15:18 ` [Qemu-devel] [v3 0/2] Add VT-d Posted-Interrupts support Feng Wu
2014-12-12 15:18 ` [Qemu-devel] [v3 1/2] kvm, vfio: Define new VFIO data structure for VT-d Posted-Interrupts Feng Wu
2014-12-12 15:18 ` [Qemu-devel] [v3 2/2] kvm, vfio: Update VT-d Posted-Interrupts related information Feng Wu
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=1418397526-10979-2-git-send-email-feng.wu@intel.com \
--to=feng.wu@intel.com \
--cc=alex.williamson@redhat.com \
--cc=eric.auger@linaro.org \
--cc=qemu-devel@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).