jailhouse_para.h 449 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Jailhouse paravirt detection
  4. *
  5. * Copyright (c) Siemens AG, 2015-2017
  6. *
  7. * Authors:
  8. * Jan Kiszka <[email protected]>
  9. */
  10. #ifndef _ASM_X86_JAILHOUSE_PARA_H
  11. #define _ASM_X86_JAILHOUSE_PARA_H
  12. #include <linux/types.h>
  13. #ifdef CONFIG_JAILHOUSE_GUEST
  14. bool jailhouse_paravirt(void);
  15. #else
  16. static inline bool jailhouse_paravirt(void)
  17. {
  18. return false;
  19. }
  20. #endif
  21. #endif /* _ASM_X86_JAILHOUSE_PARA_H */