diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-03-29 15:14:12 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-24 08:59:47 -0400 |
commit | 07975ad3b30579ca27d880491ad992326b930c63 (patch) | |
tree | fea166a02c387949a09a948a51781074bdc9ed68 /include/linux/kvm_host.h | |
parent | 1f15d10984c854e077da5aa1a23f901496b49773 (diff) |
KVM: Introduce direct MSI message injection for in-kernel irqchips
Currently, MSI messages can only be injected to in-kernel irqchips by
defining a corresponding IRQ route for each message. This is not only
unhandy if the MSI messages are generated "on the fly" by user space,
IRQ routes are a limited resource that user space has to manage
carefully.
By providing a direct injection path, we can both avoid using up limited
resources and simplify the necessary steps for user land.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 186ffab0b9f0..6f343307d72b 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -802,6 +802,8 @@ int kvm_set_irq_routing(struct kvm *kvm, | |||
802 | unsigned flags); | 802 | unsigned flags); |
803 | void kvm_free_irq_routing(struct kvm *kvm); | 803 | void kvm_free_irq_routing(struct kvm *kvm); |
804 | 804 | ||
805 | int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi); | ||
806 | |||
805 | #else | 807 | #else |
806 | 808 | ||
807 | static inline void kvm_free_irq_routing(struct kvm *kvm) {} | 809 | static inline void kvm_free_irq_routing(struct kvm *kvm) {} |