Linux Audio

Check our new training course

Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef __KVM_COALESCED_MMIO_H__
 3#define __KVM_COALESCED_MMIO_H__
 4
 5/*
 6 * KVM coalesced MMIO
 7 *
 8 * Copyright (c) 2008 Bull S.A.S.
 9 *
10 *  Author: Laurent Vivier <Laurent.Vivier@bull.net>
11 *
12 */
13
14#ifdef CONFIG_KVM_MMIO
15
16#include <linux/list.h>
17
18struct kvm_coalesced_mmio_dev {
19	struct list_head list;
20	struct kvm_io_device dev;
21	struct kvm *kvm;
22	struct kvm_coalesced_mmio_zone zone;
23};
24
25int kvm_coalesced_mmio_init(struct kvm *kvm);
26void kvm_coalesced_mmio_free(struct kvm *kvm);
27int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm,
28					struct kvm_coalesced_mmio_zone *zone);
29int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm,
30					struct kvm_coalesced_mmio_zone *zone);
31
32#else
33
34static inline int kvm_coalesced_mmio_init(struct kvm *kvm) { return 0; }
35static inline void kvm_coalesced_mmio_free(struct kvm *kvm) { }
36
37#endif
38
39#endif
v3.5.6
 
 1#ifndef __KVM_COALESCED_MMIO_H__
 2#define __KVM_COALESCED_MMIO_H__
 3
 4/*
 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#ifdef CONFIG_KVM_MMIO
14
15#include <linux/list.h>
16
17struct kvm_coalesced_mmio_dev {
18	struct list_head list;
19	struct kvm_io_device dev;
20	struct kvm *kvm;
21	struct kvm_coalesced_mmio_zone zone;
22};
23
24int kvm_coalesced_mmio_init(struct kvm *kvm);
25void kvm_coalesced_mmio_free(struct kvm *kvm);
26int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm,
27                                       struct kvm_coalesced_mmio_zone *zone);
28int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm,
29                                         struct kvm_coalesced_mmio_zone *zone);
30
31#else
32
33static inline int kvm_coalesced_mmio_init(struct kvm *kvm) { return 0; }
34static inline void kvm_coalesced_mmio_free(struct kvm *kvm) { }
35
36#endif
37
38#endif