Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 /*
0004  * Jailhouse paravirt detection
0005  *
0006  * Copyright (c) Siemens AG, 2015-2017
0007  *
0008  * Authors:
0009  *  Jan Kiszka <jan.kiszka@siemens.com>
0010  */
0011 
0012 #ifndef _ASM_X86_JAILHOUSE_PARA_H
0013 #define _ASM_X86_JAILHOUSE_PARA_H
0014 
0015 #include <linux/types.h>
0016 
0017 #ifdef CONFIG_JAILHOUSE_GUEST
0018 bool jailhouse_paravirt(void);
0019 #else
0020 static inline bool jailhouse_paravirt(void)
0021 {
0022     return false;
0023 }
0024 #endif
0025 
0026 #endif /* _ASM_X86_JAILHOUSE_PARA_H */