summaryrefslogtreecommitdiff
path: root/xen/arch/x86/include/asm/guest/pvh-boot.h
blob: 247ba6899e72cf8d8a291012f83635dcd5bc89cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* SPDX-License-Identifier: GPL-2.0-only */
/******************************************************************************
 * asm-x86/guest/pvh-boot.h
 *
 * Copyright (c) 2017 Citrix Systems Ltd.
 */

#ifndef __X86_PVH_BOOT_H__
#define __X86_PVH_BOOT_H__

#include <xen/multiboot.h>

#ifdef CONFIG_PVH_GUEST

extern bool pvh_boot;

void pvh_init(multiboot_info_t **mbi, module_t **mod);
void pvh_print_info(void);

#else

#include <xen/lib.h>

#define pvh_boot 0

static inline void pvh_init(multiboot_info_t **mbi, module_t **mod)
{
    ASSERT_UNREACHABLE();
}

static inline void pvh_print_info(void)
{
    ASSERT_UNREACHABLE();
}

#endif /* CONFIG_PVH_GUEST */
#endif /* __X86_PVH_BOOT_H__ */

/*
 * Local variables:
 * mode: C
 * c-file-style: "BSD"
 * c-basic-offset: 4
 * tab-width: 4
 * indent-tabs-mode: nil
 * End:
 */