#include <hyp/debug-sr.h>
#include <linux/compiler.h>
#include <linux/kvm_host.h>
#include <asm/debug-monitors.h>
#include <asm/kvm_asm.h>
#include <asm/kvm_hyp.h>
#include <asm/kvm_mmu.h>
Go to the source code of this file.
◆ __debug_restore_host_buffers_nvhe()
void __debug_restore_host_buffers_nvhe |
( |
struct kvm_vcpu * |
vcpu | ) |
|
Definition at line 97 of file debug-sr.c.
99 if (vcpu_get_flag(vcpu, DEBUG_STATE_SAVE_SPE))
101 if (vcpu_get_flag(vcpu, DEBUG_STATE_SAVE_TRBE))
static void __debug_restore_trace(u64 trfcr_el1)
static void __debug_restore_spe(u64 pmscr_el1)
◆ __debug_restore_spe()
static void __debug_restore_spe |
( |
u64 |
pmscr_el1 | ) |
|
|
static |
Definition at line 42 of file debug-sr.c.
51 write_sysreg_s(pmscr_el1, SYS_PMSCR_EL1);
◆ __debug_restore_trace()
static void __debug_restore_trace |
( |
u64 |
trfcr_el1 | ) |
|
|
static |
Definition at line 73 of file debug-sr.c.
79 write_sysreg_s(trfcr_el1, SYS_TRFCR_EL1);
◆ __debug_save_host_buffers_nvhe()
void __debug_save_host_buffers_nvhe |
( |
struct kvm_vcpu * |
vcpu | ) |
|
Definition at line 82 of file debug-sr.c.
85 if (vcpu_get_flag(vcpu, DEBUG_STATE_SAVE_SPE))
88 if (vcpu_get_flag(vcpu, DEBUG_STATE_SAVE_TRBE))
static void __debug_save_trace(u64 *trfcr_el1)
static void __debug_save_spe(u64 *pmscr_el1)
◆ __debug_save_spe()
static void __debug_save_spe |
( |
u64 * |
pmscr_el1 | ) |
|
|
static |
Definition at line 17 of file debug-sr.c.
29 reg = read_sysreg_s(SYS_PMBLIMITR_EL1);
30 if (!(reg & BIT(PMBLIMITR_EL1_E_SHIFT)))
34 *pmscr_el1 = read_sysreg_s(SYS_PMSCR_EL1);
35 write_sysreg_s(0, SYS_PMSCR_EL1);
◆ __debug_save_trace()
static void __debug_save_trace |
( |
u64 * |
trfcr_el1 | ) |
|
|
static |
Definition at line 54 of file debug-sr.c.
59 if (!(read_sysreg_s(SYS_TRBLIMITR_EL1) & TRBLIMITR_EL1_E))
66 *trfcr_el1 = read_sysreg_s(SYS_TRFCR_EL1);
67 write_sysreg_s(0, SYS_TRFCR_EL1);
◆ __debug_switch_to_guest()
void __debug_switch_to_guest |
( |
struct kvm_vcpu * |
vcpu | ) |
|
Definition at line 92 of file debug-sr.c.
static void __debug_switch_to_guest_common(struct kvm_vcpu *vcpu)
◆ __debug_switch_to_host()
void __debug_switch_to_host |
( |
struct kvm_vcpu * |
vcpu | ) |
|
Definition at line 105 of file debug-sr.c.
static void __debug_switch_to_host_common(struct kvm_vcpu *vcpu)
◆ __kvm_get_mdcr_el2()
u64 __kvm_get_mdcr_el2 |
( |
void |
| ) |
|
Definition at line 110 of file debug-sr.c.
112 return read_sysreg(mdcr_el2);