KVM
Functions
arm_hypercalls.h File Reference
#include <asm/kvm_emulate.h>
Include dependency graph for arm_hypercalls.h:

Go to the source code of this file.

Functions

int kvm_smccc_call_handler (struct kvm_vcpu *vcpu)
 
static u32 smccc_get_function (struct kvm_vcpu *vcpu)
 
static unsigned long smccc_get_arg1 (struct kvm_vcpu *vcpu)
 
static unsigned long smccc_get_arg2 (struct kvm_vcpu *vcpu)
 
static unsigned long smccc_get_arg3 (struct kvm_vcpu *vcpu)
 
static void smccc_set_retval (struct kvm_vcpu *vcpu, unsigned long a0, unsigned long a1, unsigned long a2, unsigned long a3)
 
void kvm_arm_init_hypercalls (struct kvm *kvm)
 
void kvm_arm_teardown_hypercalls (struct kvm *kvm)
 
int kvm_arm_get_fw_num_regs (struct kvm_vcpu *vcpu)
 
int kvm_arm_copy_fw_reg_indices (struct kvm_vcpu *vcpu, u64 __user *uindices)
 
int kvm_arm_get_fw_reg (struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg)
 
int kvm_arm_set_fw_reg (struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg)
 
int kvm_vm_smccc_has_attr (struct kvm *kvm, struct kvm_device_attr *attr)
 
int kvm_vm_smccc_set_attr (struct kvm *kvm, struct kvm_device_attr *attr)
 

Function Documentation

◆ kvm_arm_copy_fw_reg_indices()

int kvm_arm_copy_fw_reg_indices ( struct kvm_vcpu *  vcpu,
u64 __user *  uindices 
)

◆ kvm_arm_get_fw_num_regs()

int kvm_arm_get_fw_num_regs ( struct kvm_vcpu *  vcpu)

◆ kvm_arm_get_fw_reg()

int kvm_arm_get_fw_reg ( struct kvm_vcpu *  vcpu,
const struct kvm_one_reg *  reg 
)

◆ kvm_arm_init_hypercalls()

void kvm_arm_init_hypercalls ( struct kvm *  kvm)

◆ kvm_arm_set_fw_reg()

int kvm_arm_set_fw_reg ( struct kvm_vcpu *  vcpu,
const struct kvm_one_reg *  reg 
)

◆ kvm_arm_teardown_hypercalls()

void kvm_arm_teardown_hypercalls ( struct kvm *  kvm)

◆ kvm_smccc_call_handler()

int kvm_smccc_call_handler ( struct kvm_vcpu *  vcpu)

◆ kvm_vm_smccc_has_attr()

int kvm_vm_smccc_has_attr ( struct kvm *  kvm,
struct kvm_device_attr *  attr 
)

◆ kvm_vm_smccc_set_attr()

int kvm_vm_smccc_set_attr ( struct kvm *  kvm,
struct kvm_device_attr *  attr 
)

◆ smccc_get_arg1()

static unsigned long smccc_get_arg1 ( struct kvm_vcpu *  vcpu)
inlinestatic

Definition at line 16 of file arm_hypercalls.h.

17 {
18  return vcpu_get_reg(vcpu, 1);
19 }

◆ smccc_get_arg2()

static unsigned long smccc_get_arg2 ( struct kvm_vcpu *  vcpu)
inlinestatic

Definition at line 21 of file arm_hypercalls.h.

22 {
23  return vcpu_get_reg(vcpu, 2);
24 }

◆ smccc_get_arg3()

static unsigned long smccc_get_arg3 ( struct kvm_vcpu *  vcpu)
inlinestatic

Definition at line 26 of file arm_hypercalls.h.

27 {
28  return vcpu_get_reg(vcpu, 3);
29 }

◆ smccc_get_function()

static u32 smccc_get_function ( struct kvm_vcpu *  vcpu)
inlinestatic

Definition at line 11 of file arm_hypercalls.h.

12 {
13  return vcpu_get_reg(vcpu, 0);
14 }

◆ smccc_set_retval()

static void smccc_set_retval ( struct kvm_vcpu *  vcpu,
unsigned long  a0,
unsigned long  a1,
unsigned long  a2,
unsigned long  a3 
)
inlinestatic

Definition at line 31 of file arm_hypercalls.h.

36 {
37  vcpu_set_reg(vcpu, 0, a0);
38  vcpu_set_reg(vcpu, 1, a1);
39  vcpu_set_reg(vcpu, 2, a2);
40  vcpu_set_reg(vcpu, 3, a3);
41 }