mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-27 12:32:50 +00:00
Implement a pKVM protected guest driver to probe the presence of pKVM and determine the memory protection granule using the HYP_MEMINFO hypercall. Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20240830130150.8568-3-will@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
22 lines
444 B
C
22 lines
444 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_ARM64_HYPERVISOR_H
|
|
#define _ASM_ARM64_HYPERVISOR_H
|
|
|
|
#include <asm/xen/hypervisor.h>
|
|
|
|
void kvm_init_hyp_services(void);
|
|
bool kvm_arm_hyp_service_available(u32 func_id);
|
|
|
|
#ifdef CONFIG_ARM_PKVM_GUEST
|
|
void pkvm_init_hyp_services(void);
|
|
#else
|
|
static inline void pkvm_init_hyp_services(void) { };
|
|
#endif
|
|
|
|
static inline void kvm_arch_init_hyp_services(void)
|
|
{
|
|
pkvm_init_hyp_services();
|
|
};
|
|
|
|
#endif
|