]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 2010 Citrix Ltd. | |
3 | * | |
4 | * This work is licensed under the terms of the GNU GPL, version 2. See | |
5 | * the COPYING file in the top-level directory. | |
6 | * | |
7 | */ | |
8 | ||
9 | #include "hw/xen_common.h" | |
10 | #include "hw/xen_backend.h" | |
11 | ||
12 | /* Initialise Xen */ | |
13 | ||
14 | int xen_init(void) | |
15 | { | |
16 | xen_xc = xen_xc_interface_open(0, 0, 0); | |
17 | if (xen_xc == XC_HANDLER_INITIAL_VALUE) { | |
18 | xen_be_printf(NULL, 0, "can't open xen interface\n"); | |
19 | return -1; | |
20 | } | |
21 | ||
22 | return 0; | |
23 | } |