KVM
debug-sr.c
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (C) 2015 - ARM Ltd
4  * Author: Marc Zyngier <marc.zyngier@arm.com>
5  */
6 
7 #include <hyp/debug-sr.h>
8 
9 #include <linux/kvm_host.h>
10 
11 #include <asm/kvm_hyp.h>
12 
13 void __debug_switch_to_guest(struct kvm_vcpu *vcpu)
14 {
16 }
17 
18 void __debug_switch_to_host(struct kvm_vcpu *vcpu)
19 {
21 }
22 
24 {
25  return read_sysreg(mdcr_el2);
26 }
static void __debug_switch_to_host_common(struct kvm_vcpu *vcpu)
Definition: debug-sr.h:147
static void __debug_switch_to_guest_common(struct kvm_vcpu *vcpu)
Definition: debug-sr.h:128
void __debug_switch_to_guest(struct kvm_vcpu *vcpu)
Definition: debug-sr.c:92
void __debug_switch_to_host(struct kvm_vcpu *vcpu)
Definition: debug-sr.c:105
u64 __kvm_get_mdcr_el2(void)
Definition: debug-sr.c:110