Jan Kiszka | 4a36260 | 2017-11-27 09:11:46 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL2.0 */ |
| 2 | |
| 3 | /* |
Jan Kiszka | 63338a3 | 2018-03-07 08:39:12 +0100 | [diff] [blame^] | 4 | * Jailhouse paravirt detection |
Jan Kiszka | 4a36260 | 2017-11-27 09:11:46 +0100 | [diff] [blame] | 5 | * |
| 6 | * Copyright (c) Siemens AG, 2015-2017 |
| 7 | * |
| 8 | * Authors: |
| 9 | * Jan Kiszka <jan.kiszka@siemens.com> |
| 10 | */ |
| 11 | |
| 12 | #ifndef _ASM_X86_JAILHOUSE_PARA_H |
| 13 | #define _ASM_X86_JAILHOUSE_PARA_H |
| 14 | |
| 15 | #include <linux/types.h> |
| 16 | |
| 17 | #ifdef CONFIG_JAILHOUSE_GUEST |
| 18 | bool jailhouse_paravirt(void); |
| 19 | #else |
| 20 | static inline bool jailhouse_paravirt(void) |
| 21 | { |
| 22 | return false; |
| 23 | } |
| 24 | #endif |
| 25 | |
| 26 | #endif /* _ASM_X86_JAILHOUSE_PARA_H */ |