18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci/* 48c2ecf20Sopenharmony_ci * Jailhouse paravirt detection 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Copyright (c) Siemens AG, 2015-2017 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Authors: 98c2ecf20Sopenharmony_ci * Jan Kiszka <jan.kiszka@siemens.com> 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef _ASM_X86_JAILHOUSE_PARA_H 138c2ecf20Sopenharmony_ci#define _ASM_X86_JAILHOUSE_PARA_H 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#include <linux/types.h> 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifdef CONFIG_JAILHOUSE_GUEST 188c2ecf20Sopenharmony_cibool jailhouse_paravirt(void); 198c2ecf20Sopenharmony_ci#else 208c2ecf20Sopenharmony_cistatic inline bool jailhouse_paravirt(void) 218c2ecf20Sopenharmony_ci{ 228c2ecf20Sopenharmony_ci return false; 238c2ecf20Sopenharmony_ci} 248c2ecf20Sopenharmony_ci#endif 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#endif /* _ASM_X86_JAILHOUSE_PARA_H */ 27