diff options
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 9c2fd025b8ae..d7b9bbba26da 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -979,7 +979,7 @@ static struct kvm *kvm_create_vm(void) | |||
979 | spin_lock_init(&kvm->mmu_lock); | 979 | spin_lock_init(&kvm->mmu_lock); |
980 | spin_lock_init(&kvm->requests_lock); | 980 | spin_lock_init(&kvm->requests_lock); |
981 | kvm_io_bus_init(&kvm->pio_bus); | 981 | kvm_io_bus_init(&kvm->pio_bus); |
982 | kvm_irqfd_init(kvm); | 982 | kvm_eventfd_init(kvm); |
983 | mutex_init(&kvm->lock); | 983 | mutex_init(&kvm->lock); |
984 | mutex_init(&kvm->irq_lock); | 984 | mutex_init(&kvm->irq_lock); |
985 | kvm_io_bus_init(&kvm->mmio_bus); | 985 | kvm_io_bus_init(&kvm->mmio_bus); |
@@ -2271,6 +2271,15 @@ static long kvm_vm_ioctl(struct file *filp, | |||
2271 | r = kvm_irqfd(kvm, data.fd, data.gsi, data.flags); | 2271 | r = kvm_irqfd(kvm, data.fd, data.gsi, data.flags); |
2272 | break; | 2272 | break; |
2273 | } | 2273 | } |
2274 | case KVM_IOEVENTFD: { | ||
2275 | struct kvm_ioeventfd data; | ||
2276 | |||
2277 | r = -EFAULT; | ||
2278 | if (copy_from_user(&data, argp, sizeof data)) | ||
2279 | goto out; | ||
2280 | r = kvm_ioeventfd(kvm, &data); | ||
2281 | break; | ||
2282 | } | ||
2274 | #ifdef CONFIG_KVM_APIC_ARCHITECTURE | 2283 | #ifdef CONFIG_KVM_APIC_ARCHITECTURE |
2275 | case KVM_SET_BOOT_CPU_ID: | 2284 | case KVM_SET_BOOT_CPU_ID: |
2276 | r = 0; | 2285 | r = 0; |