blob: e7033469733d4f8dd84fce48a8e03c8279ad15cc [file] [log] [blame]
Avi Kivity3f0852e2009-12-20 14:42:19 +02001#ifndef __KVM_COALESCED_MMIO_H__
2#define __KVM_COALESCED_MMIO_H__
3
Laurent Vivier5f94c172008-05-30 16:05:54 +02004/*
5 * KVM coalesced MMIO
6 *
7 * Copyright (c) 2008 Bull S.A.S.
8 *
9 * Author: Laurent Vivier <Laurent.Vivier@bull.net>
10 *
11 */
12
13#define KVM_COALESCED_MMIO_ZONE_MAX 100
14
15struct kvm_coalesced_mmio_dev {
16 struct kvm_io_device dev;
17 struct kvm *kvm;
Marcelo Tosatti64a22682009-06-04 15:08:22 -030018 spinlock_t lock;
Laurent Vivier5f94c172008-05-30 16:05:54 +020019 int nb_zones;
20 struct kvm_coalesced_mmio_zone zone[KVM_COALESCED_MMIO_ZONE_MAX];
21};
22
23int kvm_coalesced_mmio_init(struct kvm *kvm);
24int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm,
25 struct kvm_coalesced_mmio_zone *zone);
26int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm,
27 struct kvm_coalesced_mmio_zone *zone);
Avi Kivity3f0852e2009-12-20 14:42:19 +020028
29#endif