diff options
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/Kconfig | 3 | ||||
-rw-r--r-- | virt/kvm/eventfd.c | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig index e2c876d5a03b..9f8014dda2cf 100644 --- a/virt/kvm/Kconfig +++ b/virt/kvm/Kconfig | |||
@@ -47,3 +47,6 @@ config KVM_GENERIC_DIRTYLOG_READ_PROTECT | |||
47 | config KVM_COMPAT | 47 | config KVM_COMPAT |
48 | def_bool y | 48 | def_bool y |
49 | depends on COMPAT && !S390 | 49 | depends on COMPAT && !S390 |
50 | |||
51 | config HAVE_KVM_IRQ_BYPASS | ||
52 | bool | ||
diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index 413f5a6b61ba..c4f7abec4261 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c | |||
@@ -252,6 +252,18 @@ static void irqfd_update(struct kvm *kvm, struct kvm_kernel_irqfd *irqfd) | |||
252 | write_seqcount_end(&irqfd->irq_entry_sc); | 252 | write_seqcount_end(&irqfd->irq_entry_sc); |
253 | } | 253 | } |
254 | 254 | ||
255 | #ifdef CONFIG_HAVE_KVM_IRQ_BYPASS | ||
256 | void __attribute__((weak)) kvm_arch_irq_bypass_stop( | ||
257 | struct irq_bypass_consumer *cons) | ||
258 | { | ||
259 | } | ||
260 | |||
261 | void __attribute__((weak)) kvm_arch_irq_bypass_start( | ||
262 | struct irq_bypass_consumer *cons) | ||
263 | { | ||
264 | } | ||
265 | #endif | ||
266 | |||
255 | static int | 267 | static int |
256 | kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) | 268 | kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) |
257 | { | 269 | { |