aboutsummaryrefslogtreecommitdiff
path: root/xen-all.c
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-08-05 10:19:49 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2013-08-05 10:19:49 +0300
commit86342dcc9b73eac8310b9dc5fd1356bbfa5b9c8e (patch)
treec9987b94bab825a920990236234da4747d565f37 /xen-all.c
parent050a840ead5e51a1a9f3bffe89cc89077b2f35ed (diff)
Imported Upstream version 1.5.0-2013.06+git74+20130802+ef1b0aeupstream
Diffstat (limited to 'xen-all.c')
-rw-r--r--xen-all.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/xen-all.c b/xen-all.c
index 110f958..539a154 100644
--- a/xen-all.c
+++ b/xen-all.c
@@ -11,12 +11,12 @@
#include <sys/mman.h>
#include "hw/pci/pci.h"
-#include "hw/pc.h"
-#include "hw/xen_common.h"
-#include "hw/xen_backend.h"
+#include "hw/i386/pc.h"
+#include "hw/xen/xen_common.h"
+#include "hw/xen/xen_backend.h"
#include "qmp-commands.h"
-#include "char/char.h"
+#include "sysemu/char.h"
#include "qemu/range.h"
#include "sysemu/xen-mapcache.h"
#include "trace.h"
@@ -578,16 +578,18 @@ void qmp_xen_set_global_dirty_log(bool enable, Error **errp)
static void xen_reset_vcpu(void *opaque)
{
- CPUArchState *env = opaque;
+ CPUState *cpu = opaque;
- env->halted = 1;
+ cpu->halted = 1;
}
void xen_vcpu_init(void)
{
if (first_cpu != NULL) {
- qemu_register_reset(xen_reset_vcpu, first_cpu);
- xen_reset_vcpu(first_cpu);
+ CPUState *cpu = ENV_GET_CPU(first_cpu);
+
+ qemu_register_reset(xen_reset_vcpu, cpu);
+ xen_reset_vcpu(cpu);
}
/* if rtc_clock is left to default (host_clock), disable it */
if (rtc_clock == host_clock) {