blob: e2872f9527c503a9a8206958d74c69bf26ef10c0 [file] [log] [blame]
Anthony PERARD3285cf42010-08-19 12:27:56 +01001/*
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
14int 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}