1d400c5b2SDavid Brazdil // SPDX-License-Identifier: GPL-2.0-only 2d400c5b2SDavid Brazdil /* 3d400c5b2SDavid Brazdil * Copyright (C) 2015 - ARM Ltd 4d400c5b2SDavid Brazdil * Author: Marc Zyngier <marc.zyngier@arm.com> 5d400c5b2SDavid Brazdil */ 6d400c5b2SDavid Brazdil 7d400c5b2SDavid Brazdil #include <hyp/debug-sr.h> 8d400c5b2SDavid Brazdil 9d400c5b2SDavid Brazdil #include <linux/kvm_host.h> 10d400c5b2SDavid Brazdil 11d400c5b2SDavid Brazdil #include <asm/kvm_hyp.h> 12d400c5b2SDavid Brazdil __debug_switch_to_guest(struct kvm_vcpu * vcpu)13d400c5b2SDavid Brazdilvoid __debug_switch_to_guest(struct kvm_vcpu *vcpu) 14d400c5b2SDavid Brazdil { 15d400c5b2SDavid Brazdil __debug_switch_to_guest_common(vcpu); 16d400c5b2SDavid Brazdil } 17d400c5b2SDavid Brazdil __debug_switch_to_host(struct kvm_vcpu * vcpu)18d400c5b2SDavid Brazdilvoid __debug_switch_to_host(struct kvm_vcpu *vcpu) 19d400c5b2SDavid Brazdil { 20d400c5b2SDavid Brazdil __debug_switch_to_host_common(vcpu); 21d400c5b2SDavid Brazdil } 22d400c5b2SDavid Brazdil __kvm_get_mdcr_el2(void)23*d6c850ddSFuad Tabbau64 __kvm_get_mdcr_el2(void) 24d400c5b2SDavid Brazdil { 25d400c5b2SDavid Brazdil return read_sysreg(mdcr_el2); 26d400c5b2SDavid Brazdil } 27