arch/arm64/kvm/hyp/vhe/debug-sr.c

Source file repositories/reference/linux-study-clean/arch/arm64/kvm/hyp/vhe/debug-sr.c

File Facts

System
Linux kernel
Corpus path
arch/arm64/kvm/hyp/vhe/debug-sr.c
Extension
.c
Size
399 bytes
Lines
22
Domain
Architecture Layer
Bucket
arch/arm64
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

// 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);
}

Annotation

Implementation Notes