]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
3f0852e0 AK |
2 | #ifndef __KVM_COALESCED_MMIO_H__ |
3 | #define __KVM_COALESCED_MMIO_H__ | |
4 | ||
5f94c174 LV |
5 | /* |
6 | * KVM coalesced MMIO | |
7 | * | |
8 | * Copyright (c) 2008 Bull S.A.S. | |
9 | * | |
10 | * Author: Laurent Vivier <[email protected]> | |
11 | * | |
12 | */ | |
13 | ||
980da6ce AK |
14 | #ifdef CONFIG_KVM_MMIO |
15 | ||
2b3c246a | 16 | #include <linux/list.h> |
5f94c174 LV |
17 | |
18 | struct kvm_coalesced_mmio_dev { | |
2b3c246a | 19 | struct list_head list; |
5f94c174 LV |
20 | struct kvm_io_device dev; |
21 | struct kvm *kvm; | |
2b3c246a | 22 | struct kvm_coalesced_mmio_zone zone; |
5f94c174 LV |
23 | }; |
24 | ||
25 | int kvm_coalesced_mmio_init(struct kvm *kvm); | |
980da6ce | 26 | void kvm_coalesced_mmio_free(struct kvm *kvm); |
5f94c174 | 27 | int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm, |
81523aac | 28 | struct kvm_coalesced_mmio_zone *zone); |
5f94c174 | 29 | int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm, |
81523aac | 30 | struct kvm_coalesced_mmio_zone *zone); |
3f0852e0 | 31 | |
980da6ce AK |
32 | #else |
33 | ||
34 | static inline int kvm_coalesced_mmio_init(struct kvm *kvm) { return 0; } | |
35 | static inline void kvm_coalesced_mmio_free(struct kvm *kvm) { } | |
36 | ||
37 | #endif | |
38 | ||
3f0852e0 | 39 | #endif |