10 #ifndef __ARM64_KVM_HYP_ADJUST_PC_H__
11 #define __ARM64_KVM_HYP_ADJUST_PC_H__
13 #include <asm/kvm_emulate.h>
14 #include <asm/kvm_host.h>
18 if (vcpu_mode_is_32bit(vcpu)) {
22 *vcpu_cpsr(vcpu) &= ~PSR_BTYPE_MASK;
26 *vcpu_cpsr(vcpu) &= ~DBG_SPSR_SS;
35 *vcpu_pc(vcpu) = read_sysreg_el2(SYS_ELR);
36 vcpu_gp_regs(vcpu)->pstate = read_sysreg_el2(SYS_SPSR);
40 write_sysreg_el2(vcpu_gp_regs(vcpu)->pstate, SYS_SPSR);
41 write_sysreg_el2(*vcpu_pc(vcpu), SYS_ELR);
50 write_sysreg_el2(read_sysreg_el2(SYS_ELR) + 4, SYS_ELR);
void kvm_skip_instr32(struct kvm_vcpu *vcpu)
static void kvm_skip_instr(struct kvm_vcpu *vcpu)
static void __kvm_skip_instr(struct kvm_vcpu *vcpu)
static void kvm_skip_host_instr(void)