/* SPDX-License-Identifier: GPL-2.0-or-later */ /****************************************************************************** * arch/x86/guest/hyperv/private.h * * Definitions / declarations only useful to Hyper-V code. * * Copyright (c) 2020 Microsoft. */ #ifndef __XEN_HYPERV_PRIVIATE_H__ #define __XEN_HYPERV_PRIVIATE_H__ #include #include DECLARE_PER_CPU(void *, hv_input_page); DECLARE_PER_CPU(void *, hv_vp_assist); DECLARE_PER_CPU(unsigned int, hv_vp_index); extern unsigned int hv_max_vp_index; static inline unsigned int hv_vp_index(unsigned int cpu) { return per_cpu(hv_vp_index, cpu); } int hyperv_flush_tlb(const cpumask_t *mask, const void *va, unsigned int flags); /* Returns number of banks, -ev if error */ int cpumask_to_vpset(struct hv_vpset *vpset, const cpumask_t *mask); #endif /* __XEN_HYPERV_PRIVIATE_H__ */