aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_types.h
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2009-02-11 16:03:36 +0800
committerAvi Kivity <avi@redhat.com>2009-06-10 11:48:21 +0300
commitcf9e4e15e8f6306b2559979269ead7c02e6b2b95 (patch)
tree08913212c62e64e3f3a6622e9cc302e7b1f386b5 /include/linux/kvm_types.h
parentKVM: VMX: Don't intercept MSR_KERNEL_GS_BASE (diff)
downloadlinux-dev-cf9e4e15e8f6306b2559979269ead7c02e6b2b95.tar.xz
linux-dev-cf9e4e15e8f6306b2559979269ead7c02e6b2b95.zip
KVM: Split IOAPIC structure
Prepared for reuse ioapic_redir_entry for MSI. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_types.h')
-rw-r--r--include/linux/kvm_types.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/kvm_types.h b/include/linux/kvm_types.h
index 2b8318c83e53..b84aca3c4ad1 100644
--- a/include/linux/kvm_types.h
+++ b/include/linux/kvm_types.h
@@ -40,4 +40,21 @@ typedef unsigned long hfn_t;
typedef hfn_t pfn_t;
+union kvm_ioapic_redirect_entry {
+ u64 bits;
+ struct {
+ u8 vector;
+ u8 delivery_mode:3;
+ u8 dest_mode:1;
+ u8 delivery_status:1;
+ u8 polarity:1;
+ u8 remote_irr:1;
+ u8 trig_mode:1;
+ u8 mask:1;
+ u8 reserve:7;
+ u8 reserved[4];
+ u8 dest_id;
+ } fields;
+};
+
#endif /* __KVM_TYPES_H__ */