Loading...
Note: File does not exist in v5.9.
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2012 Rusty Russell IBM Corporation
4 */
5
6#ifndef __ARM_KVM_COPROC_H__
7#define __ARM_KVM_COPROC_H__
8#include <linux/kvm_host.h>
9
10void kvm_reset_coprocs(struct kvm_vcpu *vcpu);
11
12struct kvm_coproc_target_table {
13 unsigned target;
14 const struct coproc_reg *table;
15 size_t num;
16};
17void kvm_register_target_coproc_table(struct kvm_coproc_target_table *table);
18
19int kvm_handle_cp10_id(struct kvm_vcpu *vcpu, struct kvm_run *run);
20int kvm_handle_cp_0_13_access(struct kvm_vcpu *vcpu, struct kvm_run *run);
21int kvm_handle_cp14_load_store(struct kvm_vcpu *vcpu, struct kvm_run *run);
22int kvm_handle_cp14_32(struct kvm_vcpu *vcpu, struct kvm_run *run);
23int kvm_handle_cp14_64(struct kvm_vcpu *vcpu, struct kvm_run *run);
24int kvm_handle_cp15_32(struct kvm_vcpu *vcpu, struct kvm_run *run);
25int kvm_handle_cp15_64(struct kvm_vcpu *vcpu, struct kvm_run *run);
26
27unsigned long kvm_arm_num_guest_msrs(struct kvm_vcpu *vcpu);
28int kvm_arm_copy_msrindices(struct kvm_vcpu *vcpu, u64 __user *uindices);
29void kvm_coproc_table_init(void);
30
31struct kvm_one_reg;
32int kvm_arm_copy_coproc_indices(struct kvm_vcpu *vcpu, u64 __user *uindices);
33int kvm_arm_coproc_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *);
34int kvm_arm_coproc_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *);
35unsigned long kvm_arm_num_coproc_regs(struct kvm_vcpu *vcpu);
36#endif /* __ARM_KVM_COPROC_H__ */