2021-10-27 18:46:41 +05:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 - ARM Ltd
|
|
|
|
* Author: Marc Zyngier <marc.zyngier@arm.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <hyp/debug-sr.h>
|
|
|
|
|
|
|
|
#include <linux/kvm_host.h>
|
|
|
|
|
|
|
|
#include <asm/kvm_hyp.h>
|
|
|
|
|
|
|
|
void __debug_switch_to_guest(struct kvm_vcpu *vcpu)
|
|
|
|
{
|
|
|
|
__debug_switch_to_guest_common(vcpu);
|
|
|
|
}
|
|
|
|
|
|
|
|
void __debug_switch_to_host(struct kvm_vcpu *vcpu)
|
|
|
|
{
|
|
|
|
__debug_switch_to_host_common(vcpu);
|
|
|
|
}
|
|
|
|
|
2022-03-05 21:17:59 +05:00
|
|
|
u64 __kvm_get_mdcr_el2(void)
|
2021-10-27 18:46:41 +05:00
|
|
|
{
|
|
|
|
return read_sysreg(mdcr_el2);
|
|
|
|
}
|