/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /************************************************************************ * * FILE NAME * * hypervisor.h * * DESCRIPTION * * This file includes hypervisor used header files. * It should be included in all the source files. * * ************************************************************************/ #ifndef HYPERVISOR_H #define HYPERVISOR_H /* Include config header file containing config options */ #include #include #include #include #include #include #include #include #include #include #include "acrn_common.h" #include #include #include #ifndef ASSEMBLER /* gpa --> hpa -->hva */ static inline void *gpa2hva(struct acrn_vm *vm, uint64_t x) { return hpa2hva(gpa2hpa(vm, x)); } static inline uint64_t hva2gpa(struct acrn_vm *vm, void *x) { return (is_vm0(vm)) ? vm0_hpa2gpa(hva2hpa(x)) : INVALID_GPA; } #endif /* !ASSEMBLER */ #endif /* HYPERVISOR_H */