Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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