]>
git.proxmox.com Git - mirror_qemu.git/blob - xen-all.c
2 * Copyright (C) 2010 Citrix Ltd.
4 * This work is licensed under the terms of the GNU GPL, version 2. See
5 * the COPYING file in the top-level directory.
9 #include "hw/xen_common.h"
10 #include "hw/xen_backend.h"
12 /* VCPU Operations, MMIO, IO ring ... */
14 static void xen_reset_vcpu(void *opaque
)
16 CPUState
*env
= opaque
;
21 void xen_vcpu_init(void)
25 if ((first_cpu
= qemu_get_cpu(0))) {
26 qemu_register_reset(xen_reset_vcpu
, first_cpu
);
27 xen_reset_vcpu(first_cpu
);
35 xen_xc
= xen_xc_interface_open(0, 0, 0);
36 if (xen_xc
== XC_HANDLER_INITIAL_VALUE
) {
37 xen_be_printf(NULL
, 0, "can't open xen interface\n");
44 int xen_hvm_init(void)