KVM
|
#include <hyp/sysreg-sr.h>
#include <linux/compiler.h>
#include <linux/kvm_host.h>
#include <asm/kprobes.h>
#include <asm/kvm_asm.h>
#include <asm/kvm_emulate.h>
#include <asm/kvm_hyp.h>
#include <asm/kvm_nested.h>
Go to the source code of this file.
Functions | |
void | sysreg_save_host_state_vhe (struct kvm_cpu_context *ctxt) |
NOKPROBE_SYMBOL (sysreg_save_host_state_vhe) | |
void | sysreg_save_guest_state_vhe (struct kvm_cpu_context *ctxt) |
NOKPROBE_SYMBOL (sysreg_save_guest_state_vhe) | |
void | sysreg_restore_host_state_vhe (struct kvm_cpu_context *ctxt) |
NOKPROBE_SYMBOL (sysreg_restore_host_state_vhe) | |
void | sysreg_restore_guest_state_vhe (struct kvm_cpu_context *ctxt) |
NOKPROBE_SYMBOL (sysreg_restore_guest_state_vhe) | |
void | __vcpu_load_switch_sysregs (struct kvm_vcpu *vcpu) |
void | __vcpu_put_switch_sysregs (struct kvm_vcpu *vcpu) |
void __vcpu_load_switch_sysregs | ( | struct kvm_vcpu * | vcpu | ) |
__vcpu_load_switch_sysregs - Load guest system registers to the physical CPU
@vcpu: The VCPU pointer
Load system registers that do not affect the host's execution, for example EL1 system registers on a VHE system where the host kernel runs at EL2. This function is called from KVM's vcpu_load() function and loading system register state early avoids having to load them on every entry to the VM.
Definition at line 65 of file sysreg-sr.c.
void __vcpu_put_switch_sysregs | ( | struct kvm_vcpu * | vcpu | ) |
__vcpu_put_switch_syregs - Restore host system registers to the physical CPU
@vcpu: The VCPU pointer
Save guest system registers that do not affect the host's execution, for example EL1 system registers on a VHE system where the host kernel runs at EL2. This function is called from KVM's vcpu_put() function and deferring saving system register state until we're no longer running the VCPU avoids having to save them on every exit from the VM.
Definition at line 108 of file sysreg-sr.c.
NOKPROBE_SYMBOL | ( | sysreg_restore_guest_state_vhe | ) |
NOKPROBE_SYMBOL | ( | sysreg_restore_host_state_vhe | ) |
NOKPROBE_SYMBOL | ( | sysreg_save_guest_state_vhe | ) |
NOKPROBE_SYMBOL | ( | sysreg_save_host_state_vhe | ) |
void sysreg_restore_guest_state_vhe | ( | struct kvm_cpu_context * | ctxt | ) |
Definition at line 47 of file sysreg-sr.c.
void sysreg_restore_host_state_vhe | ( | struct kvm_cpu_context * | ctxt | ) |
Definition at line 41 of file sysreg-sr.c.
void sysreg_save_guest_state_vhe | ( | struct kvm_cpu_context * | ctxt | ) |
Definition at line 34 of file sysreg-sr.c.
void sysreg_save_host_state_vhe | ( | struct kvm_cpu_context * | ctxt | ) |
Definition at line 28 of file sysreg-sr.c.