]> git.proxmox.com Git - qemu.git/blobdiff - xen-all.c
migration: make qemu_ftell() public and support writable files
[qemu.git] / xen-all.c
index 19bcfd1510ebfe8e6419fce7e4258e009dac0539..110f958a5353a5c5d9013b76e122e8c512b5f072 100644 (file)
--- a/xen-all.c
+++ b/xen-all.c
@@ -585,9 +585,7 @@ static void xen_reset_vcpu(void *opaque)
 
 void xen_vcpu_init(void)
 {
-    CPUArchState *first_cpu;
-
-    if ((first_cpu = qemu_get_cpu(0))) {
+    if (first_cpu != NULL) {
         qemu_register_reset(xen_reset_vcpu, first_cpu);
         xen_reset_vcpu(first_cpu);
     }