diff options
author | Avi Kivity <avi@qumranet.com> | 2008-07-26 16:00:59 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:16 -0400 |
commit | 564f15378f04921d5749f27ec53d5e68a6d1d446 (patch) | |
tree | 5ba58d06003010de40989a99b920602a1e76fdf9 /include/asm-x86 | |
parent | 49dd2c492895828a90ecdf889e7fe9cfb40a82a7 (diff) |
KVM: Add irq ack notifier list
This can be used by kvm subsystems that are interested in when
interrupts are acked, for example time drift compensation.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/kvm_host.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h index 83afa10c77f5..d451928fc841 100644 --- a/include/asm-x86/kvm_host.h +++ b/include/asm-x86/kvm_host.h | |||
@@ -321,6 +321,12 @@ struct kvm_mem_alias { | |||
321 | gfn_t target_gfn; | 321 | gfn_t target_gfn; |
322 | }; | 322 | }; |
323 | 323 | ||
324 | struct kvm_irq_ack_notifier { | ||
325 | struct hlist_node link; | ||
326 | unsigned gsi; | ||
327 | void (*irq_acked)(struct kvm_irq_ack_notifier *kian); | ||
328 | }; | ||
329 | |||
324 | struct kvm_arch{ | 330 | struct kvm_arch{ |
325 | int naliases; | 331 | int naliases; |
326 | struct kvm_mem_alias aliases[KVM_ALIAS_SLOTS]; | 332 | struct kvm_mem_alias aliases[KVM_ALIAS_SLOTS]; |
@@ -336,6 +342,7 @@ struct kvm_arch{ | |||
336 | struct kvm_pic *vpic; | 342 | struct kvm_pic *vpic; |
337 | struct kvm_ioapic *vioapic; | 343 | struct kvm_ioapic *vioapic; |
338 | struct kvm_pit *vpit; | 344 | struct kvm_pit *vpit; |
345 | struct hlist_head irq_ack_notifier_list; | ||
339 | 346 | ||
340 | int round_robin_prev_vcpu; | 347 | int round_robin_prev_vcpu; |
341 | unsigned int tss_addr; | 348 | unsigned int tss_addr; |