This source file includes following definitions.
- kvm_psci_version
1
2
3
4
5
6
7 #ifndef __KVM_ARM_PSCI_H__
8 #define __KVM_ARM_PSCI_H__
9
10 #include <linux/kvm_host.h>
11 #include <uapi/linux/psci.h>
12
13 #define KVM_ARM_PSCI_0_1 PSCI_VERSION(0, 1)
14 #define KVM_ARM_PSCI_0_2 PSCI_VERSION(0, 2)
15 #define KVM_ARM_PSCI_1_0 PSCI_VERSION(1, 0)
16
17 #define KVM_ARM_PSCI_LATEST KVM_ARM_PSCI_1_0
18
19
20
21
22
23 static inline int kvm_psci_version(struct kvm_vcpu *vcpu, struct kvm *kvm)
24 {
25
26
27
28
29
30
31
32 if (test_bit(KVM_ARM_VCPU_PSCI_0_2, vcpu->arch.features)) {
33 if (vcpu->kvm->arch.psci_version)
34 return vcpu->kvm->arch.psci_version;
35
36 return KVM_ARM_PSCI_LATEST;
37 }
38
39 return KVM_ARM_PSCI_0_1;
40 }
41
42
43 int kvm_hvc_call_handler(struct kvm_vcpu *vcpu);
44
45 struct kvm_one_reg;
46
47 int kvm_arm_get_fw_num_regs(struct kvm_vcpu *vcpu);
48 int kvm_arm_copy_fw_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices);
49 int kvm_arm_get_fw_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg);
50 int kvm_arm_set_fw_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg);
51
52 #endif