mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
The FF-A proxy code needs to allocate its own buffer pair for communication with EL3 and for forwarding calls from the host at EL1. Reserve a couple of pages for this purpose and use them to initialise the hypervisor's FF-A buffer structure. Co-developed-by: Andrew Walbran <qwandor@google.com> Signed-off-by: Andrew Walbran <qwandor@google.com> Signed-off-by: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20230523101828.7328-4-will@kernel.org Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
18 lines
393 B
C
18 lines
393 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2022 - Google LLC
|
|
* Author: Andrew Walbran <qwandor@google.com>
|
|
*/
|
|
#ifndef __KVM_HYP_FFA_H
|
|
#define __KVM_HYP_FFA_H
|
|
|
|
#include <asm/kvm_host.h>
|
|
|
|
#define FFA_MIN_FUNC_NUM 0x60
|
|
#define FFA_MAX_FUNC_NUM 0x7F
|
|
|
|
int hyp_ffa_init(void *pages);
|
|
bool kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt);
|
|
|
|
#endif /* __KVM_HYP_FFA_H */
|