Blame view
virt/kvm/coalesced_mmio.h
915 Bytes
3f0852e0a KVM: Add include ... |
1 2 |
#ifndef __KVM_COALESCED_MMIO_H__ #define __KVM_COALESCED_MMIO_H__ |
5f94c1741 KVM: Add coalesce... |
3 4 5 6 7 8 9 10 |
/* * KVM coalesced MMIO * * Copyright (c) 2008 Bull S.A.S. * * Author: Laurent Vivier <Laurent.Vivier@bull.net> * */ |
980da6ce5 KVM: Simplify coa... |
11 |
#ifdef CONFIG_KVM_MMIO |
2b3c246a6 KVM: Make coalesc... |
12 |
#include <linux/list.h> |
5f94c1741 KVM: Add coalesce... |
13 14 |
struct kvm_coalesced_mmio_dev { |
2b3c246a6 KVM: Make coalesc... |
15 |
struct list_head list; |
5f94c1741 KVM: Add coalesce... |
16 17 |
struct kvm_io_device dev; struct kvm *kvm; |
2b3c246a6 KVM: Make coalesc... |
18 |
struct kvm_coalesced_mmio_zone zone; |
5f94c1741 KVM: Add coalesce... |
19 20 21 |
}; int kvm_coalesced_mmio_init(struct kvm *kvm); |
980da6ce5 KVM: Simplify coa... |
22 |
void kvm_coalesced_mmio_free(struct kvm *kvm); |
5f94c1741 KVM: Add coalesce... |
23 24 25 26 |
int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm, struct kvm_coalesced_mmio_zone *zone); int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm, struct kvm_coalesced_mmio_zone *zone); |
3f0852e0a KVM: Add include ... |
27 |
|
980da6ce5 KVM: Simplify coa... |
28 29 30 31 32 33 |
#else static inline int kvm_coalesced_mmio_init(struct kvm *kvm) { return 0; } static inline void kvm_coalesced_mmio_free(struct kvm *kvm) { } #endif |
3f0852e0a KVM: Add include ... |
34 |
#endif |