1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2015 - ARM Ltd
4 * Author: Marc Zyngier <marc.zyngier@arm.com>
7 #include <hyp/debug-sr.h>
9 #include <linux/kvm_host.h>
11 #include <asm/kvm_hyp.h>
13 void __debug_switch_to_guest(struct kvm_vcpu *vcpu)
15 __debug_switch_to_guest_common(vcpu);
18 void __debug_switch_to_host(struct kvm_vcpu *vcpu)
20 __debug_switch_to_host_common(vcpu);
23 u64 __kvm_get_mdcr_el2(void)
25 return read_sysreg(mdcr_el2);