xref: /kernel/linux/linux-5.10/arch/arm64/kvm/hyp/vhe/debug-sr.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/arm64/kvm/hyp/vhe/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2015 - ARM Ltd
48c2ecf20Sopenharmony_ci * Author: Marc Zyngier <marc.zyngier@arm.com>
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <hyp/debug-sr.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <linux/kvm_host.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <asm/kvm_hyp.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_civoid __debug_switch_to_guest(struct kvm_vcpu *vcpu)
148c2ecf20Sopenharmony_ci{
158c2ecf20Sopenharmony_ci	__debug_switch_to_guest_common(vcpu);
168c2ecf20Sopenharmony_ci}
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_civoid __debug_switch_to_host(struct kvm_vcpu *vcpu)
198c2ecf20Sopenharmony_ci{
208c2ecf20Sopenharmony_ci	__debug_switch_to_host_common(vcpu);
218c2ecf20Sopenharmony_ci}
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciu32 __kvm_get_mdcr_el2(void)
248c2ecf20Sopenharmony_ci{
258c2ecf20Sopenharmony_ci	return read_sysreg(mdcr_el2);
268c2ecf20Sopenharmony_ci}
27

Indexes created Thu Nov 07 10:32:03 CST 2024