KVM
|
#include <linux/kvm_host.h>
#include <uapi/linux/psci.h>
Go to the source code of this file.
Macros | |
#define | KVM_ARM_PSCI_0_1 PSCI_VERSION(0, 1) |
#define | KVM_ARM_PSCI_0_2 PSCI_VERSION(0, 2) |
#define | KVM_ARM_PSCI_1_0 PSCI_VERSION(1, 0) |
#define | KVM_ARM_PSCI_1_1 PSCI_VERSION(1, 1) |
#define | KVM_ARM_PSCI_LATEST KVM_ARM_PSCI_1_1 |
Functions | |
static int | kvm_psci_version (struct kvm_vcpu *vcpu) |
int | kvm_psci_call (struct kvm_vcpu *vcpu) |
#define KVM_ARM_PSCI_0_1 PSCI_VERSION(0, 1) |
Definition at line 13 of file arm_psci.h.
#define KVM_ARM_PSCI_0_2 PSCI_VERSION(0, 2) |
Definition at line 14 of file arm_psci.h.
#define KVM_ARM_PSCI_1_0 PSCI_VERSION(1, 0) |
Definition at line 15 of file arm_psci.h.
#define KVM_ARM_PSCI_1_1 PSCI_VERSION(1, 1) |
Definition at line 16 of file arm_psci.h.
#define KVM_ARM_PSCI_LATEST KVM_ARM_PSCI_1_1 |
Definition at line 18 of file arm_psci.h.
int kvm_psci_call | ( | struct kvm_vcpu * | vcpu | ) |
kvm_psci_call - handle PSCI call if r0 value is in range @vcpu: Pointer to the VCPU struct
Handle PSCI calls from guests through traps from HVC instructions. The calling convention is similar to SMC calls to the secure world where the function number is placed in r0.
This function returns: > 0 (success), 0 (success but exit to user space), and < 0 (errors)
Errors: -EINVAL: Unrecognized PSCI function
Definition at line 439 of file psci.c.
|
inlinestatic |